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
185
Timeseries based Axis Label Formatting Query
posted

I've got an issue where I'm loading in sec by sec data into a DataChart and using a DateTime based X-axis.  The min-max values for the axis are set to a period of 5 days apart.

What I'm wanting to do is when the user looks at all 5 days, the X-axis Label is formatted by "dd/MM/yy" but as they zoom in, the formatting changes to say the hours in the day (i.e. HH:mm:ss).  Now I realise I can set the label formatting at run-time easily enough, but is there any trigger/event for when a user zooms in using the mouse?  And it would also need to advise what the datetime width of the chart is to determine the correct formatting to apply.

Any help would be appreciated.  This functionality is quite common in date/time based charting especially with tiny scales of data to display over large periods (i.e. years).