javafx font size of chart title and axis label
<p>I am using javafx to plot bar chart and pie chart. I need to:</p>

<ol>
<li>Change the font size of the x-axis label in bar chart</li>
<li>Change the font size of the bar chart title</li>
<li>Change the font size of the pie chart title</li>
</ol>

<p>For bar chart I am using </p>

<pre><code>xAxis.tickLabelFontProperty().set(Font.font(fontSize));
</code></pre>

<p>which only changes the font size of the text(units) on xaxis,  but doenst change the x axis label</p>

<p>Similarly I am using </p>

<pre><code>chart.setStyle("-fx-font-size: " + fontSize + "px;");
</code></pre>

<p>to change the label of pies in pie chart. It does change the size of the title of pie chart but not in same ratio.</p>