{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-zooming",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Chart",
  "variant": "zooming",
  "dependencies": [
    "@syncfusion/ej2-charts"
  ],
  "description": "Line chart of monthly temperature anomalies with selection, mouse-wheel, pinch zoom and scrollbar.",
  "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-zooming.md"
  },
  "files": [
    {
      "target": "src/components/chart-zooming/chart.html",
      "content": "<style>\n    #control-container {\n        padding: 0px !important;\n    }\n\n    #material-gradient-chart stop {\n        stop-color: #00bdae;\n    }\n\n    #fabric-gradient-chart stop {\n        stop-color: #4472c4;\n    }\n\n    #bootstrap-gradient-chart stop {\n        stop-color: #a16ee5;\n    }\n\n    #bootstrap4-gradient-chart stop {\n        stop-color: #a16ee5;\n    }\n\n    #fluent-gradient-chart stop {\n        stop-color: #1AC9E6;\n    }\n    #fluent-dark-gradient-chart stop {\n        stop-color: #1AC9E6;\n    }\n\n    #highcontrast-gradient-chart stop {\n        stop-color: #79ECE4;\n    }\n\n    #tailwind-gradient-chart stop {\n        stop-color: #5A61F6;\n    }\n\n    #tailwind3-gradient-chart stop {\n        stop-color: #2F4074;\n    }\n\n    #bootstrap5-gradient-chart stop {\n        stop-color: #FD7E14;\n    }\n\n    #material-dark-gradient-chart stop {\n        stop-color: #9ECB08;\n    }\n\n    #fabric-dark-gradient-chart stop {\n        stop-color: #4472c4;\n    }\n\n    #bootstrap-dark-gradient-chart stop {\n        stop-color: #a16ee5;\n    }\n\n    #tailwind-dark-gradient-chart stop {\n        stop-color: #8B5CF6;\n    }\n\n    #tailwind3-dark-gradient-chart stop {\n        stop-color: #8029F1;\n    }\n\n    #bootstrap5-dark-gradient-chart stop {\n        stop-color:  #FD7E14;\n    }\n    #material3-gradient-chart stop {\n        stop-color: #6355C7;\n    }\n\n    #material3-dark-gradient-chart stop {\n        stop-color: #4EAAFF;\n    }\n\n    #fluent2-gradient-chart stop {\n        stop-color: #6200EE;\n    }\n\n    #fluent2-highcontrast-gradient-chart stop {\n        stop-color: #9BB449;\n    }\n\n    #fluent2-dark-gradient-chart stop {\n        stop-color: #9BB449;\n    }\n\n    .chart-gradient stop[offset=\"0\"] {\n        stop-opacity: 0.75;\n    }\n\n    .chart-gradient stop[offset=\"1\"] {\n        stop-opacity: 0;\n    }\n\n</style>\n<div class=\"control-section\">\n    <div id=\"container\" align='center'></div>\n</div>"
    },
    {
      "target": "src/components/chart-zooming/chart.ts",
      "content": "import { Chart, LineSeries, Category, Legend, Tooltip, DataLabel, type ILoadedEventArgs, Highlight } from '@syncfusion/ej2-charts';\nimport { Browser } from '@syncfusion/ej2-base';\nimport { zoomingChartData } from '../datasource/chart-data';\n\nChart.Inject(LineSeries, Category, Legend, Tooltip, DataLabel, Highlight);\n\n/**\n * Sample for line chart with zooming capability\n * Initializes chart within the pre-loaded HTML element from chart.html\n */\nexport function initZoomingChart(): void {\n  const data = zoomingChartData[0];\n\n  let chart: Chart = new Chart({\n    //Initializing Primary X Axis\n    primaryXAxis: {\n      valueType: 'Category',\n      majorGridLines: { width: 0 },\n      edgeLabelPlacement: 'Shift'\n    },\n\n    //Initializing Primary Y Axis\n    primaryYAxis: {\n      title: 'Temperature (°C)',\n      labelFormat: '{value}',\n      rangePadding: 'None',\n      lineStyle: { width: 0 },\n      majorTickLines: { width: 0 },\n      minorTickLines: { width: 0 }\n    },\n\n    chartArea: {\n      border: {\n        width: 0\n      }\n    },\n\n    //Initializing Chart Series\n    series: [\n      {\n        type: 'Line',\n        dataSource: data.data,\n        xName: 'month',\n        yName: 'temp',\n        name: 'Temperature',\n        width: 2,\n        marker: {\n          visible: true,\n          width: 10,\n          height: 10,\n          shape: 'Circle',\n          isFilled: true\n        }\n      }\n    ],\n\n    //Initializing the tooltip\n    tooltip: {\n      enable: true,\n      enableHighlight: true,\n      header: '<b>Temperature</b>',\n      format: '${point.x} : <b>${point.y}°C</b>'\n    },\n\n    width: Browser.isDevice ? '100%' : '75%',\n    legendSettings: { enableHighlight: true },\n    \n    //Initializing Chart title\n    title: data.title,\n    subTitle: data.subTitle,\n\n    //Zooming settings\n    zoomSettings: {\n      enableSelectionZooming: true,\n      enableMouseWheelZooming: true,\n      enablePinchZooming: true,\n      mode: 'XY',\n      toolbarItems: ['Zoom', 'ZoomIn', 'ZoomOut', 'Pan', 'Reset']\n    },\n\n    load: (_args: ILoadedEventArgs) => {\n      // Load event handler\n    }\n  });\n  chart.appendTo('#container');\n}\n"
    }
  ]
}