2012-11-14 211 views
1

我改變了顏色在導航器的線的顏色:顏色:'rgba(255, 255, 255, 0.00)' 和我改變了線的顏色:lineColor: 'red' 這是我chart更改導航

,但我不能改變顏色根據導航儀的線路:ScreenShot

導航器的所有代碼:

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 
    } 
} 
+0

請幫幫我:) –

回答

5

你可以試試這個:

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 
    } 
}