从jqplot中移除x和y轴线

5
我不想在jqplot上显示X和Y轴线,类似于这样的图片。如何实现呢?我尝试了jqplot的各种选项,比如showGrid: false等等...但都没有用。
1个回答

7

请尝试以下选项:

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接