It is labeling every minor grid line, not every major grid line. It does indicate the major and minor grid lines. Such labeling, of course, is not what you want.
XYSeriesFormatter<XYRegionFormatter> formatter =
new LineAndPointFormatter(Color.RED, null, null, null);
formatter.setLegendIconEnabled(false);
mSeries = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY,
"Series 1", 0, 10, 20, 30, 40, 50, 60, 70, 80, 90);
mPlot.addSeries(mSeries, formatter);
mPlot.setRangeStep(StepMode.INCREMENT_BY_VAL, 1);
mPlot.setLinesPerRangeLabel(10);
It is labeling every minor grid line, not every major grid line. It does indicate the major and minor grid lines. Such labeling, of course, is not what you want.
The screen dump is the result of this code: