I would like to know what are the methods to use to change dots polarplot size and shape . And also if it's possible to disable dots for this type of plot .
here is the code plotting polar of two series with default dots.
Thank you
package jfreechart;
import java.awt.Color;
import javax.swing.JFrame;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PolarPlot;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
public class JFreeChartPolarChartExample extends JFrame {
private static final long serialVersionUID = 1L;
public JFreeChartPolarChartExample(String applicationTitle) {
super(applicationTitle);
XYSeriesCollection dataSet = new XYSeriesCollection();
XYSeries series1 = createRandomData("Series 1", 500);
XYSeries series2 = createRandomData("Series 2", 60);
dataSet.addSeries(series1);
dataSet.addSeries(series2);
PolarPlot pp = new PolarPlot();
pp.setAngleGridlinePaint (Color.BLACK);
JFreeChart polarChart = ChartFactory.createPolarChart(null, dataSet, true, true, false);
// Adding chart into a chart panel
ChartPanel chartPanel = new ChartPanel(polarChart);
// settind default size
chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
setContentPane(chartPanel);
}
private static XYSeries createRandomData(final String name, final double maxvalue ) {
final XYSeries series = new XYSeries(name);
for (double az = 0.0; az < 360.0; az =az+10*Math.random())
{
final double value = maxvalue*(0.8 +0.2*Math.random());
series.add(az, value);
}
return series;
}
public static void main(String[] args) {
JFreeChartPolarChartExample chart = new JFreeChartPolarChartExample(null);
chart.pack();
chart.setVisible(true);
}
}