Found interpolateNulls option which is exactly whats needed for series with 
different X values.



On Friday, February 21, 2014 8:39:18 PM UTC-8, [email protected] wrote:
>
> Ive managed to get an line chart with invisible lines. Mouse over data 
> points and the popup for it appears, but no lines show on the chart.
>
> The issue is likely related to how I'm doing null data points.
>
> My data table looks like :
>  
> { "cols" : 
> [ {"id":"","label":"Time","pattern":"","type":"datetime"}, 
> {"id":"","label":"DS18B20_494109e","pattern":"","type":"number"},
> {"id":"","label":"DS18B20_4946084","pattern":"","type":"number"},
> {"id":"","label":"DS18B20_4941cd4","pattern":"","type":"number"}, ], 
>
> "rows": 
> [ {"c":[{"v":"Date(2014, 1, 21, 15, 25, 54)","f":null}, 
> {"v":54.5,"f":null}, {"v":null,"f":null}, {"v":null,"f":null}, ]}, 
> {"c":[{"v":"Date(2014, 1, 21, 15, 25, 55)","f":null}, {"v":null,"f":null}, 
> {"v":67.775,"f":null}, {"v":null,"f":null}, ]}, 
> {"c":[{"v":"Date(2014, 1, 21, 15, 25, 56)","f":null}, {"v":null,"f":null}, 
> {"v":null,"f":null}, {"v":58.1,"f":null}, ]}, 
> {"c":[{"v":"Date(2014, 1, 21, 15, 26, 17)","f":null}, {"v":54.5,"f":null}, 
> {"v":null,"f":null}, {"v":null,"f":null}, ]}, 
> {"c":[{"v":"Date(2014, 1, 21, 15, 26, 18)","f":null}, {"v":null,"f":null}, 
> {"v":67.775,"f":null}, {"v":null,"f":null}, ]},]}
>
> Essentially Ive got X (in this case 3) sensors each sending a timestamp, 
> sensorID, and value. Ive structured this in the database as a column per 
> sensor, which means any given row likely only has 1 sensor's data point. 
> Once X gets larger there will be frequent rows with 2 or more non null 
> columns. Building the DataTable along the same lines is whats resulting in 
> the invisible line wierdness. Is there a simple way to tell the chart to 
> ignore null data points in a series and only plot a point if there is data 
> for that column? Or do I need to build the DataTable differently to make 
> the chart logic happy?
>
>   
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to