Fill the shapes on ScatterPlot chart

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

Fill the shapes on ScatterPlot chart

Post by Elio » Tue Jul 02, 2002 8:33 pm

Hi!!

I would like to know if it's possible to fill all the shapes on ScatterPlot chart and not just the borders.

Thanks!!

David Gilbert

Re: Fill the shapes on ScatterPlot chart

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

Another developer added a protected method isShapeFilled in the StandardXYItemRenderer class...at the moment this returns false always, I guess you can subclass and override the method. When I get a chance, I'll review the code to see if it can be made into an attribute that you can get/set.

Regards,

DG.

Steve

Re: Fill the shapes on ScatterPlot chart

Post by Steve » Wed Jan 08, 2003 4:41 pm

Hi,

Are ScatterPlot shapes fillable in 0.9.4? How is it done?

Thanks!

David Gilbert

Re: Fill the shapes on ScatterPlot chart

Post by David Gilbert » Thu Jan 09, 2003 7:28 am

You can use the setDefaultShapeFilled(...) method in the StandardXYItemRenderer class. This sets the default value returned by the isShapeFilled(...) method ... you can override that method if you want some shapes filled and others not.

Regards,

Dave Gilbert

Locked