Skip to content

Example of Local Data in ASP.NET Core Charts Control

This sample demonstrates how to bind local data to the Chart component, enabling a chart to be drawn without a request to the server.

Local data: the Data property takes a list from the page (here a C# list of six rows), and the chart is drawn without a request to the server. Each series names the fields of a row that it reads with XName and YName.