3

How to change font size in p:chart bar jqplot-xaxis-tick? I use Primefaces 5.2 and overwrite style class not working.

enter image description here

4Money
  • 179
  • 1
  • 1
  • 10

1 Answers1

3

According to JQPlot you can change the Font Size and Font Family: http://www.jqplot.com/examples/rotated-tick-labels.php

So in PF you can use the Chart Extender feature and do this...

JAVA:

final LineChartModel model = new LineChartModel();
model.setExtender("chartExtender");

JAVASCRIPT:

function chartExtender() {
    this.cfg.axesDefaults = {
    tickOptions: {
      fontFamily: 'Georgia',
      fontSize: '10pt',
      angle: -30
    }
   };
}
Melloware
  • 10,435
  • 2
  • 32
  • 62