Why you cant choose a color at TimeSeriesChart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Rahan
Posts: 12
Joined: Fri Jul 08, 2005 3:30 pm

Why you cant choose a color at TimeSeriesChart?

Post by Rahan » Wed Jul 16, 2008 10:57 am

Hi,

i use JfreeChart version 1.0.9. We create a TimeSeriesChart like this.

Image

But the chart user wants to change the line styles, like color, thickness, solid, dotted, or dashed and in the properties this is not active.

Why is this noct active?

Can someone help me? I know, i can change the color with

Code: Select all

XYItemRenderer r = plot.getRenderer();
XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
renderer.setSeriesPaint(0, Color.green);

I dont know, who can the chart user change the color and the other thinks llike thickness.

Thanks
Rahan

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Jul 17, 2008 9:56 pm

The chart property editor code is old and incomplete. It needs some work, but it's not an easy thing to develop (time consuming and tricky).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked