jqplot:如何不渲染任何x轴标签 [英] jqplot: how to not render any x-axis label
本文介绍了jqplot:如何不渲染任何x轴标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能没有渲染xaxis标签,比如
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'
}
},
对于 jsonColsObj
,我传入 ['']
, null
和''
用于勾选,但它始终显示 1
对于x轴标签,你知道如何解决这个问题吗?
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?
我正在使用方法 generateStackedBarCharts(data,label,[''],targetDiv);
,第三个参数作为我的x轴标签。
I'm using the method generateStackedBarCharts(data, label, [''], targetDiv);
, with the third parameter as my x-axis label.
推荐答案
您可以使用
showLabel: false
$ b $ c
TickOptions
部分... 此处更新的jsfiddle 和 jqPlot选项的文档
within the TickOptions
section ... your updated jsfiddle here and documentation for jqPlot options here
这篇关于jqplot:如何不渲染任何x轴标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文