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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

<html>

  <head>

    <script type="text/_javascript_" src=""></script>

    <script type="text/_javascript_">

      google.load("visualization", "1", {packages:["timeline"]});

      google.setOnLoadCallback(drawChart);

      function drawChart() {

        var data = "">

          ['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)],

        ]);


        var options = {

          title: 'Company Performance',

          vAxis: {title: 'Year',  titleTextStyle: {color: 'red'}}

        };


        var chart = new google.visualization.Timeline(document.getElementById('chart_div'));


        chart.draw(data, options);

      }

    </script>

  </head>

  <body>

    <div id="chart_div" style="width: 900px; height: 500px;"></div>

  </body>

</html>

Reply via email to