can someone tell me how I can fix my label axis scale!?
for an example i want that my axis label domain(scale) goes to 20 in 20, something like this,
|____|_____|_____|_____|
0 20 40 60 80
and not automatically.
thanks in advance.[/img]
HOW can I FIXED my Scale
If its a number axis (which I think it is) you can call the setTickUnit method.
Code: Select all
NumberAxis domainAxis = (NumberAxis) chart.getXYPlot().getDomainAxis();
domainAxis.setTickUnit(new NumberTickUnit(20,new DecimalFormat("0"));