简体   繁体   English

当我在不同的时间间隔中有多个序列时,该如何解决highstock中的导航器问题?

[英]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()

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 http://api.highcharts.com/highstock#navigator.series

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Highstock 图表中获取导航器选择? - How can I get the navigator selection from a Highstock chart? 如何限制 highstock.js 中导航器的大小? - How can I limit the size of the navigator in highstock.js? 当系列没有相同的时间值时,如何在工具提示中显示所有系列 - How can I show all series in tooltip when series does not have same time values 部署站点时,我无权访问 navigator.mediaDevices。 我该如何解决? - I do not have have access to navigator.mediaDevices when the site is deployed. How do I fix this? 如果我的X大于2000,如何将Y固定为2? - How can I fix Y at 2 if my X is more than 2000? jQuery Selector:当我有多个时,如何指定一个选择菜单? - jQuery Selector: how can I specify one select menu when I have more than one? 我可以使用Highstock API为绘图带设置动画,并在每个绘图带上放置多个标签吗? - Can I animate plotbands and put more than one label to each plotband using the Highstock API? 具有不同时间间隔的系列的工具提示 - Tooltip for series with different time intervals 如何多次调用 setInterval? - How can i call setInterval more than one time? 考虑到每个屏幕都有不同的 header,我如何修改抽屉导航器的 header 结构? - How can i modify the header structure of Drawer Navigator, taking into account that each screen will have a different header?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM