不填充多边形

问题描述 投票:0回答:1

如何创建带有边框线但没有填充的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]
      ]
    }],
  });
});

http://jsfiddle.net/s3zp8cce/

highcharts
1个回答
0
投票

使用scatter系列类型:

series: [{
  type: 'scatter',
  lineWidth: 2,
  data: [...]
}]

实时演示: http://jsfiddle.net/BlackLabel/6m4e8x0y/4874/

API参考: https://api.highcharts.com/highcharts/series.scatter.lineWidth

© www.soinside.com 2019 - 2024. All rights reserved.