{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-chart",
  "framework": "angular",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "chart",
  "dependencies": [
    "@syncfusion/ej2-angular-spreadsheet"
  ],
  "description": "Spreadsheet sample visualizing data using chart feature by comparing the GDP of different countries with various years.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": true,
    "platformIndex": "https://ai.syncfusion.com/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/spreadsheet-editor-chart.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-chart/spreadsheet-editor.component.html",
      "content": "<div class=\"control-section\">\n    <ejs-spreadsheet #spreadsheet [openUrl]=\"openUrl\" [saveUrl]=\"saveUrl\" (created)=\"created()\">\n        <e-sheets>\n            <e-sheet name=\"GDP\">\n                <e-rows>\n                    <e-row [height]=30>\n                        <e-cells>\n                            <e-cell value=\"Gross Domestic Product (in trillions)\" [style]=\"{ backgroundColor: '#e56590', color: '#fff', fontWeight: 'bold', textAlign: 'center', verticalAlign: 'middle' }\"></e-cell>\n                        </e-cells>\n                    </e-row>\n                    <e-row>\n                        <e-cells>\n                            <e-cell [index]=\"6\" [chart]=\"chart\"></e-cell>\n                        </e-cells>\n                    </e-row>\n                </e-rows>\n                <e-ranges>\n                    <e-range [dataSource]=\"data\" startCell=\"A3\"></e-range>\n                </e-ranges>\n                <e-columns>\n                    <e-column [width]=80></e-column>\n                    <e-column [width]=75></e-column>\n                    <e-column [width]=75></e-column>\n                    <e-column [width]=75></e-column>\n                    <e-column [width]=75></e-column>\n                </e-columns>\n            </e-sheet>\n        </e-sheets>\n    </ejs-spreadsheet>\n</div>"
    },
    {
      "target": "src/components/spreadsheet-editor-chart/spreadsheet-editor.component.ts",
      "content": "import { Component, ViewEncapsulation, ViewChild } from '@angular/core';\nimport { SpreadsheetComponent, ChartModel, SpreadsheetModule } from '@syncfusion/ej2-angular-spreadsheet';\nimport { GDPData } from '../datasource/spreadsheet-editor-data';\n/**\n * Chart sample with import and export support.\n */\n@Component({\n    selector: 'control-content',\n    templateUrl: 'spreadsheet-editor.component.html',\n    encapsulation: ViewEncapsulation.None,\n    standalone: true,\n    imports: [SpreadsheetModule]\n})\n\nexport class ChartController {\n    @ViewChild('spreadsheet')\n    spreadsheetObj!: SpreadsheetComponent;\n    public chart: ChartModel[] = [{ type: \"Column\", range: \"A3:E10\" }];\n    data: Object[] = GDPData();\n    public openUrl = 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/open';\n    public saveUrl = 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/save';\n    created() {\n         // Formatting cells dynamically using cellFormat method\n         this.spreadsheetObj.cellFormat({ backgroundColor: '#e56590', color: '#fff', fontWeight: 'bold', textAlign: 'center' }, 'A3:E3');\n         // Applying currency format to the specified range.\n         this.spreadsheetObj.numberFormat('$#,##0.00', 'B4:E10');\n         // Merging the cells from A1 to E1\n         this.spreadsheetObj.merge('A1:E1');\n    }\n}"
    }
  ]
}