{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-stacked-column",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Chart",
  "variant": "stacked-column",
  "dependencies": [
    "@syncfusion/ej2-charts"
  ],
  "description": "Stacked Column chart of country-level cotton production from 2019-2024 with legend-driven colors.",
  "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": false,
    "platformIndex": "https://ai.syncfusion.com/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/chart-stacked-column.md"
  },
  "files": [
    {
      "target": "src/components/chart-stacked-column/chart.html",
      "content": "<div class=\"control-section\">\n    <div id=\"container\" align=\"center\"></div>\n</div>"
    },
    {
      "target": "src/components/chart-stacked-column/chart.ts",
      "content": "import { Chart, StackingColumnSeries, Category, Legend, Tooltip, DataLabel, type ILoadedEventArgs, Highlight } from '@syncfusion/ej2-charts';\nimport { Browser } from '@syncfusion/ej2-base';\nimport { stackedColumnChartData } from '../datasource/chart-data';\n\nChart.Inject(StackingColumnSeries, Category, Legend, Tooltip, Highlight, DataLabel);\n\n/**\n * Sample for StackedColumn Series\n * Initializes chart within the pre-loaded HTML element from chart.html\n */\nexport function initStackedColumnChart(): void {\n  const data = stackedColumnChartData[0];\n\n  let chart: Chart = new Chart({\n    //Initializing Primary X Axis\n    primaryXAxis: {\n      majorGridLines: { width: 0 },\n      minorGridLines: { width: 0 },\n      majorTickLines: { width: 0 },\n      minorTickLines: { width: 0 },\n      interval: 1,\n      lineStyle: { width: 0 },\n      labelIntersectAction: 'Rotate45',\n      valueType: 'Category'\n    },\n    //Initializing Primary Y Axis\n    primaryYAxis: {\n      title: 'Production (60KG Bags)',\n      lineStyle: { width: 0 },\n      majorTickLines: { width: 0 },\n      majorGridLines: { width: 1 },\n      minorGridLines: { width: 1 },\n      minorTickLines: { width: 0 },\n      labelFormat: '{value}M',\n      interval: 20\n    },\n    chartArea: {\n      border: {\n        width: 0\n      },\n      margin: {\n        bottom: 12\n      }\n    },\n    //Initializing Chart Series\n    series: data.series.map((s, index) => ({\n      type: 'StackingColumn',\n      dataSource: s.data,\n      xName: 'x',\n      yName: 'y',\n      name: s.name,\n      columnWidth: 0.4,\n      border: { width: 1, color: 'white' },\n      cornerRadius: index === 2 ? { topLeft: 4, topRight: 4 } : undefined,\n      marker: {\n        dataLabel: {\n          visible: true,\n          font: { size: Browser.isDevice ? '10px' : '12px' }\n        }\n      },\n      legendShape: 'Rectangle'\n    })),\n\n    //Initializing Chart title\n    title: data.title,\n    subTitle: data.subTitle,\n    //Initializing User Interaction Tooltip\n    tooltip: {\n      enable: true,\n      enableHighlight: true,\n      header: '<b>${point.x}</b>',\n      format: '${series.name} : <b>${point.y}</b>'\n    },\n    width: Browser.isDevice ? '100%' : '75%',\n    legendSettings: { enableHighlight: true },\n    load: (_args: ILoadedEventArgs) => {\n      // Load event handler\n    }\n  });\n  chart.appendTo('#container');\n}\n"
    }
  ]
}