https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart
我使用的是上面显示的谷歌折线图,我想要多条线,但一条线可能有某个时间的数据,而另一条数据没有。
所以,基本上有一个选项可以让我做类似的事情..
data.addRows([
['2004', 1000, 400],
['2005', null, 460],
['2006', 860, null],
['2007', 1030, 540]
]);
并且有一条线通过 (2004, 1000)
和 (2005, 860)
而不是 (2004, 1000)
到(2005, 0)
到 (2006, 860)
?谢谢
最佳答案
对于折线图,您可以使用提到的 interpolateNulls 选项 here .
将其设置为 true 将使其插入适当的值。
关于javascript - 带有内插折线图的谷歌图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10034363/