There is no way to display time axis labels across multiple days without a rollover of the hours at 24, so that the axis labels would go 0, 12, 0, 12.
Instead you should use CartesianCoordinates, with standard LinearAxis, and StandardAxisLabels. Then you just scale the axis for the hours that you want.
We made this simple change to the ScatterPlots.SimpleScatter example program.
LinearAxis xAxis = new LinearAxis(pTransform1, ChartObj.X_AXIS); // added the following two lines xAxis.AxisTickSpace = 2; xAxis.AxisMinorTicksPerMajor = 6; // end of change chartVu.AddChartObject(xAxis);
If you scale the x-axis for hours, then the x-data that you plot would be in expressed in hours, i.e. a data point at 5 minutes would have a value of(5/60 = 0.083333) of an hour.
|