I'm trying to set two colors that need to be switched at every vertical tick label as background of a JFreeChart linechart.
I want the line chart to appear as the image in this link, where two different light grays alternate as background:
How can I achieve so in JFreeChart?
P.S. I've seen that there is plot.setRangeTickBandPaint(new Color(200, 200, 100, 100))
method for XYPlot
plot type, used in ScatterPlot4
in JFreeChart's demo jar, however, this method does not exist in the line chart plot type.