Yes you are correct jquery would be more easy to traverse the
structure.
Following java script has been successful for to change the text.
Now converting it to jquery.
Thanks for your help and kind support. Now still there is one more
issue regarding the size of the tool tip.
If text replaced is large then the popup size doesn't expands
automatically. will have to play bit further.
Thank you very much.
function barMouseOver(e) {
var row = e['row'];
var column = e['column'];
var priceval = data.getValue(e['row'], e['column']);
if (navigator.appName == 'Microsoft Internet
Explorer') {
tooltip_iframe =
window.frames[document.getElementById('visualization').firstChild.name];
tooltip_dom =
tooltip_iframe.document.getElementById('chart').firstChild.nextSibling;
txt1 =
tooltip_dom.firstChild.firstChild.nextSibling.nextSibling.nextSibling.lastChild;
txt2 =
tooltip_dom.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.lastChild;
txt1.string = "Custom Tooltip Text: 10";
txt2.string = "Custom Tooltip Text:";
alert('edjhf');
}
else {
tooltip_iframe =
window.frames[document.getElementById('visualization').firstChild.name];
tooltip_dom =
tooltip_iframe.document.getElementById('chart').firstChild.nextSibling.nextSibling;
container =
tooltip_dom.firstChild.firstChild.nextSibling.nextSibling;
txt1 =
tooltip_dom.firstChild.firstChild.nextSibling.nextSibling.nextSibling;
txt2 =
tooltip_dom.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling;
txt1.textContent = "Custom Tooltip Text: 10";
txt2.textContent = "Custom Tooltip
Text2:";
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
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.