I am trying to change the line thickness in some jfreechart graphs; in case of XY graphs, I am using the following code:
chartPanel.getChart().getXYPlot().getRenderer().setSeriesStroke(i, new BasicStroke(2.0f));
and it works properly. In case of polar graphs I tried the following code:
PolarPlot plot = (PolarPlot) chartPanel.getChart().getPlot();
DefaultPolarItemRenderer renderer = (DefaultPolarItemRenderer) plot.getRenderer();
renderer.setSeriesStroke(i, new BasicStroke(2.0f));
but it does not work, the line thickness is always the same. Do you have a clue?