You need to set the chart's hAxis.viewWindow.min/max options to the min and 
max dates in the data set, like this: http://jsfiddle.net/asgallant/QjFd2/

On Wednesday, March 20, 2013 7:28:28 PM UTC-4, Charlie Clark wrote:
>
> Hi,
>
> I have some data of the form
> var data = new google.visualization.DataTable({"rows": [{"c": [{"v": 
> "Date(2012, 0, 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 0, 15)"}, {}, {}]}, 
> {"c": [{"v": "Date(2012, 1, 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 1, 
> 15)"}, {}, {}]}, {"c": [{"v": "Date(2012, 2, 1)"}, {}, {}]}, {"c": [{"v": 
> "Date(2012, 2, 15)"}, {}, {}]}, {"c": [{"v": "Date(2012, 3, 1)"}, {}, {}]}, 
> {"c": [{"v": "Date(2012, 3, 15)"}, {}, {}]}, {"c": [{"v": "Date(2012, 4, 
> 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 4, 15)"}, {}, {}]}, {"c": [{"v": 
> "Date(2012, 5, 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 5, 15)"}, {}, {}]}, 
> {"c": [{"v": "Date(2012, 6, 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 6, 
> 15)"}, {}, {}]}, {"c": [{"v": "Date(2012, 7, 1)"}, {}, {}]}, {"c": [{"v": 
> "Date(2012, 7, 15)"}, {}, {}]}, {"c": [{"v": "Date(2012, 8, 1)"}, {}, {}]}, 
> {"c": [{"v": "Date(2012, 8, 15)"}, {}, {}]}, {"c": [{"v": "Date(2012, 9, 
> 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 9, 15)"}, {}, {}]}, {"c": [{"v": 
> "Date(2012, 10, 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 10, 15)"}, {}, 
> {}]}, {"c": [{"v": "Date(2012, 11, 1)"}, {}, {}]}, {"c": [{"v": "Date(2012, 
> 11, 15)"}, {}, {}]}, {"c": [{"v": "Date(2013, 0, 1)"}, {}, {}]}, {"c": 
> [{"v": "Date(2013, 0, 15)"}, {}, {}]}, {"c": [{"v": "Date(2013, 1, 1)"}, 
> {"v": 25}, {"v": 385}]}, {"c": [{"v": "Date(2013, 1, 15)"}, {"v": 23}, 
> {"v": 348}]}, {"c": [{"v": "Date(2013, 2, 1)"}, {}, {}]}, {"c": [{"v": 
> "Date(2013, 2, 15)"}, {}, {}]}], "cols": [{"type": "date", "id": "Date", 
> "label": "Date"}, {"type": "number", "id": "Total Requests", "label": 
> "Total Requests"}, {"type": "number", "id": "Total Transfer Size", "label": 
> "Total Transfer Size"}]}); var table = new 
> google.visualization.Table(document.getElementById('mini'));
>
> If I draw this as a table then the dates with no values are simply empty. 
> But when I draw this as a line chart only the two data points with values 
> are represented. Is there a way to force the line chart to behave similarly 
> to the table?
>
> Thanks very much
>
> Charlie Clark
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to