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
125
Notification of CategoryDateTimeXAxis interval change?
posted

Hi,

We have a zoomable chart which uses a CategoryDateTimeXAxis.  Ordinarily the labels are displayed as HH:mm:ss, but when the chart is zoomed in (and the interval becomes less than 1s), I'd like to switch the format to be HH:mm:ss.fff.

How is it possible to determine when the interval on the axis has changed?  I have tried hooking up the WindowRecChanged event on the chart, which almost works, but this event is being fired *before* the interval on the X axis is recalculated.

Thanks very much,

Graham.

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Graham,

    Thank you for your post.

    Each time the XamDataChart gets zoomed or resized, a "refresh" operation takes place and the canvas of the chart gets re-evaluated. When this completes, the chart raises an event called RefreshCompleted, which I would recommend that you use for this.

    There also exists another forum thread with a sample project that demonstrates a functionality much like the one you are looking to achieve. Here is a link to that forum thread: http://es.infragistics.com/community/forums/p/52624/274026.aspx#274026. The sample project that I am referencing should show up at the bottom of the page on a post from Rob. For convenience, I have also attached that sample project to this forum thread as well.

    I hope this helps you. Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    DataChartAxisLabels.zip
Children
No Data