我可以在条形图上实现一条线而不是条形图上的点吗?

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

I want a line over bar instead of the dot over bar in the second graph below. Need help to implement this

我使用了 type = line 属性但是它不起作用

highcharts linechart
1个回答
0
投票

该行不可见,因为有

lineWidth
选项设置为
0
。您需要增加该值,例如:

mychart.addSeries({
  lineWidth: 1,
  ...
});

现场演示: http://jsfiddle.net/BlackLabel/8sLvq1hu/

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

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