Gridline color on bar chart based on range

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
svenn
Posts: 5
Joined: Tue Sep 28, 2010 11:51 pm
antibot: No, of course not.

Gridline color on bar chart based on range

Post by svenn » Wed Sep 29, 2010 12:21 am

Is it possible to render the gridlines of a bar chart with different colors based on a range of values.

i.e. 0 to 20
gridline will be red
21 to 50
gridline will be orange
51+
gridline will be blue

I found

categoryplot.setRangeGridlinePaint(Color.red);

but it sets the value for all the gridlines on the chart.

Locked