Updating problems

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

Updating problems

Post by Frank Rossdeutscher » Mon Jul 01, 2002 10:40 am

Hi DG!

I just updated from .8.1 to .9.2. NOw, in my XY Plots, there are lines between the data spots, which weren there before the upgrade. I'd like not to have these lines, as they make my charts unreadable.
How can I remove them?

Thanks, Frank!

David Gilbert

Re: Updating problems

Post by David Gilbert » Tue Jul 02, 2002 6:10 am

The default renderer (an instance of StandardXYItemRenderer) draws lines between data points in the XYPlot. You could create another renderer that draws only shapes:

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

Regards,

DG.

Frank Rossdeutscher

Re: Updating problems

Post by Frank Rossdeutscher » Thu Jul 04, 2002 10:53 am

Hi DG!

Everything works fine now, thanks for the help!

Frank.

Locked