google charts with interpolated line charts

Go To StackoverFlow.com

4

https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart

I am using google line charts show above, I want to have multiple lines but one line might have data on a time that the other data doesn't.

So, basically is there an option that would let me do something like..

data.addRows([
      ['2004', 1000, 400],
      ['2005', null, 460],
      ['2006',  860, null],
      ['2007', 1030, 540]
]);

and have a line that goes through (2004, 1000) and (2005, 860) instead of (2004, 1000) to (2005, 0) to (2006, 860)? Thanks

2012-04-05 18:56
by Doboy
Did you ever get an answer - deusxmach1na 2012-09-12 16:26
nope, I should of asked this to the charts teams while I was interning at google.. darn - Doboy 2012-09-12 21:07


2

For line charts you can use the interpolateNulls option mentioned here.

Setting it to true will make it interpolate the appropriate value.

2013-03-14 03:08
by AndyH
Ads