Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQPlot - remove vertical grid lines

I am using jqPlot as my charting framework and have numerous charts in my application, primarily line and stacked bar charts.

I now have a requirement to only show the horizonal grid lines on these charts and do not see any options in jqPlot to do this.

There is a showGridline option but that disables the grid lines entirely.

Is it possible to remove only the vertical grid lines in jqPlot and continue to show the horizontal ones?

like image 558
nolt2232 Avatar asked Apr 12 '12 15:04

nolt2232


1 Answers

I figured it out. You can apply showGridline to a single axis by doing the following:

axes:{     xaxis: {        tickOptions:{           showGridline: false        }     } } 
like image 103
nolt2232 Avatar answered Sep 16 '22 17:09

nolt2232