Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqPlot: hide axis ticks?

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?

like image 719
Ollie Glass Avatar asked May 10 '11 10:05

Ollie Glass


1 Answers

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.

like image 155
reckbo Avatar answered Sep 24 '22 21:09

reckbo