堆积面积图中的HighStock导航器显示了错误的序列 [英] HighStock navigator from a stacked area chart shows wrong series

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

问题描述

我在 HighStocks 时遇到了一个小问题:我有两个面积系列.问题是:在底部的导航器中,仅显示第一个系列,而不显示结果的堆积图.

I got a little problem in HighStocks: I have two area series wich are stacked. The problem: In the navigator at the bottom, just the first series is shown, not the resulted stacked chart.

(请参见 http://jsfiddle.net/Je8eG/)

window.chart = new Highcharts.StockChart({
    chart: {
        renderTo: 'container'
    },

    plotOptions: {
        area: {
            stacking: 'normal'
        }
    },

    series: [{
        name: 'Series 1',
        data: [
            [Date.UTC(2010, 0, 1, 10), 53.5],
            [Date.UTC(2010, 0, 1, 10, 30), 59.5],
            [Date.UTC(2010, 0, 1, 11), 53.5],
            [Date.UTC(2010, 0, 1, 12), 28.5],
            [Date.UTC(2010, 0, 1, 13), 55.2]
        ],
        type: 'area'
    }, {
        name: 'Series 2',
        data: [
            [Date.UTC(2010, 0, 1, 10), 29.9],
            [Date.UTC(2010, 0, 1, 10, 30), 29.9],
            [Date.UTC(2010, 0, 1, 11), 29.9],
            [Date.UTC(2010, 0, 1, 12), 61.5],
            [Date.UTC(2010, 0, 1, 13), 53.4]
        ],
        type: 'area'
    }]
});

是否有修复程序或解决方法?

Is there a fix or workaround?

要感谢

推荐答案

不支持这种方法.您可以将特定系列设置为导航器,所以我建议您对自己堆叠的系列求和,然后传递给导航器,请参见: http://api.highcharts.com/highstock#navigator.series

Something like this is not supported. You can set specific series to a navigator, so I advice to sum on your own stacked series, and then pass to navigator, see: http://api.highcharts.com/highstock#navigator.series

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

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