setSeriesPaint in 0.9.5?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bob yang

setSeriesPaint in 0.9.5?

Post by bob yang » Sat Feb 15, 2003 2:58 am

hi, in 0.9.4, I can use

xyplot.setSeriesPaint(new Paint[] {Color.orange, Color.green});

but there is no such method in 0.9.5 anymore.

I just wonder if anyone knows what the method to use to set the color of serie? thank you!

David Gilbert

Re: setSeriesPaint in 0.9.5?

Post by David Gilbert » Mon Feb 17, 2003 9:53 am

The setSeriesPaint(...) method is moved from the plot to the renderer, and now works slightly differently. The renderer keeps a lookup table...the first row contains the series colors for the primary dataset, the second row contains the series colors for the secondary dataset. If you use two datasets and ONE renderer, then both rows are required. If you use two datasets and TWO renderers, one row in the lookup table for each renderer is redundant.

Regards,

Dave Gilbert

Locked