How to render a line with dots having customizable width?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
snkm007
Posts: 24
Joined: Tue Oct 16, 2007 1:52 pm

How to render a line with dots having customizable width?

Post by snkm007 » Tue Oct 30, 2007 2:04 pm

Hi,

I need to render a line as the one with dots/pixels having customizable width - I mean - the width between each of the data values or the (x,y) pair, which in themselves are the dots should, in turn, be accomodated with dots/pixels and that width should also be customizable.

For instance : I need to get a chart as shown (Scatter Plot)
on http://snkulkarni.blogspot.com

Can you please provide me a pointer to achieve the same?

Thanks in advance,
SNK

annac
Posts: 24
Joined: Mon Oct 01, 2007 7:56 pm
Location: Canada

Post by annac » Tue Oct 30, 2007 4:42 pm

have you looked at the XYLineAndShapeRenderer? it has setShapesVisible(boolean) and setLinesVisible(boolean) methods.

Locked