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

Display relatime data

8 Answers 114 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Iron
Christian asked on 21 Jul 2014, 06:02 PM
Hello,

like the title reveals, I need to display data, that is updated irregularly, but at least once every few seconds.

Is it possible to bind the Chart to a SignalR hub, like it is for the grid? (http://demos.telerik.com/aspnet-mvc/grid/signalr)
Which other approaches promise good and efficient results? Polling of WebAPI? A separat SignalR function and adding data to chart on client side?

Thank you in advance.

8 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
Iron
answered on 21 Jul 2014, 06:04 PM
I am sorry for the writing error within the title of this tread.
It would be nice, if an admin could correct it.
0
T. Tsonev
Telerik team
answered on 23 Jul 2014, 11:18 AM
Hi,

I'd recommend SignalR as it is a better solution in terms of performance and efficiency.

There seems to be an issue with the current version of the Chart MVC wrappers with regards to the SignalR data source configuration.
It will actually work for reading data, but the update/delete/create methods are not configurable.

We're looking into this and we'll try to provide support for live updates in the short term.

For the moment I've prepared a JS version as a proof of concept.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
deleteme
Top achievements
Rank 1
answered on 27 Jul 2014, 06:29 PM
Hello, Tsvetomir (am I right, is it your name?)

In your sample the transition of the chart is turned off, therefore the series update without animation and chart re-drawing. But if the transition is turned on, all the chart re-draws, when the data is updated, not only serie. So, is it possible to combine real-time chart series update with animation of these series, but not the whole chart? For example, I have a bar chart with a datasource, that updates via signalr and the only bar serie. Perhaps, the current value of the serie is 10 poins. Now, the datasource update its value to 15. I want the bar of the serie smoothly come longer from 10 to 15, not from 0 to 15. So, is it possible? Sorry for my English, it's not my mother tongue :)
0
T. Tsonev
Telerik team
answered on 28 Jul 2014, 12:57 PM
Hello,

Such incremental updates are not available right now, but this is something that we definitely consider.
There are some technical issues that we need to address first, but we're already working on them.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
deleteme
Top achievements
Rank 1
answered on 28 Jul 2014, 02:06 PM
It will be great! Thank you for answer!
0
Robert
Top achievements
Rank 1
answered on 11 Aug 2015, 10:22 PM

Status on this?

[quote]T. Tsonev said:Hi,

I'd recommend SignalR as it is a better solution in terms of performance and efficiency.

There seems to be an issue with the current version of the Chart MVC wrappers with regards to the SignalR data source configuration.
It will actually work for reading data, but the update/delete/create methods are not configurable.

We're looking into this and we'll try to provide support for live updates in the short term.

For the moment I've prepared a JS version as a proof of concept.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik

 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
[/quote]
0
T. Tsonev
Telerik team
answered on 14 Aug 2015, 07:40 AM
Hi,

I've made an up-to-date example for a SignalR bound Chart available on GitHub.

I hope this helps.

Regards,
T. Tsonev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Robert
Top achievements
Rank 1
answered on 14 Aug 2015, 02:31 PM

Indeed this is great!

 Thank you

Tags
Chart
Asked by
Christian
Top achievements
Rank 1
Iron
Answers by
Christian
Top achievements
Rank 1
Iron
T. Tsonev
Telerik team
deleteme
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Share this question
or