I am working in polar chart using the jfree library in java. I need show the "Radius tick mark" in the polar chart. I have previously worked in jfree line chart but I am new in polar chart.
I need to get it like this:
I am working in polar chart using the jfree library in java. I need show the "Radius tick mark" in the polar chart. I have previously worked in jfree line chart but I am new in polar chart.
I need to get it like this:
As shown here, a PolarPlot
is typically created with a radial Axis
. While the tick labels on the axis are visible by default, ChartFactory.createPolarChart()
disables them:
rangeAxis.setTickMarksVisible(false);
If you have created your chart using the factory, simply enable the tick marks:
PolarPlot plot = (PolarPlot) chart.getPlot();
ValueAxis axis = plot.getAxis();
axis.setTickLabelsVisible(true);
Alternatively, create the plot yourself, as shown here, and leave the tick labels enabled:
ValueAxis radiusAxis = new NumberAxis();
…
PolarPlot plot = new PolarPlot(dataset, radiusAxis, renderer);