Reputation: 13
I try to increase Z axis size at my 3d bar chart. I use jfreechart at version 1.0.19, and can't find proper method to do this. Any ideas?
Upvotes: 1
Views: 254
Reputation: 205875
To alter the faux depth, you can adjust the offset parameters in your BarRenderer3D
constructor, for example:
BarRenderer3D r = new BarRenderer3D(
3 * BarRenderer3D.DEFAULT_X_OFFSET / 2,
3 * BarRenderer3D.DEFAULT_Y_OFFSET / 2);
categoryPlot.setRenderer(r);
To adjust the category label position and font size, use the approaches shown in JFreeChart Bar Graph Labels. See also Migration from JFreeChart 1.0.x regarding 3D charts.
Upvotes: 1