asp net data visualization template

Kickstart your project with LightningChart JS ASP.NET data visualization template

If you’re working on the development of a data-driven project you’ll find the ASP.NET data visualization template particularly useful for the development of web-based applications.

ASP.NET is an open-sourced library that complements and extends .NET, making it possible to develop web applications using all the different libraries and packages already available for .NET.

Additionally, LightningChart has released several other data visualization templates that’ll help you integrate LightningChart JS charting library into your project development.

Getting Started with ASP.NET Data Visualization Template

To get started with the ASP.NET Data Visualization template and using the repository within an ASP.NET web application, you’ll need a code editor such as the most recent version of Visual Studio.

Sending data from MVC to LightningChart JS

When using the MVC framework, the controller will handle and answer the user’s input and interactivity which will consequently retrieve the data from the model for the line series (2D chart) and 3D chart. To transfer data from Controller to View, use ViewData.

For 2D charts

string data_array = "[{'x':1, 'y':20},{'x':2,'y':33},{'x':3, 'y':42},{'x':4,'y':52}]";


var point = GenerateLineSeries(1, 50);

// Transfer data from controller to View.

ViewData["DataPoints"] = data_array;

return View();

For 3D charts

// setting number of series and points to be generated in each series.

var point = GeneratePointSeries(6, 10);

// Transfer data from controller to View.

ViewData[“DataPoints”] = point;

return View();

You can find this ASP.NET Data Visualization template available for you to download directly from GitHub. You can also check the rest of the ready-made data visualization templates available for Android, iOS, Xamarin, React, UNO Platform, and more!

Happy coding!