Is there an easy way to pull data from a database and update an HTML chart with real-time stock prices tic by tic without reloading the whole page. I'm using ASP.Net and SQL server.
I did this before by using frames with server side code that generated javascript and a timer would load new points but that was super kludgy and I'm curious what the best practice is nowadays. That was about 10 years ago I did that page.
Was going to use Silverlight but it's days seem numbered.
Perhaps a javascript db query technique???
Thanks so much!
Joseph
Update HTML5 Chart with Realtime Stock Quotes
Re: Update HTML5 Chart with Realtime Stock Quotes
Hi Joseph,
I think calling Chart1.daw() should be enough to refresh the chart. Have you tried it?
See the realtime example in the features demo here.
I think calling Chart1.daw() should be enough to refresh the chart. Have you tried it?
See the realtime example in the features demo here.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Update HTML5 Chart with Realtime Stock Quotes
Hi Yeray,
Yes I did see that example and that shows how to refresh the chart and redraw real-time.
I suppose my question is how does one query a datasource real-time using html 5/javascript.
The example seems to generate it's own data and doesn't query a datasource as a stock chart would.
Thanks,
ja
Yes I did see that example and that shows how to refresh the chart and redraw real-time.
I suppose my question is how does one query a datasource real-time using html 5/javascript.
The example seems to generate it's own data and doesn't query a datasource as a stock chart would.
Thanks,
ja