如果其中一个点的值相对较小,则图形的线将爬到轴的后面-看起来像图形和轴之间的“空”。
我想摆脱轴的“空虚”和图形丢失。
http://jsfiddle.net/6nyj3fv2/1/
Highcharts.chart('container', {
plotOptions: {
column: {
dataLabels: {
enabled: false
}
},
line: {
dataLabels: {
enabled: false
}
},
series: {
dataLabels: {
enabled: false
},
marker: {
enabled: false
}
}
},
series: [
{
color: "#7cb5ec",
data: [-14789.89, 3717, 39857.55, 83351.33, 11700, 178696.24, 36657.43, 0, 0, 8330.62,505940]
}
],
title: {
text: null
},
credits: {
enabled: false
},
chart: {
height: 220,
type: 'areaspline',
spacingTop: 32,
marginRight: 21,
marginBottom: 22,
spacingLeft: 0,
},
legend: {
enabled: false
},
xAxis: {
labels: {
enabled: false
},
tickWidth: 0
},
yAxis: {
title: {
enabled: false
},
labels: {
enabled: false
}
}
});