Im sure this is really easy for a developer, which I am not,
I would just like to put HTML in my tooltips, across one line in my line
chart I've read the Google documentation but it may as well be written
backwards,
also is it possible to hide the points on one line?
everything I try seems to result in the graph not displaying,
Thanks
Chris
<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 = new google.visualization.DataTable();
data.addColumn('number', 'Day');
data.addColumn('number', 'SPS');
data.addColumn('number', 'National Average');
data.addRows([
[1, 16.6, 30],
[2, 33.2, 40],
[3, 49.8, 50],
[4, 66.4, 60],
[5, 83, 70],
[6, 99.6, 80]
]);
var options = {
tooltip: { isHtml: true }, legend: { position: 'none'
},
pointSize: 5,
bar: { groupWidth: "90%" },
colors: ['#A61D4C']
};
var chart = new
google.visualization.LineChart(document.getElementById('tooltip_rotated'));
chart.draw(data, options);
}
</script>
</head>
<body>
<style>div.google-visualization-tooltip { transform: rotate(0deg);
}</style>
<div id="tooltip_rotated" style="width: 1200px; height: 400px;"></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.