looking for example of chartist.js with c#. Not using MVC or Ajax
Loading
looking for example of chartist.js with c#. Not using MVC or Ajax
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepak RawatPosted Jul 24, 2023, 8:19 AM
Create a new ASP.NET Web Forms application in Visual Studio.
Add the Chartist.js library to your project. You can download it or use a CDN. In this example, we'll use a CDN.
In your Web Forms page (e.g., Default.aspx)
In the code-behind file (Default.aspx.cs), add the method to generate chart data:
the C# code-behind contains the
GetSalesData()method, which returns sample sales data as a serialized JSON object. The JavaScript code in the Web Forms page receives this data and prepares it in a format suitable for Chartist.js. The chart is then created and displayed on the client-side.