Example of Local Data in ASP.NET MVC Chart Control
This sample shows the plotting of local data in a stock price analysis of two products over a period of time.
DEMO
SOURCE
The Charts control supports data binding. The DataSourceopens in a new tab property can be assigned either as list of objects or with instance of DataManager
.
In this demo, the list of objects is assigned as the data source to the Charts control. The chart can be bound to IEnumerable, IQueryable and ObservableCollection data sources.
More information about the local data binding can be found in this documentation sectionopens in a new tab.