Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
XamDataChart not picking up all Data points, and Min Max Values
posted

Hi Guys,

I am trying to plot a candle Data chart using XamDataChart. In the attached sample, data is generated minute by minute data for last 30 days. Going forward, we will stream minute by minute data into the existing DataPoints collection asynchronously - and would like to see dynamic updates - i.e. Say for example UI loads data for last 6 months, any new upcoming ticks from the market would get appended to existing loaded data.

Problems,

- Chart does not displays data for entire range data for 01-sep-2019 to 30-sep-2019.

- On Zoom - would like to update min and max values (and interval) dynamically. E.g for Sep 04 - Min - max values are 300-400 respectively, I would like to use this range to display the plotting in the intervals of 50.

Code is shared at following link

https://drive.google.com/file/d/1Te5K0ipzAjzAbSBLBmm-OPW18YEDd7ys/view

thanks,

Parents
No Data
Reply
  • 25665
    Offline posted

    Hello Abhay,

    Thank you for contacting Infragistics!

    The reason the chart doesn’t display data from the 1st to the 30th is when you are generating your data you set the day of the month of the date time to DateTime.Now.Day so all your data will always be for a single day of the day your run the sample.

    Concerning setting the interval you can set the major interval on the axis to 5o for the spacing you want:
    www.infragistics.com/.../datachart-configuring-major-and-minor-intervals

    After doing that and setting VertialZoomable it should zoom well with the interval set. If you don’t like the calculated range based on zooming you can set it yourself as described here:
    www.infragistics.com/.../datachart-axis-range

Children