如何去掉 X Axis 上的灰色底线?
请帮忙 jsFiffle example
$(function () {
$('#container').highcharts({
title: {text:''},
yAxis: {
gridLineWidth: 0,
minorGridLineWidth: 0,
labels:{enabled: false},
title: {enabled:false}
},
xAxis: {
gridLineWidth: 0,
minorGridLineWidth: 0,
tickWidth: 0,
categories: ['Jan', 'Feb'],
labels:{ enabled: false }
},
legend: {enabled: false},
series: [{ data: [29.9, 71.5] }]
});
});
谢谢
最佳答案
您已经非常接近了,只需添加 lineWidth: 0
,请参阅:http://jsfiddle.net/EtvMR/2/
xAxis: {
gridLineWidth: 0,
minorGridLineWidth: 0,
tickWidth: 0,
lineWidth: 0,
categories: ['Jan', 'Feb'],
labels: {
enabled: false
}
},
关于Highcharts 摆脱底线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24153004/