I am trying to utilize the tool tips feature in the following line chart, 
please help.


<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 dataTable = new google.visualization.DataTable();
dataTable.addColumn('string', 'Month');
dataTable.addColumn('number', 'Hostile Deaths');
dataTable.addColumn('number', 'Non-Hostile Deaths');

  dataTable.addColumn({type: 'string', role: 'tooltip'});
  dataTable.addRows([
      

          
          ['Jan',  8,      8],
          ['Feb',  11,      6],
          ['Mar',  4,       5],
          ['Apr',  13,      6],
          ['May',  11,      13],
          ['Jun',  10,      5],
          ['Jul',  5,       3],
          ['Aug',  4,      3],
          ['Sept',  4,      6],
          ['Oct',  2,      7],
          ['Nov',  2,       9],
          ['Dec',  0,      3, 'Least Deadliest Month']
        ]);

        var options = {
          title: 'Operation Iraqi Freedom US Military Deaths, 2009',
          backgroundColor: ['#999999'],
           colors:['#cc0000','#ff6600'],
          tooltip: {isHtml: true}
        };


  var chart = new 
google.visualization.ColumnChart(document.getElementById('col_chart_html_tooltip'));
  chart.draw(dataTable, 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/groups/opt_out.

Reply via email to