How can you bind data from an SQL Server to a telerik line chart?
At the moment my setup is that I have a scheduled task which retrieves some information (for the sake of simplicity, let’s say this is just an integer value). This information is then stored in my database, along with the datetime the scheduled task was run at.
What I would like to do is create a graph of this integer over time (with the value marked along the Y axis and time along the X).
Most of the bindings examples on the Teleriks website involve a static class, where data is hardcoded into the XAML file.
What is the best way for me to go about structuring and retrieving the data as I would like to ?
I was looking at this example, however it does not go into much detail for how the data is actually retrieved from the binding and how the binding works.
Thanks very much.
well recently I was involved in such a project and here is how I did mine(although mine was a little complicated as I had to show multiple lines on same chart), hope it helps you.
My Data table was in the following format :
and my code is as follow, where the y-axis is Tours and x-axis is the dtMonthno(actual month number):