在HighStock图表的导航器中显示多个系列 [英] Displaying multiple series in the navigator of an HighStock chart

查看:121
本文介绍了在HighStock图表的导航器中显示多个系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个HighStock图表,其中包含一个显示多个系列的导航器组件,与主图表中显示的系列相同。看起来HighStock不支持此功能,因为只允许使用一个系列。有没有人遇到这个问题,并设法找到一个可行的解决方案/替代方案? 解决方案

只有你使用的这个hack在导航器中显示乘法系列。示例: http://jsfiddle.net/6fFwM/ 此功能在我们的系统中请求(http://highcharts.uservoice.com/forums/55896-general/suggestions/ 2361925-allow-navigator-to-have-multiple-data-series ),因此您可以投票支付。

  window.chart.addSeries({
name:,
xAxis:0,
yAxis:1,
类型:line,
enableMouseTracking: false,
data:new_data,
showInLegend:false
});


I would like to create an HighStock chart containing a navigator component displaying multiple series, being the same series displayed in the main graph. It seems that this feature is not supported in HighStock, as only one single series is allowed. Has anyone faced this problem and managed to find a viable solution/alternative?

解决方案

Multiple series in navigator are not oficially supported, so only this "hack" which you use display multiply series in navigator. Example: http://jsfiddle.net/6fFwM/ This feature is requested in our system here (http://highcharts.uservoice.com/forums/55896-general/suggestions/2361925-allow-navigator-to-have-multiple-data-series), so you can vote for it.

window.chart.addSeries({
        name : "",
        xAxis: 0,
        yAxis: 1,
        type: "line",
        enableMouseTracking: false,
        data : new_data,
        showInLegend:false
});

这篇关于在HighStock图表的导航器中显示多个系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆