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

Dynamically select on chart without refresh

6 Answers 142 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 11 Jun 2014, 06:42 AM
Hi,

We are currently evaluating kendo UI charts, and here is our use case.

we need to display large number of points on line chart, for a date range selected.

We plan to use 2 charts on a page, one will be a selection/navigation chart (like this one: http://demos.telerik.com/kendo-ui/chart-api/selection) used to select date range. 2nd chart will be a line chart with multiple series. (screen cap attached)

Also we plan to have navigation options "<Next> Month, Week, Day <Prev>" so that user has an option to move/navigate through dates (without clicking/dragging the zipper on the navigation chart). During this we want the keep the navigation chart synchronized with Next/prev buttons navigation.
we could achieve this by setting:

navchart.options.categoryAxis.select.from
navchart.options.categoryAxis.select.to

But each time we need to do navchart.refresh() to reflect the changes.

This is causing some performance issues when the charts have more number of points (taking abt 5 to 6 seconds to redraw both charts for 3 series, each with 6000 points).
I noticed we can cut this time by half if I don't refresh the Selection/navigation chart (which really does not need to refresh, other than just moving the date selection zipper to keep both charts synchronized)

I have attached a screen shot of how our chart page looks like.

Please suggest on how to keep the Navigation/Selection chart synchronized without refreshing it each time.

Thanks very much!







Can you please suggest

6 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 11 Jun 2014, 06:45 AM
I think we will need this on regular selection chart (not stock chart like in below post). 

http://www.telerik.com/forums/stock-chart-double-selection-problem

Thank you!
0
Hristo Germanov
Telerik team
answered on 12 Jun 2014, 08:42 AM
Hello Kevin,

Custom selection is not supported but there is a possible workaround in this case: http://trykendoui.telerik.com/@germanov/iNin/2

I think that the Stock Chart will give you all that you need and I think that you need to use it instead of two separate charts. 

We will give our best to improve the Stock Chart in our future releases.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kevin
Top achievements
Rank 1
answered on 12 Jun 2014, 10:53 PM
Hi,

I have already tried out the Stock chart, and found that it is not very responsive when it comes to displaying large number of points.
It actually performs much slower than regular line chart.
(We want to display some profile data on the chart which will not make sense if we reduce the number of points).

is there any private API I can call for the original custom selection issue I posted?
Something like: http://www.telerik.com/forums/programmatically-trigger-legenditemclick-event

Thanks!












0
Hristo Germanov
Telerik team
answered on 13 Jun 2014, 01:48 PM
Hi Kevin,

Could you try to implement something like in this online demo: http://demos.telerik.com/kendo-ui/financial/virtualization

If this can't help you could you please give me a sample project with your data that I can examine and advice you further?

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kevin
Top achievements
Rank 1
answered on 13 Jun 2014, 05:43 PM
Hi,

I have posted the details on this support ticket:  829466

Thanks,
Raghu...
0
Hristo Germanov
Telerik team
answered on 17 Jun 2014, 09:26 PM
Hello Kevin,

Thank you for the additional information.

I will examine it and I will replay to you as soon as possible.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Hristo Germanov
Telerik team
Share this question
or