over 10 series name

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

over 10 series name

Post by James Lee » Fri May 11, 2001 8:29 pm

Dear

I'm developing line chart. I have over 10 series name automatically.
if over 10, I show same color between first and 10th; red colour.
Can I change the color of 10th?

Have a great day.

James Lee
lku1106@hotmail.com
150 Graydon Hall Driver, Apt #405, Toronto

David Gilbert

RE: over 10 series name

Post by David Gilbert » Sun May 13, 2001 6:57 am

James,

You need to create an array of Paint objects (the array can be any dimension) then call the setSeriesPaint(...) method in the JFreeChart class. Your plot will use the colors from this array, one per series, until the end of the array is reached, then it starts from the beginning again. The default array has 10 items.

Regards,

DG.

Locked