Highcharts图表在比较时变为空白:'百分比'并输入:'arearange'

时间:2016-01-13 15:41:16

标签: highcharts highstock

我有一个Highcharts图表,在数据范围内正确显示数据;但是,当我添加另一个系列并设置比较百分比时,它变为空白。

$(function () {
// Notice that the dataset has missing data
$.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function (data) {

    $('#container').highcharts('StockChart', {

        chart: {
            type: 'areasplinerange'
        },

        rangeSelector: {
            selected: 2
        },

        title: {
            text: 'Temperature variation by day'
        },
        plotOptions: {
            series: {
                **compare: 'percent'**
            }
        },
        tooltip: {
            valueSuffix: '°C'
        },

        series: [{
            name: 'Temperatures',
            data: data
        }]

    });
});
});

您可以在此处看到示例: Test sample

1 个答案:

答案 0 :(得分:1)

我在这里报告了可能是我们的跟踪器中的错误:https://github.com/highcharts/highcharts/issues/4922