title: Change font-size of domain axis label and range axis label for jfreechart
body: <p>My goal is to increase the size of <strong>"Revenue ($) " and "Years"</strong>. But I do not know how. I am able to increase the "Apples, Durians,Oranges" and "2012, 2013".</p>
  
  <p>Below are my codes. </p>
  
  <p><img src="https://i.stack.imgur.com/bmuxG.png" alt="image"></p>
  
  <pre><code>    JFreeChart chart = ChartFactory.createBarChart3D("", // chart title
                  "Years", // domain axis label
                  "Revenue ($)", // range axis label
                  dataset, // data
                  PlotOrientation.VERTICAL, // orientation
                  false, // include legend
                  false, // tooltips
                  false);
  
  CategoryPlot plot = chart.getCategoryPlot();
          CategoryAxis axis = plot.getDomainAxis();
  
          CategoryPlot p = chart.getCategoryPlot(); 
           ValueAxis axis2 = p.getRangeAxis();
  
          Font font = new Font("Dialog", Font.PLAIN, 25);
          axis.setTickLabelFont(font);
          Font font2 = new Font("Dialog", Font.PLAIN, 15);
          axis2.setTickLabelFont(font2);
  
          LegendTitle legend = new LegendTitle(plot.getRenderer());
  
          Font font3 = new Font("Dialog", Font.PLAIN, 20); 
          legend.setItemFont(font3); 
          legend.setPosition(RectangleEdge.BOTTOM); 
          chart.addLegend(legend); 
  </code></pre>