2014-10-01 76 views

回答

0

在您的图表附加“趋势线”字段的配置,例如:

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

其中上述“0”是数据集将用作一个源使用。