Controlling color of series

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

Controlling color of series

Post by Grant Smiley » Thu Jan 23, 2003 10:04 pm

HI, I just found JFreeChart this week, and am writing prototype servlet to see if this will work for my purposes (pretty sure it will). I am plotting 7+ series simultaneously on an XY plot, and the yellow is very hard to see. I gaurentee someone will ask me to change that color to something else. I can't find this in the javadocs.

I'd rather not rewrite any of JFreeChart at this point to do this.

Initial reaction is this is great product, and I will buy the documentation to support this effort.

Thanks,
Grant Smiley

David Gilbert

Re: Controlling color of series

Post by David Gilbert » Fri Jan 24, 2003 10:20 am

Grant Smiley wrote:
> I am plotting 7+ series simultaneously
> on an XY plot, and the yellow is very hard to see. I
> gaurentee someone will ask me to change that color to
> something else. I can't find this in the javadocs.

You can use the setSeriesPaint(...) methods in the Plot class.

> Initial reaction is this is great product, and I will buy the
> documentation to support this effort.

Thanks! The documentation sales have been steadily increasing, and it is having a positive effect on the amount of time I can spend working on JFreeChart...so thanks to everyone that has chipped in.

Regards,

Dave Gilbert
JFreeChart Project Leader

Locked