ChartView and Real time data

5 posts, 0 answers
  1. Pongsathon
    Pongsathon avatar
    2 posts
    Member since:
    Jul 2015

    Posted 22 Jul 2015 Link to this post

    I would like create Finical chart to update real time data, let say every 1 second. I have create a small application with CandlestickSeries type and timer to add data point to chart. i also attached my code to this post.

    Questions:

    - please look at video, chart keep re-render and keep refreshing. Is that a way that to prevent hold chart refreshed? (I think that Vertical Axis no need to render).

    - I would like to build a chart to let use scroll back to see last hour data but on current screen i would liek to show only last 2 mins data. Is that a sample to resolve the requirements?

     

    Please help

    Regards

  2. Pongsathon
    Pongsathon avatar
    2 posts
    Member since:
    Jul 2015

    Posted 22 Jul 2015 Link to this post

    Please have a look on the video

    https://drive.google.com/open?id=0B7UlIBH-5v73WkFCR01JVV9IQ28

  3. Hristo
    Admin
    Hristo avatar
    999 posts

    Posted 27 Jul 2015 Link to this post

    Hello Pongsathon,

    Thank you for writing.

    Indeed the vertical axis should not flicker, however, I am not sure of your implementation of the live data chart and what actually is causing the problem.

    That is why I am sending you a sample project demonstrating an approach which I think is suitable also for your scenario.

    Considering your other request, I think that for the purpose you could use a second chart in which you could display additional information. We also have an example (ChartView > LiveData) in our demo application covering this type of scenario, the source code of the examples is located in the installation folder of the suite: C:\Program Files (x86)\Telerik\UI for WinForms Q2 2015\Examples. I am also sending you a gif file showing the result of my sample app.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    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
  4. Kalpesh
    Kalpesh avatar
    2 posts
    Member since:
    Jul 2017

    Posted 25 Aug in reply to Hristo Link to this post

    Thank you sir for your help.

    But my Problem is DataTable which neeed to set to RadChartView wchi is come from web api at every second.

    And chart view should be same as in Your given solution.

  5. Hristo
    Admin
    Hristo avatar
    999 posts

    Posted 25 Aug Link to this post

    Hi Kalpesh,

    Thank you for writing.

    You can bind the chart to your DataTable which is updated from your web service. Please check the following article showing how you can bind RadChartViewhttp://docs.telerik.com/devtools/winforms/chartview/populating-with-data/binding-to-datatable.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top