Reputation: 14234
Is there a way to change the scalling of charts in JasperReports. The default is linear, however I would like to change it to a logarithmic. How would I go about doing this with a JasperReports (XY Bar Chart) chart?
Upvotes: 2
Views: 1703
Reputation: 8986
You'll need to use a chart customizer to change the axis on the plot to a LogarithmicAxis
. Something like the following:
XYPlot plot = chart.getXYPlot();
plot.setRangeAxis(new LogarithmicAxis("Log(y)"));
Upvotes: 1