Javascript examples for Google Chart:Tooltip
Tooltip customization not working for Google Charts
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <div id="chart_div"></div> <script type="text/javascript"> google.charts.load('current', {'packages':['timeline']}); google.charts.setOnLoadCallback(drawChart); function drawChart() {/* w w w . j a va 2s .c o m*/ var data = new google.visualization.DataTable(); data.addColumn('string', 'Team'); data.addColumn('string', 'Time'); data.addColumn({type: 'string', role: 'tooltip'}); data.addColumn('date', 'Season Start Date'); data.addColumn('date', 'Season End Date'); data.addRows([ ['Baltimore Ravens', '', 'my tooltip', new Date(2000, 8, 5), new Date(2001, 1, 5)], ['New England Patriots', '', 'my tooltip', new Date(2001, 8, 5), new Date(2002, 1, 5)], ]); var options = { height: 450, timeline: { groupByRowLabel: true } }; var chart = new google.visualization.Timeline(document.getElementById('chart_div')); chart.draw(data, options); } </script> </body> </html>