Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Highcharts 更改导航器的颜色_Highcharts - Fatal编程技术网

Highcharts 更改导航器的颜色

Highcharts 更改导航器的颜色,highcharts,Highcharts,我更改了导航器行上的颜色:“rgba255,255,255,0.00” 我改变了线条的颜色:“红色” 这是我的 但我无法更改导航器行下的颜色: 导航器的所有代码: navigator: { maskFill: 'rgba(255, 255, 255, 0.45)', series: { type: 'areaspline', color: 'rgba(255, 255, 255, 0.00)', fillOpacity: 0.4,

我更改了导航器行上的颜色:“rgba255,255,255,0.00” 我改变了线条的颜色:“红色” 这是我的

但我无法更改导航器行下的颜色:

导航器的所有代码:

navigator: {
    maskFill: 'rgba(255, 255, 255, 0.45)',
    series: {
        type: 'areaspline',
        color: 'rgba(255, 255, 255, 0.00)',
        fillOpacity: 0.4,
        dataGrouping: {
            smoothed: false
        },
        lineWidth: 2,
        lineColor: 'red',
        marker: {
            enabled: false
        },
        shadow: true
    },
    yAxis: {
        reversed: true
    }
}

您可能想尝试以下方法:

navigator: {
    maskFill: 'rgba(255, 255, 255, 0.45)',
    series: {
        type: 'areaspline',
        color: 'rgba(255, 255, 255, 0.00)',
        fillOpacity: 0.4,
        dataGrouping: {
            smoothed: false
        },
        lineWidth: 2,
        lineColor: 'red',
        fillColor : {
            linearGradient : {  
                x1 : 0, 
                y1 : 0, 
                x2 : 0, 
                y2 : 1 
            }, 
            stops : [[0, '#FF8000'], [1, '#FFFF00']] 
        },
        marker: {
            enabled: false
        },
        shadow: true
    },
    yAxis: {
        reversed: true
    }
}

您可能想尝试以下方法:

navigator: {
    maskFill: 'rgba(255, 255, 255, 0.45)',
    series: {
        type: 'areaspline',
        color: 'rgba(255, 255, 255, 0.00)',
        fillOpacity: 0.4,
        dataGrouping: {
            smoothed: false
        },
        lineWidth: 2,
        lineColor: 'red',
        fillColor : {
            linearGradient : {  
                x1 : 0, 
                y1 : 0, 
                x2 : 0, 
                y2 : 1 
            }, 
            stops : [[0, '#FF8000'], [1, '#FFFF00']] 
        },
        marker: {
            enabled: false
        },
        shadow: true
    },
    yAxis: {
        reversed: true
    }
}