{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-line",
  "framework": "aspnet-mvc",
  "type": "registry:component",
  "component": "Chart",
  "variant": "line",
  "dependencies": [
    "Syncfusion.AspNetMvc.Charts"
  ],
  "description": "Multi-series Line chart of country-level crude steel volumes from 2016 to 2024.",
  "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-mvc/llms.txt",
    "skillPack": "syncfusion/aspnetmvc-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-mvc/chart-line.md"
  },
  "files": [
    {
      "target": "src/components/chart-line/Chart.cshtml",
      "content": "@using Syncfusion.EJ2;\n@section ControlsSection{\n    <div class=\"control-section\" align=\"center\">\n        @Html.EJS().Chart(\"container\").Height(\"460\").Series(series =>\n        {\n            series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Line).Width(2).XName(\"Period\").YName(\"Viet_Growth\").Name(\"Vietnam\")\n                .Marker(mr=>mr.Visible(true).Width(7).Height(7).Shape(Syncfusion.EJ2.Charts.ChartShape.Circle).IsFilled(true))\n                .LabelSettings(label => label.Visible(true))\n                .DataSource(ViewData[\"ChartData\"]).Add();\n            series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Line).Width(2).XName(\"Period\").YName(\"Can_Growth\").Name(\"Indonesia\")\n                .Marker(mr=>mr.Visible(true).Width(6).Height(6).Shape(Syncfusion.EJ2.Charts.ChartShape.Triangle).IsFilled(true))\n                .LabelSettings(label => label.Visible(true))\n                .DataSource(ViewData[\"ChartData\"]).Add();\n            series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Line).Width(2).XName(\"Period\").YName(\"Mal_Growth\").Name(\"France\")\n                .Marker(mr=>mr.Visible(true).Width(7).Height(7).Shape(Syncfusion.EJ2.Charts.ChartShape.Diamond).IsFilled(true))\n                .LabelSettings(label => label.Visible(true))\n                .DataSource(ViewData[\"ChartData\"]).Add();\n            series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Line).Width(2).XName(\"Period\").YName(\"Egy_Growth\").Name(\"Poland\")\n                .Marker(mr=>mr.Visible(true).Width(5).Height(5).Shape(Syncfusion.EJ2.Charts.ChartShape.Rectangle).IsFilled(true))\n                .LabelSettings(label => label.Visible(true))\n                .DataSource(ViewData[\"ChartData\"]).Add();\n            series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Line).Width(2).XName(\"Period\").YName(\"Ind_Growth\").Name(\"Mexico\")\n                .Marker(mr=>mr.Visible(true).Width(7).Height(7).Shape(Syncfusion.EJ2.Charts.ChartShape.Pentagon).IsFilled(true))\n                .LabelSettings(label => label.Visible(true))\n                .DataSource(ViewData[\"ChartData\"]).Add();\n        }).PrimaryXAxis(px => px.ValueType(Syncfusion.EJ2.Charts.ValueType.Double)\n            .MajorGridLines(mg=>mg.Width(0))\n            .EdgeLabelPlacement(Syncfusion.EJ2.Charts.EdgeLabelPlacement.Shift)\n        ).PrimaryYAxis(py => py.Title(\"Volume in million metric tons\")\n            .MajorTickLines(mt=>mt.Width(0)).MinorTickLines(mt => mt.Width(0))\n            .LineStyle(ls => ls.Width(0)).Interval(5).Minimum(0).Maximum(25)\n        ).Title(\"Annual Crude Steel Production by Country (2016-2024)\").SubTitle(\"Source: wikipedia.org\").Tooltip(tt => tt.Enable(true).Header(\"<b>${series.name}</b>\").Format(\"${point.x} : <b>${point.y}M</b>\").ShowNearestTooltip(true).EnableHighlight(true)\n        ).Load(\"load\").ChartArea(area => area.Border(br => br.Width(0)).Margin(margin => margin.Bottom(12))).LegendSettings(leg => leg.Visible(true).EnableHighlight(true)\n        ).Render()\n    </div>\n    \n@*custom code start*@\n    <style>\n        #control-container {\n            padding: 0px !important;\n        }\n    </style>\n@*custom code end*@\n    <script src=\"~/Scripts/chart/theme-color.js\"></script>\n    <script>    \n        var load = function (args) {\n            loadChartTheme(args);\n            args.chart.width = ej.base.Browser.isDevice ? \"100%\" : \"75%\";  \n        };\n    </script>\n}\n"
    },
    {
      "target": "src/components/chart-line/ChartController.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing Syncfusion.EJ2.Charts;\n\nnamespace EJ2MVCSampleBrowser.Controllers.Chart\n{\n    public partial class ChartController : Controller\n    {\n        // GET: Line\n        public ActionResult Line()\n        {\n            List<LineChartData> chartData = new List<LineChartData>\n            {\n                new LineChartData { Period = 2016, Can_Growth = 4.8 , Viet_Growth = 7.8 , Mal_Growth = 14.6, Egy_Growth = 8.9 , Ind_Growth = 19.0 },\n                new LineChartData { Period = 2017, Can_Growth = 5.2 , Viet_Growth = 10.3, Mal_Growth = 15.5, Egy_Growth = 10.3, Ind_Growth = 20.0 },\n                new LineChartData { Period = 2018, Can_Growth = 6.2 , Viet_Growth = 15.5, Mal_Growth = 15.4, Egy_Growth = 10.8, Ind_Growth = 20.2  },\n            };\n            ViewData[\"ChartData\"] = chartData;\n            return View(\"~/Views/Home/chart/line/Chart.cshtml\");\n        }\n\n        public class LineChartData\n        {\n            public int Period;\n            public double Can_Growth;\n            public double Viet_Growth;\n            public double Mal_Growth;\n            public double Egy_Growth;\n            public double Ind_Growth;\n        }\n    }\n}"
    }
  ]
}