How to place individual colors for lines in XYLinechart
Thanx in advance
Regards,
Sandy
XYLinechart -coloring for lines
What I understand is that you wand to set the color for the whole serie... I am right?
In that case this is a method of the renderer.
example:
where 0 and 1 are the index of the series in your dataset
Of course you'll have to adapt to your context...
In that case this is a method of the renderer.
example:
Code: Select all
XYItemRenderer renderer = plot.getRenderer();
renderer.setSeriesPaint(0,Color.GREEN);
renderer.setSeriesPaint(1,Color.YELLOW);
Of course you'll have to adapt to your context...