i would like to put the values(5, 6, 7 , 8 ,9,10) on y-axis
and
dates on x-axis in VerticalXYBarChart.can any one help me how to do that.
thanks
anu
how to set labels on y-axis in verticalxybarchart??
Re: how to set labels on y-axis in verticalxybarchart??
If you want to set a fixed tick unit size of 1, you can do this:
XYPlot plot = myChart.getXYPlot();
NumberAxis rangeAxis = (NumberAxis)plot.getRangeAxis();
rangeAxis.setTickUnit(new NumberTickUnit(1.0, new java.text.DecimalFormat("0")));
If you want auto tick unit selection with integer ticks only, this thread will help:
http://www.object-refinery.com/phorum-3 ... 673&t=3648
Regards,
DG.
XYPlot plot = myChart.getXYPlot();
NumberAxis rangeAxis = (NumberAxis)plot.getRangeAxis();
rangeAxis.setTickUnit(new NumberTickUnit(1.0, new java.text.DecimalFormat("0")));
If you want auto tick unit selection with integer ticks only, this thread will help:
http://www.object-refinery.com/phorum-3 ... 673&t=3648
Regards,
DG.