You can't put tooltips on the axis values. You can put annotations there,
though, and they work similarly to tooltips:
var data = new google.visualization.DataTable();
data.addColumn('string', 'month');
data.addColumn({'type': 'string', 'role': 'annotation'});
data.addColumn({'type': 'string', 'role': 'annotationText'});
data.addColumn('number', 'Sold Pencils');
data.addRows([
['FEB', 'foo', 'febuary', 10],
['JAN', 'bar', 'xhi', 2310]
]);
On Thursday, August 16, 2012 8:10:11 PM UTC-4, API Developer wrote:
>
> Hey guys,
>
> Do you know if it's possible to place a tooltip on the domain of the data?
> I've been trying and so far haven't been successful.
> Ex:
> var data = new google.visualization.DataTable();
> data.addColumn('string', 'month');
> data.addColumn({'type': 'string', 'role', 'tooltip'});
> data.addColumn('number', 'Sold Pencils');
>
> data.addRows([
> ['FEB', 'febuary', 10],
> ['JAN', 'xhi', 2310]
> ]);
>
> // Create and draw the visualization.
> var ac = new google.visualization.AreaChart(document.getElementById(
> 'visualization'));
> ac.draw(data, {
> title : 'Monthly Coffee Production by Country',
> isStacked: true,
> width: 600,
> height: 400,
> vAxis: {title: "Cups"},
> hAxis: {title: "Month"}
> });
> }
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/SeZFESDexKEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.