2017-06-22 93 views

回答

2

您可以使用類似以下內容:

yAxis: { 
    ..., 
    plotBands: [{ 
     color: { 
      linearGradient: { x1: 1, y1: 1, x2: 1, y2: 0 }, 
      stops: [ 
       [0, 'rgb(255, 255, 255)'], 
       [1, 'rgb(200, 200, 255)'] 
      ] 
     }, 
     from: 0, 
     to: 7 
    }], 
}, 

DEMO

+1

感謝你的幫助 –

+0

高興,它幫助... –