2012-10-15 124 views
5

我不想要jqplot上的X和Y轴线。像这样的东西enter image description here从jqplot中删除x和y轴线

我应该怎么做到这一点。

我试图jqplot的各种选项,如showGrid:假等...没有什么工作

回答

7

试试这个选项:

axesDefaults: { 
    rendererOptions: { 
     baselineWidth: 1.5, 
     drawBaseline: false 
    } 
}, 
grid: { 
    drawBorder: false, 
    borderWidth:0, 
    shadow:false 
}, 
xaxis: { 
     drawMajorGridlines: false 
}