|
How can I set my own colors for each series in my chart? |
|
|
You can use the setSeriesPaint() method in the renderer. For example, the
following code could be used for a bar chart:
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setSeriesPaint(0, Color.green);
renderer.setSeriesPaint(1, Color.red);
// and so on...
|
Source: JFreeChart FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.