[英]Navigator series in Highstock (highcharts-ng)
I have a Highstock chart. 我有一张高库存图表。 I use highcharts-ng for that.
我为此使用highcharts-ng。 After I remove old serie and add new one, serie in navigator doesn't update.
删除旧系列并添加新系列之后,导航器中的系列不会更新。 It's not so necessary to have this miniature of chart in navigator, I can set it's opacity and I don't see it, but I need to have the proper range after changing serie.
在导航器中不必具有这种微型图表,我可以设置它的不透明度,但看不到它,但是在更改系列后,我需要具有适当的范围。 And the range doesn't update too.
而且范围也不会更新。 Here is screencast:
以下是截屏视频:
http://videobam.com/jXwOC http://videobam.com/jXwOC
Here is my navigator configuration: 这是我的导航器配置:
navigator:
adaptToUpdatedData: true
series:
data: []
xAxis:
labels:
style:
fontSize: '14px'
fontWeight: 'bold'
maskFill: 'rgba(0, 165, 211, 0.05)'
enabled: true
series:
# lineColor: 'rgba(0,0,0,0)'
# fillColor: 'rgba(0,0,0,0)'
lineColor: '#00a5d3'
fillColor:
linearGradient : {
x1 : 0,
y1 : 0,
x2 : 0,
y2 : 1
},
stops : [[0, '#95d7e7'], [1, '#ffffff']]
Navigator is always bind to the first series or the series according to ID. Navigator始终绑定到第一个系列或根据ID绑定的系列。 So instead of removing series, use
series.update()
- that will update series with all required options, and connection will be working. 因此,
series.update()
删除系列, series.update()
使用series.update()
,它将使用所有必需的选项更新系列,并且连接将正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.