i'm playing bit google charts api, , need change default text showed in tooltip of candlestick chart. not change style, it's content.
knows how achieve it?
try code customize tooltip content using html tags.
data.addrows([ ['mon', 20, 28, 38, 45, customtooltip('monday')], ['tue', 31, 38, 55, 66, customtooltip('tuesday')], ['wed', 50, 55, 77, 80, customtooltip('wednesday')], ['thu', 77, 77, 66, 50, customtooltip('thursday')], ['fri', 68, 66, 22, 15, customtooltip('friday')] ]); function customtooltip(text) { return '<div style="padding:5px 5px 5px 5px;">' + '<table id="medals_layout" style=" color:#db6acf; font-size:large">' + '<tr>' + '<td><b>' + text + '</b></td>' + '</tr>' + '</table>' + '</div>'; } take @ jqfaq.com has working sample line chart
Comments
Post a Comment