>
> Hi Andrew,
>>
>
I corrected the quotes as you suggested and my span title is now showing
the full string, thank you!
I appended the addListener code to the function handleQueryResponse() so
that it looks like:
function handleQueryResponse2(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' + response.
getDetailedMessage());
return;
}
// Draw the visualization.
var data2 = response.getDataTable();
var chart2 = new google.visualization.Table(document.getElementById(
'mike_div'));
for (var i = 0; i < data2.getNumberOfRows(); i++) {
for (var j = 0; j < data2.getNumberOfColumns(); j++) {
var formattedValue = data2.getFormattedValue(i, j);
var Test = "Testing";
var testText = Test + " " + "Row - " + i;
data2.setFormattedValue(i, j, '<span title=' + '"' + testText + '"'
+ '>' + formattedValue + '</span>');
}
}
chart2.draw(data2, {allowHtml: true});
google.visualization.events.addListener(chart2, 'ready', function () {
$('span[title]').qtip();
});
}
Sadly this is not getting picked up by qtip and the tooltip is just the
standard formatting. I tried changing it to $('[title]').qtip(); but it
made no difference.
If you have any further suggestions then I am all ears. Don't worry if not,
I will live with the "standard" tooltip.
Thanks again for your help
Mike
--
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.