2012-11-14 219 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 
    } 
}