The only problems I see with that file are that it is missing a <!DOCTYPE> 
declaration, and it has an errant comma at the end of the data array:

var data = google.visualization.arrayToDataTable([
    ['Pres', 'Start', 'End'],
    ['2004',  new Date(1789, 3, 29),      new Date(1797, 2, 3)],
    ['2005',  new Date(1797, 2, 3),       new Date(1801, 2, 3)],
    ['2006',  new Date(1801, 2, 3),       new Date(1809, 2, 3)], <-- this 
comma
]);

These two issues will prevent the chart from drawing in IE8 and older, but 
otherwise the chart should draw fine.  Do you have a public-facing page 
where this is being pulled in by the HtmlService that I can test?

On Wednesday, August 20, 2014 2:24:47 AM UTC-4, Mackey McCandlish wrote:
>
> Here is the html, it is just an example from the visualization samples, 
> wrapped in <html><body>.
>
> On Tuesday, August 19, 2014 4:11:40 PM UTC-7, Andrew Gallant wrote:
>>
>> Can you attach Timeline.html here?
>>
>> On Tuesday, August 19, 2014 9:49:13 AM UTC-4, Mackey McCandlish wrote:
>>>
>>> doGet() returns HtmlService.createHtmlOutputFromFile('timeline'), and 
>>> timeline.html has the html in it. Timeline.html is another file in the 
>>> project.
>>>
>>> Thanks.
>>>
>>> On Monday, August 18, 2014 5:18:09 PM UTC-7, Andrew Gallant wrote:
>>>>
>>>> Is the chart code in the file you load through the 
>>>> HtmlService.createHtmlOutputFromFile call, or is it in apps script?
>>>>
>>>> On Monday, August 18, 2014 10:31:46 AM UTC-4, Mackey McCandlish wrote:
>>>>>
>>>>> I've been able to create charts in javascript and display them from my 
>>>>> googlescript app, by using an app that returns 
>>>>> HtmlService.createHtmlOutputFromFile('filename');
>>>>>
>>>>> When I try to do this with a timeline chart, nothing appears. The 
>>>>> script is from google's visualization example at 
>>>>> https://google-developers.appspot.com/chart/interactive/docs/gallery/timeline
>>>>> .
>>>>>
>>>>> Is this meant to be supported?
>>>>>
>>>>> Thanks.
>>>>>
>>>>

-- 
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/d/optout.

Reply via email to