This is a migrated thread and some comments may be shown as answers.

ASP.NET Controls RadChart Real time data

4 Answers 189 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mahesh Immedisetty
Top achievements
Rank 1
Mahesh Immedisetty asked on 28 Sep 2010, 05:24 PM
Hi,

I would like to use RadChart in my web application. I would like the radchart to show real time data to the customers over web.

Could anyone please let me know whether ASP.NET chart control supports live charting or do I need to go for silverlight control??

Thanks,
Mahesh

4 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 30 Sep 2010, 03:28 PM
Hello Mahesh Immedisetty,

Thanks for contacting Telerik Support.
Indeed RadChart for ASP.NET AJAX can be used to show live data. Take a look at our demo with full source code where RadChart is bound to a live data-feed source.

Additionally, you can review the following screencast:
http://tv.telerik.com/watch/silverlight/webinar/radcontrols-silverlight-aspnet
which elaborates on the option to integrate Silverlight controls in your ASP.net Ajax application as RadChart for Silverlight provides live data too.

I hope this information helps.

Sincerely yours,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mahesh Babu Immedisetty
Top achievements
Rank 1
answered on 01 Oct 2010, 11:55 AM
Hi,

Thanks for your reply.

Could you please let me know more information on these things:

1) Is the RadChart gets data from RSS feed in a configurable time? or, is it like one time load??
2) Where can we set the configurable time to get the data from the feed?
3) Is the chart updated at the client side or server side? If server side, Do the customers see a flicking image on the browser?

Please help.

Thanks,
Mahesh
0
Evgenia
Telerik team
answered on 06 Oct 2010, 12:41 PM
Hi Mahesh,

1) The RadChart gets data from RSS feed (in already mentioned demo) by one time load.
2) You can use Telerik's RadAjaxManager to "ajaxify" a regular timer control to get the data on preset time interval. For more information take a look at this demo - http://demos.telerik.com/aspnet-ajax/ajax/examples/common/ajaxifytimer/defaultcs.aspx
3) The chart is updated at server side. It renders an image and when refreshed on timer tick it needs time to download the new image and replace the old one, so a flicker might occur. Here is how you can workaround this approach:

RadChart renders a div element with an img element inside it. You can find it like this:
var div = document.getElementById('<%=RadChart1.ClientID %>');
var chart = div.children[0];
You can take advantage of the above structure when implementing caching. For example -- put a second chart in another element in the page with display:none. The timer will update only the hidden image, while the visible will stay intact. Then take advantage of RadAjax's OnResponseEnd client event and replace the visible chart image with the hidden one in the javascript function which is attached to that event.

I have attached a sample page showing this approach. You can adjust the constant in the setTimeout method according to your environment conditions.

Hope this information helps.

All the best,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kalyan
Top achievements
Rank 1
answered on 22 Oct 2012, 06:03 AM
Hi,

 I have a problem of flicking image when showing live data in rad ajax charts but when followed by this below approach it is fine but i want to update chart continuously by timer but not by clicking button.so please provide some solution .


Thanks,
kalyan
Tags
Chart (Obsolete)
Asked by
Mahesh Immedisetty
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Mahesh Babu Immedisetty
Top achievements
Rank 1
Kalyan
Top achievements
Rank 1
Share this question
or