{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-chart",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "chart",
  "dependencies": [
    "@syncfusion/ej2-spreadsheet"
  ],
  "description": "Spreadsheet editor 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/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/spreadsheet-editor-chart.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-chart/spreadsheet-editor.html",
      "content": "<div class=\"control-section\">\n    <div class=\"control-wrapper\">\n        <div id=\"spreadsheet\"></div>\n    </div>\n</div>\n<!-- custom code start -->\n<style>\n    .control-section .control-wrapper {\n        height: calc(100vh - 230px);\n        min-height: 550px\n    }\n\n    #sb-content .e-spreadsheet .e-tab .e-tab-text {\n        display: inherit;\n    }\n\n    /* newTab support styles */\n    .ej2-new .sb-header,\n    .ej2-new .sb-bread-crumb,\n    .ej2-new #action-description,\n    .ej2-new #description-section,\n    .ej2-new #description {\n        display: none\n    }\n\n    .ej2-new .container-fluid,\n    .ej2-new .container-fluid .control-section,\n    #sidebar-section {\n        padding: 0px;\n    }\n\n    .ej2-new .sample-browser>.content.e-view {\n        top: 0px;\n        padding: 0px;\n        text-align: initial;\n        height: 100%;\n        overflow: hidden;\n    }\n\n    /* end of newTab support styles */\n</style>\n<!-- custom code end -->"
    },
    {
      "target": "src/components/spreadsheet-editor-chart/spreadsheet-editor.ts",
      "content": "import { Spreadsheet, getFormatFromType } from '@syncfusion/ej2-spreadsheet';\nimport { GDPData } from '../datasource/spreadsheet-editor-data';\n\n/**\n * Chart\n */\nexport function initSpreadsheetEditorChart(): void {\n    //Initialize Spreadsheet component.\n    let spreadsheet: Spreadsheet = new Spreadsheet({\n        sheets: [\n            {\n                name: 'GDP',\n                ranges: [{ dataSource: GDPData, startCell: 'A3' }],\n                rows: [\n                    {\n                        height: 30,\n                        cells: [\n                            {\n                                value: 'Gross Domestic Product (in trillions)',\n                                style: {\n                                    backgroundColor: '#D21856', color: '#F5F5F5',\n                                    fontWeight: 'bold', textAlign: 'center', verticalAlign: 'middle'\n                                }\n                            }\n                        ]\n                    },\n                    {\n                        cells: [\n                            { index: 6, chart: [{ type: 'Column', range: 'A3:E10' }] }\n                        ]\n                    }\n                ],\n                columns: [\n                    { width: 80 }, { width: 75 }, { width: 75 }, { width: 75 }, { width: 75 }\n                ]\n            }\n        ],\n        openUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/open',\n        saveUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/save',\n        created: () => {\n             // Formatting cells dynamically using cellFormat method\n             spreadsheet.cellFormat({ backgroundColor: '#D21856', color: '#F5F5F5', fontWeight: 'bold', textAlign: 'center' }, 'A3:E3');\n             // Applying currency format to the specified range.\n             spreadsheet.numberFormat('$#,##0.00', 'B4:E10');\n             // Merging the cells from A1 to E1\n             spreadsheet.merge('A1:E1');\n        }\n    });\n    //Render initialized Spreadsheet component\n    spreadsheet.appendTo('#spreadsheet');\n}\n"
    }
  ]
}