2014-10-01 68 views

回答

0

在您的圖表附加「趨勢線」字段的配置,例如:

otherOption: otherValue, 
... 
trendlines : { 
      0: { 
      'color': 'red', 
      'lineWidth': 6, 
      'opacity': 0.4, 
      'type': 'linear', 
      'pointSize': 0, 
      'visibleInLegend': true, 
      'labelInLegend': 'Failing trend' 
      }, 
... 

其中上述「0」是數據集將用作一個源使用。