我怎么能这样没有xaxis标签得到渲染,比如
xaxis: { renderer: $.jqplot.CategoryAxisRenderer, ticks: jsonColsObj, labelRenderer: $.jqplot.CanvasAxisLabelRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer, tickOptions: { angle: -30, fontFamily: 'Arial', fontSize: '9pt' } },对于jsonColsObj ,我传入[''] , null和''作为刻度,但它总是显示1为x轴标签,你知道如何解决这个问题吗?
这是一个jsfiddle
我正在使用方法generateStackedBarCharts(data, label, [''], targetDiv); ,第三个参数作为我的x轴标签。
How can I have so that no xaxis label got render, like
xaxis: { renderer: $.jqplot.CategoryAxisRenderer, ticks: jsonColsObj, labelRenderer: $.jqplot.CanvasAxisLabelRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer, tickOptions: { angle: -30, fontFamily: 'Arial', fontSize: '9pt' } },For jsonColsObj, I pass in [''], null and '' for the tick, but it always show 1 for the x-axis label, do you have any idea how to fix this?
Here is a jsfiddle
I'm using the method generateStackedBarCharts(data, label, [''], targetDiv);, with the third parameter as my x-axis label.
最满意答案
您可以使用删除标签
showLabel: false在TickOptions部分... 这里你更新的jsfiddle和jqPlot选项的文档
You can remove the label by using
showLabel: falsewithin the TickOptions section ... your updated jsfiddle here and documentation for jqPlot options here
更多推荐
发布评论