Hello all,
How we can change the font of the vertical Axis Lable font.
Regards
Awais Bajwa.
How to change Vertical Axis Label Font
Re: How to change Vertical Axis Label Font
Hi Awais,
First you need to get a reference to the axis. Here I will assume you are using XYPlot, but the code is very similar if you are using a CategoryPlot:
XYPlot plot = myChart.getXYPlot();
Axis axis = plot.getRangeAxis();
axis.setLabelFont(...);
Regards,
DG
First you need to get a reference to the axis. Here I will assume you are using XYPlot, but the code is very similar if you are using a CategoryPlot:
XYPlot plot = myChart.getXYPlot();
Axis axis = plot.getRangeAxis();
axis.setLabelFont(...);
Regards,
DG