I use jfreechart draw a bar chart, i want to change the bar color
because the first bar is red ,second is blue,..... i want the first
is blue, the second is green.....i don't find any method can do this
do anyone can give me some advice?? Thanks a lot!
Bar Chart color
RE: Bar Chart color
Hi,
You can use the setSeriesPaint(...) method in the JFreeChart class. Just provide an array of Paint objects - the array can be any size, if there are more series than Paint objects, JFreeChart will cycle through them again from the beginning.
Regards,
DG.
You can use the setSeriesPaint(...) method in the JFreeChart class. Just provide an array of Paint objects - the array can be any size, if there are more series than Paint objects, JFreeChart will cycle through them again from the beginning.
Regards,
DG.