Hello,
When using LabelStep for ChartXAxis, the resulting image does not have the axis lines centered at the step interval. Is there any way to override this behavior and make lines centered at the interval.
I am using the following code
When using LabelStep for ChartXAxis, the resulting image does not have the axis lines centered at the step interval. Is there any way to override this behavior and make lines centered at the interval.
I am using the following code
// X Axis properties
chart.PlotArea.XAxis.VisibleValues = ChartAxisVisibleValues.Positive;
chart.PlotArea.XAxis.Step = 1;
chart.PlotArea.XAxis.LabelStep = 2;
chart.PlotArea.XAxis.IsZeroBased =
false
;
chart.PlotArea.XAxis.AutoScale =
false
;
chart.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.General;