Hi guys,

I'm new to the visualization API and I've searched for information on this 
prior to posting.

I'm plotting the graph below, but am looking to add additional information 
to the tooltip that is shown when a user hovers over a point.

So for example, instead of the tooltip just showing:

"*Jan*

2011: *104.0*"


I would like the tooltip to display something like:

"*Jan*

2011: *104.0*


*Notes:*

The reason why the figure is 104.0 is because of X, Y, Z..."



Any help or guidance is very much appreciated. 

Thanks

Brian



*CODE*

<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Month', '2011', '2012', '2013', '2014'],
          ['Jan', 104.0, 107.6, 111.0, 133.6],
          ['Feb', 109.7, 106.3, 111.0, 133.5],
          ['Mar', 108.8, 106.0, 114.5, 131.5],
          ['Apr', 110.4, 96.7, 120.6, 128.7],
          ['May', 109.7, 95.1, 124.7, 123.9],
          ['Jun', 109.7, 94.9, 126.6, 121.5],
          ['Jul', 109.0, 91.8, 130.3, null],
          ['Aug', 106.9, 98.0, 133.5, null],
          ['Sep', 107.0, 104.9, 133.7,  null],
          ['Oct', 107.6, 106.4, 131.1, null],
          ['Nov', 108.3, 109.1, 131.9, null],
          ['Dec', 107.6, 111.1, 133.6, null]
        ]);

        var options = {
          title: 'Draft Graph'
        };

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

        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></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