Weak control of graphs look

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

Weak control of graphs look

Post by Miro » Wed Aug 14, 2002 9:30 am

Hi everybody,

I would like to ask why the "timeseries" graph is drawing the line between the points by default and how can I change it? I need to display only the measured points because the line between them doesn't really make sense, does it?

Can anyone help me, please?

Thanks,

miro

David Gilbert

Re: Weak control of graphs look

Post by David Gilbert » Wed Aug 14, 2002 9:41 am

Well, it makes sense to have the lines between items in the time series charts that I generate. But of course, like many things in JFreeChart, you can change it:

XYItemRenderer renderer = new StandardXYItemRenderer(StandardXYItemRenderer.SHAPES, new StandardXYToolTipGenerator()));
XYPlot plot = myChart.getXYPlot();
plot.setXYItemRenderer(renderer);

Regards,

DG.

Miro

Re: Weak control of graphs look

Post by Miro » Wed Aug 14, 2002 10:52 am

Thank you! It helped. (You see, what i am actually doing is using Cewolf, so I needed to change JFreeChart class ChartFactory, method createTimeSeriesChart...which the Cewolf uses...).

Could you help me once again, please? I need to change the SHAPE (now it is a box). I want it either smaller or only a point. Actually, the best would be a cross like "+". Please, can you give me one more advice on that?

Thank you very much,

miro

Guido Laures

Re: Weak control of graphs look

Post by Guido Laures » Thu Aug 15, 2002 9:26 am

Hi Miro,

as already posted in the Cewolf forum you do not have to patch sources to reach your goals.
You only need to provide a ChartPostprocessor which executes David's code on the chart object.

Regards,
Guido

Miro

Re: Weak control of graphs look

Post by Miro » Fri Aug 16, 2002 6:42 am

(this is going to be more-less about cewolf) Thank you, it works and now I can use the original jar-file. Ok, now I am really convinced that the system is quite flexible. I lack a free documentation, though.

Thanks

miro

Locked