Dragging chart on which datapoints get updated

2 posts, 0 answers
  1. Supriya
    Supriya avatar
    13 posts
    Member since:
    Mar 2013

    Posted 09 May 2013 Link to this post


    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.

    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.

  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 14 May 2013 Link to this post

    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).
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top