change domain and range label font

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rkhlin
Posts: 10
Joined: Tue Apr 06, 2004 1:12 am

change domain and range label font

Post by rkhlin » Wed May 26, 2004 7:12 am

Hi,

Anyone knows how to set the font for the domain and range label. I need them to be bold to stand out from those number and items lable.

Many Thanks,
Richard

rkhlin
Posts: 10
Joined: Tue Apr 06, 2004 1:12 am

I found the api

Post by rkhlin » Wed May 26, 2004 8:20 am

something like this:

NumberAxis axisR = (NumberAxis) plot.getRangeAxis();
axisR.setLabelFont(new Font("Arial", Font.BOLD, 12));

Locked