jQPlot - remove vertical grid lines

余生颓废 提交于 2019-12-03 10:25:58
nolt2232

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

axes:{
    xaxis: {
       tickOptions:{
          showGridline: false
       }
    }
}
Varun Naharia

To remove the grid line on the X-axis :

axes : {
    xaxis : {
       tickOptions : {
           showGridline : false
       }
    }
}

To remove the grid line on the Y-axis :

axes : {
    yaxis : {
       tickOptions : {
           showGridline : false
       }
    }
}

To remove the grid line on both axes :

axes : {
    xaxis : {
       tickOptions : {
           showGridline : false
       }
    },
    yaxis : {
       tickOptions : {
           showGridline : false
       }
    }
}

or

grid : {
    drawGridlines: false
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!