Changing the line colour of a timeseries chart??
Changing the line colour of a timeseries chart??
Is there any way of specify what colour you want certain line to be?
Hi,
you can use the renderer of the line to change its color.
The following example changes the color of the first series of the first dataset:
Please search the forum before posting questions. Most of your questions already have been answered.
Ulrich
you can use the renderer of the line to change its color.
The following example changes the color of the first series of the first dataset:
Code: Select all
XYPlot plot;
// ... create the plot
XYItemRenderer renderer = plot.getRenderer();
renderer.setSeriesPaint(0, Color.RED);
Ulrich