【发布时间】:2013-06-03 10:28:28
【问题描述】:
我使用来自 highcharts 库的基本折线图,我认为线条不够平滑。
可以改进吗?
我的代码:
chart: {
type:'line',
renderTo: 'issues_by_release',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
yAxis: {
min:0,
labels:{ enabled:true },
title: {
text:'Issues'
}
},
xAxis: {
tickmarkPlacement: 'on',
tickLength:10,
categories:['1','2','3','4','5'],
labels:{ rotation:-45,
align:'right'
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking : false,
showInLegend: true
}
},
series: [{
type: 'line',
name: 'Testers',
data: [1,2,3,4,5]
}
]
});
});
提前谢谢你!
【问题讨论】:
-
Highcharts 提供样条拟合:highcharts.com/demo/spline-symbols/grid