XYDotRenderer

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

XYDotRenderer

Post by jcamp » Sat Feb 19, 2005 8:04 pm

could someone please explain to me why the following code does not produce 'ellipse' points on my scatter chart?

XYPlot plot = (XYPlot) ((JFreeChart) chart).getPlot();
XYDotRenderer xy = new XYDotRenderer();
xy.setPaint(Color.BLACK);
Shape s;
s = new Ellipse2D.Float(0,0,4,4);
xy.setShape(s);

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Mon Feb 21, 2005 8:47 am

I have two hints:
1) In the code fragment you never attach the renderer to the plot
2) I never used the DotRender but its name is not very convincing for shapes. Perhaps you can try the XYLineAndShapeRenderer.

Locked