{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-chart",
  "framework": "vue",
  "type": "registry:component",
  "component": "SpreadsheetEditor",
  "variant": "chart",
  "dependencies": [
    "@syncfusion/ej2-vue-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/vue/llms.txt",
    "skillPack": "syncfusion/vue-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/vue/spreadsheet-editor-chart.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-chart/SpreadSheetEditor.vue",
      "content": "<template>\n  <div class=\"control-section\">\n    <div id=\"spreadsheet-chart\">\n        <ejs-spreadsheet ref=\"spreadsheet\" :openUrl=\"openUrl\" :saveUrl=\"saveUrl\" :created=\"created\">\n            <e-sheets>\n                <e-sheet :name=\"GDP\">\n                    <e-rows>\n                        <e-row :height=\"height\" :cells=\"cells1\"></e-row>\n                        <e-row :height=\"height\" :cells=\"cells2\"></e-row>\n                    </e-rows>\n                <e-ranges>\n                        <e-range :dataSource=\"dataSource\" 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>\n  </div>\n</template>\n<script>\nimport { SpreadsheetComponent, RowDirective, RowsDirective, SheetDirective, SheetsDirective, RangeDirective, RangesDirective, ColumnDirective, ColumnsDirective, getFormatFromType } from \"@syncfusion/ej2-vue-spreadsheet\";\nimport { GDPData } from '../datasource/spreadsheet-editor-data';\n\nexport default {\n   components: {\n    'ejs-spreadsheet': SpreadsheetComponent,\n    'e-row': RowDirective,\n    'e-rows': RowsDirective,\n    'e-sheet': SheetDirective,\n    'e-sheets': SheetsDirective,\n    'e-range': RangeDirective,\n    'e-ranges': RangesDirective,\n    'e-column': ColumnDirective,\n    'e-columns': ColumnsDirective\n   },  \n   data: () => {\n    return {\n        height: 30,\n        GDP:\"GDP\",\n        dataSource: GDPData,\n        cells1: [\n        { value: 'Gross Domestic Product (in trillions)', style: { backgroundColor: '#e56590', color: '#fff',\n            fontWeight: 'bold', textAlign: 'center', verticalAlign: 'middle' }}\n        ],\n        cells2: [\n        { index: 6, chart: [{ type: 'Column', range: 'A3:E10' }] }\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    }\n  },\n  methods: {\n    created: function() {\n        var spreadsheet = this.$refs.spreadsheet;\n           // Formatting cells dynamically using cellFormat method\n             spreadsheet.cellFormat({ backgroundColor: '#e56590', color: '#fff', 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}\n</script>"
    }
  ]
}