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
60
Binding DateTime to Area Chart X axis
posted

I'm trying to get the x axis to show a datetime value instead of a number.  Is this possible?  I've looked at several other post but they look like it is only for a scatter chart.  here is the latest code I'm trying.

 

Axis xAxis = new Axis();

            xAxis.AxisType = AxisType.PrimaryX;

            xAxis.AutoRange = false;

            xAxis.Label.Format = "{0:H:mm:ss}";
chart2.Axes.Add(xAxis);
Parents
No Data
Reply Children
No Data