jqPlot: hide axis ticks?

Ollie Glass picture Ollie Glass · May 10, 2011 · Viewed 11.4k times · Source

Here's a default jqPlot axis with ticks:

with ticks

Setting "showTicks: false" on the x-axis removes everything:

without ticks

I want to display the numbers and hide the ticks - the little dashes between the numbers and the thick axis line. Is this possible?

Answer

reckbo picture reckbo · Sep 17, 2011
axesDefaults: {
   showTickMarks:false
}

showTicks toggles the tick marks and the tick labels, and showTickMarks toggles only the tick marks.

Check out the options at: http://www.jqplot.com/docs/files/jqPlotOptions-txt.html

EDIT: I mistakenly had showTicks in the code snippet, which I fixed.