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?

这是一个jsfiddle

我正在使用方法 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