0

我想在 Google 折线图中添加趋势线。当我滚动到自定义部分的底部时,没有可见的趋势线部分。

4

1 回答 1

0

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

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

上面的“0”是您将用作源的数据集。

于 2015-04-24T10:24:06.647 回答