Jqplot: how not to display any x-axis label

How can I make it so that the xaxis label is not displayed like

xaxis: {
    renderer: $.jqplot.CategoryAxisRenderer,
    ticks: jsonColsObj,
    labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
    tickRenderer: $.jqplot.CanvasAxisTickRenderer,
    tickOptions: {
      angle: -30,
      fontFamily: 'Arial',
      fontSize: '9pt'
    }
},

      

For jsonColsObj

i pass ['']

, null

and ''

for 1

label , but always shows for x-axis label, do you know how to fix that?

Here is a jsfiddle

I am using the method generateStackedBarCharts(data, label, [''], targetDiv);

and the third parameter is as the x-axis label.

+3


source to share


1 answer


You can remove the shortcut using

showLabel: false

      



see TickOptions

... updated jsfiddle here and documentation for jqPlot options here

+4


source







All Articles