开发者

Vertical Axis Scaling with JasperReport Charts

开发者_如何转开发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?


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)"));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜