My X axis is only displaying one label and I can't figure out why.
double y;
DateTime x;
LineSeries series = new LineSeries();
series.BorderWidth = 1;
DateTime now = new DateTime(2015, 1, 2, 4, 0, 0, 950);
for (int i = 0; i < 100; i++)
{
y = Math.Sin((double)(i) * 0.2);
x = now.AddMilliseconds(i);
series.DataPoints.Add(new CategoricalDataPoint(y, x));
}
DateTimeContinuousAxis axis = new DateTimeContinuousAxis();
axis.PlotMode = AxisPlotMode.OnTicks;
axis.LabelFormat = "{0:s.fff}";
series.HorizontalAxis = axis;
chart1.Series.Add(series);
double y;
DateTime x;
LineSeries series = new LineSeries();
series.BorderWidth = 1;
DateTime now = new DateTime(2015, 1, 2, 4, 0, 0, 950);
for (int i = 0; i < 100; i++)
{
y = Math.Sin((double)(i) * 0.2);
x = now.AddMilliseconds(i);
series.DataPoints.Add(new CategoricalDataPoint(y, x));
}
DateTimeContinuousAxis axis = new DateTimeContinuousAxis();
axis.PlotMode = AxisPlotMode.OnTicks;
axis.LabelFormat = "{0:s.fff}";
series.HorizontalAxis = axis;
chart1.Series.Add(series);