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
Weak control of graphs look
Re: Weak control of graphs look
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.
XYItemRenderer renderer = new StandardXYItemRenderer(StandardXYItemRenderer.SHAPES, new StandardXYToolTipGenerator()));
XYPlot plot = myChart.getXYPlot();
plot.setXYItemRenderer(renderer);
Regards,
DG.
Re: Weak control of graphs look
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
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
Re: Weak control of graphs look
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
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
Re: Weak control of graphs look
(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
Thanks
miro