ScatterPlot

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

ScatterPlot

Post by Elio » Tue Jul 02, 2002 3:06 pm

Hi all!!!

I want to know how can i put more than one x value on the ScatterPlot chart and if it is possible to change the shape of the points.

Thanks!!

David Gilbert

Re: ScatterPlot

Post by David Gilbert » Wed Jul 03, 2002 6:39 am

Yes, you can have duplicate x values, but not with the XYSeries/XYSeriesCollection classes...you'll have to use the DefaultXYDataset class for now.

You can change the shapes using the setShapeFactory method in the Plot class. You'll have to write your own ShapeFactory implementation. Look at the SeriesShapeFactory class for one example.

Regards,

DG.

Locked