{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-zooming",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Chart",
  "variant": "zooming",
  "dependencies": [
    "Syncfusion.AspNetCore.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/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/chart-zooming.md"
  },
  "files": [
    {
      "target": "src/components/chart-zooming/chart.cshtml",
      "content": "@page\n@namespace aspnet_core.Chart.Zooming\n@model EJ2CoreSampleBrowser.Chart.Zooming.ZoomingModel\n@using Syncfusion.EJ2\n<ejs-chart id=\"container\" load=\"window.load\" width=\"60%\">\n        <e-chart-primaryxaxis valueType=\"DateTime\"></e-chart-primaryxaxis>\n        <e-chart-legendsettings visible=\"false\"></e-chart-legendsettings>\n        <e-chart-zoomsettings enableMouseWheelZooming=\"true\" enablePinchZooming=\"true\" enableSelectionZooming=\"true\"></e-chart-zoomsettings>\n        <e-series-collection>\n            <e-series xName=\"x\" width=2 yName=\"y\" type=\"@Syncfusion.EJ2.Charts.ChartSeriesType.Area\"></e-series>\n        </e-series-collection>\n</ejs-chart>\n<script>\n    var series1 = [];\n    var point1;\n    var value = 40;\n    var i;\n    for (i = 1; i < 9; i++) {\n        if (Math.random() > .5) {\n            value += Math.random();\n        }\n        else {\n            value -= Math.random();\n        }\n        point1 = { x: new Date(1950, i + 2, i), y: value.toFixed(1) };\n        series1.push(point1);\n    }\n    window.load = function (args) {\n        args.chart.series[0].dataSource = series1;\n    }\n</script>"
    },
    {
      "target": "src/components/chart-zooming/chart.cshtml.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.Chart.Zooming\n{\n    public class ZoomingModel : PageModel\n    {\n        public List<TemperatureData> TemperatureData { get; set; }\n\n        public void OnGet()\n        {\n            TemperatureData = new List<TemperatureData>\n            {\n                new TemperatureData { Month = \"Jan\", Anomaly = 0.8 },\n                new TemperatureData { Month = \"Feb\", Anomaly = 1.2 },\n                new TemperatureData { Month = \"Mar\", Anomaly = 0.6 },\n                new TemperatureData { Month = \"Apr\", Anomaly = -0.3 },\n                new TemperatureData { Month = \"May\", Anomaly = 0.4 },\n                new TemperatureData { Month = \"Jun\", Anomaly = 1.1 },\n                new TemperatureData { Month = \"Jul\", Anomaly = 1.5 },\n                new TemperatureData { Month = \"Aug\", Anomaly = 1.3 },\n                new TemperatureData { Month = \"Sep\", Anomaly = 0.7 },\n                new TemperatureData { Month = \"Oct\", Anomaly = 0.2 },\n            };\n        }\n    }\n\n    public class TemperatureData\n    {\n        public string Month { get; set; }\n        public double Anomaly { get; set; }\n    }\n}\n"
    }
  ]
}