Hi all,
I have two XYSeries that belong to a same dataset. First series has to show shapes only, while second series has to show lines only. Both must have the same color. Is there a way to do it ?
Set same color for different series
Re: Set same color for different series
use renderer to set the color
renderer.setSeriesPaint(seriesIndex, Color.black);
plot.setRenderer(seriesIndex, renderer);
renderer.setSeriesPaint(seriesIndex, Color.black);
plot.setRenderer(seriesIndex, renderer);