Highcharts with mvc c # and sql

They are checked and rechecked for approximately 2 days (ug) and cannot find the manual, source, link or documentation on using Highcharts in the MVC4 / 5 C # model, which shows how to configure the controller / model to retrieve data from the SQL Database.

I have this sample of work - static data entered into the controller. http://www.nimbo.com/blog/how-to-use-highcharts-js-with-asp-net-mvc-4/

All samples (from Highcharts and ports accessible via nuget) use static data. I can’t find anything that shows step by step to set up the data connection and pull data so that it appears on the diagram. It can exist, and I cannot find it.

I have db installed. Other pages are connected to db and work - full read / write.

But the basic setup of the chart baffled me. One good example (with comments / instructions) on how to set up a connection, get data and set up array (s) will be very useful.

+2
source share
2 answers

You need to first create a script that will return the data as json, then in javascript will use the function $.getJSON()and get your data. The final step is to use your data in tall charts.

Additional Information: highcharts.com

+1
source

, . dotnet.highcharts. http://dotnethighcharts.codeplex.com. , .

+1

Source: https://habr.com/ru/post/1584985/


All Articles