Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to create a line graph in asp.net using c# so in x-axis it will show the time, in y-axis it show the currency. two values bid and ask are to be shown by the two line red and blue in the graph. the graph takes the values from database and also update itself after every second so that the graph should be continuous. how is it possible?
Posted

 
Share this answer
 
Comments
Espen Harlinn 18-Jul-12 11:08am    
5'ed!
Sergey Alexandrovich Kryukov 18-Jul-12 11:27am    
Thank you, Espen.
--SA
Hello,

Go through following article:
drawing line chart[^]
Creating Line Chart For WebForms Using C#.[^]

For continuous update you can use Substitution Control, which will help in getting the updated data.
Please go through following article for more information:
http://msdn.microsoft.com/en-us/library/ms228212.aspx[^]
http://www.dotnetfunda.com/tutorials/controls/substitution.aspx[^]

You can also use XMLHTTPRequest, which will hit the database to get the updated data. You can the use the result of XMLHTTPRequest to update the line graph.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900