Showing Shapes

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ashish_sriv
Posts: 20
Joined: Tue Jan 16, 2007 1:54 pm

Showing Shapes

Post by ashish_sriv » Tue Feb 27, 2007 4:52 pm

Hi,
I have large number of data points in my chart. I want to show the shape on some data points only, not to all. I am trying to draw XYLine Chart.

Can I do it in JfreeChart?

Thanks

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 » Tue Feb 27, 2007 5:34 pm

One way would be to subclass XYLineAndShapeRenderer and override the getItemShapeVisible(int, int) method...return true for the items that you want the shape to be visible for, and false for the rest.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked