How to change the size of a dot in a scatter plot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ahury
Posts: 14
Joined: Tue Apr 24, 2007 3:20 pm

How to change the size of a dot in a scatter plot

Post by ahury » Wed May 02, 2007 9:08 pm

Can anybody explain me with an example how I can change the size of the dot. I use a scatter plot .

jwenting
Posts: 157
Joined: Sat Jul 15, 2006 7:46 am

Post by jwenting » Thu May 03, 2007 9:10 am

Code: Select all

        XYPlot plot = chart.getXYPlot();
        XYDotRenderer dotRenderer = new XYDotRenderer();
        dotRenderer.setDotWidth(5);
        dotRenderer.setDotHeight(5);
        plot.setRenderer(dotRenderer);

ahury
Posts: 14
Joined: Tue Apr 24, 2007 3:20 pm

Post by ahury » Thu May 03, 2007 11:24 am

I use a scatter plot with and XYLineAndShapeRenderer. I use the ToolTipGenerator and URLGenerator methods.the p^roblem with this code is not possible to use this generator.

Locked