Jqplot - do not want to display / show the y axis

I have been using jqplot graphics library since some time.

I do not want to display y2axis (i.e. when I work with several axes / series) I went through the documentation and found that "show: false" will not show the axis.

Link here: http://www.jqplot.com/docs/files/jqplot-core-js.html#Axis.show

But that does not work.

Any help would be greatly appreciated. thanks in advance

+6
source share
3 answers

Fixed.

Here is what I did.

axes: { yaxis: { tickOptions: { show: false }, rendererOptions: { drawBaseline: false } } 

Setting tickoptions to false hides placemark labels and ticks, and drawBaseline: false hides the axis.

Hope this helps.

+10
source

You just need to specify showTicks : false

Here is a link to a working fiddle without ticks of the galaxy: http://jsfiddle.net/BLfRe/23/

+1
source

I am using jqplot and I would like to hide y2axis too in some case. Using plot1.axes.y2axis.show = false; seems flawless.

Can you put the code snippet that you use to find the cause of your problems?

0
source

All Articles