I am trying to change the title of a calendar chart and I have not been 
successful yet.
Can someone see what I added in red below and tell me what is wrong.

Thank you




<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load("visualization", "1.1", {packages:["calendar"]});
      google.setOnLoadCallback(drawChart);

   function drawChart() {
       var dataTable = new google.visualization.DataTable();
       dataTable.addColumn({ type: 'date', id: 'Date' });
       dataTable.addColumn({ type: 'number', id: 'Won/Loss' });
       dataTable.addRows([
          [ new Date(2012, 3, 13), 37032 ],
          [ new Date(2012, 3, 14), 38024 ],
          [ new Date(2012, 3, 15), 38024 ],
          [ new Date(2012, 3, 16), 38108 ],
          [ new Date(2013, 9, 30), 38447 ]
        ]);

       var chart = new 
google.visualization.Calendar(document.getElementById('calendar_basic'));

       var options = {
         title: "TEST TITLE",
         titleTextStyle: {color: 'red', 
                          fontSize: 2},
         height: 350,
         noDataPattern: {
           backgroundColor: '#AAAAAA',
           color: '#AAAAAA'
         },
         calendar: {
           focusedCellColor: {
           stroke: '#d3362d',
           strokeOpacity: 1,
           strokeWidth: 1,
           }
         }
       };

       chart.draw(dataTable, options);
   }
    </script>
  </head>
  <body>
    <div id="calendar_basic" style="width: 1000px; height: 350px;"></div>
  </body>
</html>

-- 
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