hiding the old plot and showing new one

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

    Posted 07 May 2013 Link to this post

    hi,
    i have been plotting graph on the basis of data coming live and the data is in bulk. Now the problem am facing is that as the data enters the value on x-axis gets collapsed nothing can be seen unless zoomed. But i want 10 data to be shown at a time and again hide those data when new data comes for plotting. but when graph is maximized i should be able to see all hidden and  data points also. i am attaching u a screenshot of my graph for better understanding.
  2. Supriya
    Supriya avatar
    13 posts
    Member since:
    Mar 2013

    Posted 07 May 2013 Link to this post

    Please can u get me  the solution as soon as possible.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 10 May 2013 Link to this post

    Hi Supriya,

    There are several way you achieve this. For examlpe:
    • You can use several overlayed RadSparkLines inside a RadTimeBar with several RadVerticalAxes. That way you will rely on the TimeBar for the horizontal axis labels and you will not have the problem with overlapping labels that you have in your existing project.
    • You can have two charts - one showing an overview of the whole data and one showing a detailed view of the incoming data. Here is an example of the two charts idea. You can implement the live data chart with a RadCartesianChart which is bound to a collection which holds only the most recent data. Using a timer you update the Minimum and the Maximum of the axis and check your data source to see if there is new data to added. I have attached sample project demonstrating that.

    I hope this was helpful.

    Regards,
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top