简体   繁体   中英

How can I fix the navigator issue in highstock when I have more than 1 series in different time intervals?

我有以下问题,如果我的第一个意甲从2012年7月至2012年11月开始,而我的第二个意甲从2013年7月至2013年9月开始,则导航器仅使用第一个意向,并且看起来像丢失数据一样奇怪,所以我该如何对导航器说什么使用了既包含系列又包含第一个谢谢的完整间隔

you can use chart.addSeries()

chart.addSeries({
    name : "",
    xAxis: 0,
    yAxis: 1,
    type: "line",
    enableMouseTracking: false,
    data : your set of data to be shown in navigator,
    showInLegend:false
})

this will add a series to navigator.

a similar question is answered here

Here is a working example

You can also prepare separated serie (concate both series data) during preprocessing, which will be used by navigator.

http://api.highcharts.com/highstock#navigator.series

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM