Hi,
I am using XYSeriesCollection and added three XYSeries
I want to change the colors of these series
How can I do it?
Plz help
Color of Lines
Hey I have solved the problem
U can use
StandardXYItemRenderer ren = new StandardXYItemRenderer ();
ren.setSeriesPaint(0, new Color(0, 0, 0));
ren.setSeriesPaint(1, new Color(255, 0, 0));
ren.setSeriesPaint(2, new Color(0, 255, 0));
ren.setSeriesPaint(3, new Color(0, 0, 255));
and then set ren in xyplot
U can use
StandardXYItemRenderer ren = new StandardXYItemRenderer ();
ren.setSeriesPaint(0, new Color(0, 0, 0));
ren.setSeriesPaint(1, new Color(255, 0, 0));
ren.setSeriesPaint(2, new Color(0, 255, 0));
ren.setSeriesPaint(3, new Color(0, 0, 255));
and then set ren in xyplot