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

StackOverflow https://stackoverflow.com/questions/21565441

문제

I have the following problem, I have a chart with highstock, with the following issue, if my first serie starts on july 2012 to november 2012 and my second serie starts on july 2013 to September 2013, the navigator only use the first serie, and looks weird like missing data, so how can I say to the navigator what use a complete interval containing both series and not only the first Thanks

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top