XYLineChart: Multicolored Series?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Harry Plotter ;-)
Posts: 12
Joined: Thu Aug 04, 2005 2:56 pm
Location: Oldenburg - Germany

XYLineChart: Multicolored Series?

Post by Harry Plotter ;-) » Thu Aug 04, 2005 2:58 pm

Hello everybody,

I have a question concerning XYLineCharts, as far as I learned you use

Code: Select all

this.xyplot.getRenderer(0).setSeriesPaint(0, colors[1]);
for drawing a Series with a Special Color.

My Problem is now that I need a different Color for rising Values in the Series and for falling Values.
Is there a possibility to do something like that?
Or can anybody tell me where to place a function which does that? (..hopefully it has not to be placed in the jcommons part ...)

Thanks in advance for any hints and help.

Peter

yeyu710
Posts: 3
Joined: Thu Aug 04, 2005 3:30 pm
Contact:

Thanks

Post by yeyu710 » Thu Aug 04, 2005 3:51 pm

I'am sorry! I don't help you!
But I learn somethings from your message !Thank you!


(hehe,My english is very pool!)
I'am from china!

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Thu Aug 04, 2005 4:00 pm

Subclass the renderer and override this method

Code: Select all

public Paint getItemPaint(int series, int item)

Locked