Highcharts:如何删除导航器中数据行下的颜色

时间:2016-03-16 07:27:32

标签: javascript highcharts

在导航器的Highchart中,线下有浅色。它给出了面积图的效果。可以删除此颜色,以便在Highchart导航器中仅显示一行。

我在谈论这条浅蓝色的线条: enter image description here

代码:

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

        navigator: {
            maskFill: 'rgba(180, 198, 220, 0.75)'
        },

        rangeSelector: {
            selected: 1
        },

        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    });
});

1 个答案:

答案 0 :(得分:4)

选中此out

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

        navigator: {
            maskFill: 'rgba(180, 198, 220, 0.75)',
            series: {
                color: '#4572A7',
                fillOpacity: 0.00,
                lineWidth: 1
            }
        },

        rangeSelector: {
            selected: 1
        },

        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    });
});