Displaying shape at datapoint

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

Displaying shape at datapoint

Post by Frank » Thu Mar 06, 2003 6:22 pm

Is it possible to display a shape at only the last and first datapoint in an XY Plot?

David Gilbert

Re: Displaying shape at datapoint

Post by David Gilbert » Sat Mar 08, 2003 12:55 am

It's not a feature that is directly supported. You could create a secondary dataset containing just the two points, and get shapes plotted that way.

Or extend the annotations framework to support shapes (not too difficult) and add them that way.

Or customise the renderer to add shapes only for the first and last points.

It is one of those cases where having the source code really helps...

Regards,

Dave Gilbert

Locked