I only wanted to use the tooltip on the last row. When I ran the code I got
a blank screen. I did not use the role anywhere in my coding. Do I have to
callout the role and where should I do that?


On Tue, Nov 12, 2013 at 9:13 PM, asgallant <[email protected]>wrote:

> What is the problem you are having?  All I can see is that you are missing
> data for the tooltip column in most of your rows.
>
>
> On Tuesday, November 12, 2013 6:13:53 PM UTC-5, Corina Campbell wrote:
>>
>> 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 a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/G6JYszVFArU/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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.
>

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