开发者

How to create Google Chart with lines (series) of different lengths?

开发者 https://www.devze.com 2022-12-19 16:48 出处:网络
How do I create a Google Line Chart that displays two or more lines, with a different number of data points in each series?

How do I create a Google Line Chart that displays two or more lines, with a different number of data points in each series?

For instance, I want to create a chart with 2 lines, one showing the expected values over time and another showing开发者_运维技巧 the actual values over time. The date range and expected values are known in advance so I can fully graph them, but the actual values may not be fully known yet (e.g. the date range covers some dates in the future).


I found the answer in this SO question. The solution is to use "_" (or "__", depending on the encoding of the data values) to indicate "no value".

For instance, one data series might be 10,7,3,1 and the other might be 10,6,_,_.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号