Multiple series with same colors

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ajgwin
Posts: 18
Joined: Mon Mar 17, 2003 4:53 pm

Multiple series with same colors

Post by ajgwin » Mon Jul 21, 2003 8:47 pm

I want to create multiple series, but don't want them to each have a different color. The reason I need to do this is because I want each series to not to connected to the previous one, but I want them all to look as if they are part of the same series. Is this possible? Right now, I am not defining the colors, but jfreechart is doing that itself. Can I specify it to make them all the same color?

Thanks.

Allyson

guest

Post by guest » Tue Jul 22, 2003 12:47 pm

yes u can do this using this method plot.getRenderer().setSeriesPaint(int series, java.awt.Color)

this is present in the demos provided.

Locked