Charts 更改Primefaces 5.2中的字体大小<;p:图表jqplot xaxis勾号
如何更改p:chart bar jqplot xaxis勾号中的字体大小?我使用Primefaces 5.2并覆盖样式类不起作用Charts 更改Primefaces 5.2中的字体大小<;p:图表jqplot xaxis勾号,charts,primefaces,jqplot,Charts,Primefaces,Jqplot,如何更改p:chart bar jqplot xaxis勾号中的字体大小?我使用Primefaces 5.2并覆盖样式类不起作用 根据JQPlot,您可以更改字体大小和字体系列: 因此,在PF中,您可以使用图表扩展器功能并执行此操作 JAVA: final LineChartModel model = new LineChartModel(); model.setExtender("chartExtender"); function chartExtender() { this.cfg
根据JQPlot,您可以更改字体大小和字体系列: 因此,在PF中,您可以使用图表扩展器功能并执行此操作 JAVA:
final LineChartModel model = new LineChartModel();
model.setExtender("chartExtender");
function chartExtender() {
this.cfg.axesDefaults = {
tickOptions: {
fontFamily: 'Georgia',
fontSize: '10pt',
angle: -30
}
};
}
JAVASCRIPT:
final LineChartModel model = new LineChartModel();
model.setExtender("chartExtender");
function chartExtender() {
this.cfg.axesDefaults = {
tickOptions: {
fontFamily: 'Georgia',
fontSize: '10pt',
angle: -30
}
};
}
谢谢你的回答。哪里粘贴Javascript代码?在外部文件中?如何包含到managedbean?Javascript会出现在使用p:chart的XHTML页面中。