A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
ajgwin
- Posts: 18
- Joined: Mon Mar 17, 2003 4:53 pm
Post
by ajgwin » Wed Mar 26, 2003 10:18 pm
Can I set each point (not series) on a chart to be a different shape depending on some criteria I have set for that point? I would really like to do that. Thanks.
Allyson
-
david.gilbert
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
-
Contact:
Post
by david.gilbert » Wed Mar 26, 2003 11:10 pm
You should be able to do this by subclassing the renderer (e.g. StandardXYItemRenderer) and overriding the getItemShape(...) method (which is inherited from the AbstractRenderer class).
Regards,
Dave Gilbert
-
ajgwin
- Posts: 18
- Joined: Mon Mar 17, 2003 4:53 pm
Post
by ajgwin » Wed Mar 26, 2003 11:54 pm
Thanks, Dave. I will try that.
Allyson