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

Dragging chart on which datapoints get updated

1 Answer 68 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Supriya
Top achievements
Rank 1
Supriya asked on 09 May 2013, 11:35 AM
avatar

Hi,
Thanks for the wonderful chart control provided from telerik. Is there a feature like dragging the chart area and datapoints gets updated depending on the drag.



Scenario:
1. RadCartesianChart holding queue with 1000 data points.
2. But the current chart view shows only latest 10 points.
3. If drag the chart area to left/right, then data points must get updated. (this must depend on drag sensitivity).
4. This is some thing like playing the chart area w.r.t to datapoints in the queue.
5. Should have an event warning me that i am at point 0 and point 1000 on the graph. (start and end of the queue).

Please reply AS SOON AS POSSIBLE.

Thanks,
Supriya

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 14 May 2013, 12:25 PM
Hi Supriya,

A Drag to pan (scroll) feature will be introduced for our next release (Q2 2013) which is expected next month.

To implement your scenario, I would recommend:
1. Loading your whole data inside the chart
2. Setting the chart Zoom / PanOffset so that only the last ten data points are visible
3. Hiding the PanZoomBar(s) and using the chart area drag to pan feature or setting the PanZoomBar in scroll-only mode (which currently is your only option).

The RadChartView has UI virtualization, so there is no need to load parts of the data on demand, because visual elements will be created only for the visible data points.

To see how the chart behaves in similar scenarios, please check these 2 online examples (ex1, ex2).
 
Regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Supriya
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or