Does anyone know how to set the color for even and odd row in the plot? like this example:
http://www.jpmorganam.com.hk/wps/portal ... LX19fXzI!/
Thanks,
Custom plot color for even and odd row
-
- Posts: 31
- Joined: Thu May 27, 2010 4:23 pm
- antibot: No, of course not.
Re: Custom plot color for even and odd row
One way is to use interval markers (about which I've learned yesterday in other thread). Something like:
should do the trick. Pick you favorite color and use simple iteration over range-axis range to add multiple markers instead of hard-coded values.
Might be, there is better trick about which I don't know.
Cheers,
-- m.
Code: Select all
getPlot().addRangeMarker(new IntervalMarker(20, 40, new Color(0, 255, 255, 128)), Layer.BACKGROUND);
Might be, there is better trick about which I don't know.
Cheers,
-- m.