如何创建带有边框线但没有填充的Highcharts多边形图?
$(function() {
$('#container').highcharts({
series: [{
name: 'Target',
type: 'polygon',
data: [
[153, 42],
[149, 46],
[149, 55],
[152, 60],
[159, 70],
[170, 77],
[180, 70],
[180, 60],
[173, 52],
[166, 45]
]
}],
});
});
使用scatter
系列类型:
series: [{
type: 'scatter',
lineWidth: 2,
data: [...]
}]
实时演示: http://jsfiddle.net/BlackLabel/6m4e8x0y/4874/
API参考: https://api.highcharts.com/highcharts/series.scatter.lineWidth