I'm using the MS chart control to display a time series. Points are added to the series over time, and the user can zoom in/out using the normal built-in controls.
The question is, how can I set it up so that the X-axis labels automatically show a format that's appropriate for the time range being displayed?
For example, when the time range displayed on the chart is < 1 hour, I'd want to set it to display HH:mm:ss:
ChartAreas[0].AxisX.LabelStyle.Format ="HH:mm:ss";
But if I zoom out on the same chart to show 6 days of data, I'd want it to display just the date:
ChartAreas[0].AxisX.LabelStyle.Format ="dd/MM/yy";
Is there any built-in functionality to do this?