A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
asd
- Posts: 19
- Joined: Tue Sep 26, 2006 11:28 pm
Post
by asd » Tue Aug 05, 2008 1:36 pm
Hi everybody!
Is it possible to have fatter/bigger points in a spiderweb?
Thanks.
-
Siniz
- Posts: 30
- Joined: Mon Jul 21, 2008 10:38 am
Post
by Siniz » Tue Aug 05, 2008 2:50 pm
I've never used a SpiderWebPlot, but have you tried setting a new shape via the setLegendItemShape(java.awt.Shape) and see what it does?
-
asd
- Posts: 19
- Joined: Tue Sep 26, 2006 11:28 pm
Post
by asd » Tue Aug 05, 2008 3:34 pm
I tried doing something like
plot.setLegendItemShape(new Rectangle(17, 17));
but nothing happend...
Thanks anyway.
-
asd
- Posts: 19
- Joined: Tue Sep 26, 2006 11:28 pm
Post
by asd » Tue Aug 05, 2008 8:33 pm
After hours of searching I found it.
To draw bigger points you have to do this:
plot.setHeadPercent(0.03d);
The size is a percentage of the plot area height and width.
I wish this method had a more intuitive name.
Cheers.
-
Siniz
- Posts: 30
- Joined: Mon Jul 21, 2008 10:38 am
Post
by Siniz » Tue Aug 05, 2008 9:20 pm
Cool thing that you found it
