2015-06-29 30 views

回答

1

正如你所看到的,只有plotBackgroundColor,而不是選項中的半徑。但是,您可以使用Element.attr()添加該半徑。請參閱:http://jsfiddle.net/wmr9w5L3/

chart: { 
     plotBackgroundColor: { 
      linearGradient: [0, 0, 500, 500], 
      stops: [ 
       [0, 'rgb(255, 255, 255)'], 
       [1, 'rgb(200, 200, 255)'] 
      ] 
     }, 
     events: { 
      load: function() { 
       this.plotBackground.attr({ 
        rx: 100, 
        ry: 100 
       }) 
      } 
     } 
    }, 
+0

感謝噸Pawel-fus,它的作品就像一個魅力! –