【发布时间】:2018-08-30 22:45:17
【问题描述】:
我有一个水平条形图。我可以设置轴的字体大小,但不能设置点标签的。怎么能做到这一点?
谢谢
var plot2 = $.jqplot('chart2', [values], {
seriesDefaults: {
renderer:$.jqplot.BarRenderer,
rendererOptions: {
barDirection: 'horizontal',
barPadding: 40,
barMargin: 40,
barWidth: 10
},
pointLabels: {
show: true, location: 'e', edgeTolerance: -15, formatString: '%s'
}
},
axes: {
xaxis: {
tickOptions: {
fontSize: '30pt'
}
},
yaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
tickOptions: {
fontSize: '30pt'
}
}
}
});
【问题讨论】:
标签: jqplot