Search code examples
javajfreechartfont-size

How to change the axis value font on a JFreeChart


Just as the title says, if I have a JFreeChart (or want to create one) how do I specify the font that is used for the values on the axis? Not the axis label, but the actual values. Specifically I just want to make the font a little bigger.


Solution

  • Try setTickLabelFont(java.awt.Font font) on the relevant 'Axis'.