|
The y-axis on my chart shows decimal fractions. How can i display only integral values? |
|
|
Yes, you can replace the collection of standard tick units for the axis
as follows:
NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
|
Source: JFreeChart FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.