|
Project Information
Featured
Downloads
Links
|
NOTICEIt appears that Google has updated their Google Charts API. This is causing gvTooltip to not function properly. I'm working on a fix; should be available soon. gvTooltip 1.0 – DEMOA custom tooltip script for Google Visualization chartsThis script replaces the default GV tooltip with a customizable tooltip. It is styled completely in CSS and so can be easily changed. Currently works on the following GV
USE1. Include jQuery, gvTooltip.js and gvTooltip.css.<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script> <script type="text/javascript" src="gvTooltip.1.0b.js" ></script> <link rel="stylesheet" href="gvTooltip.1.0b.css" type="text/css"> 2. Add this after your GV.draw declaration:gvTooltip("gv_div","data_var",chart,"options");Example:
3. Add your tooltip text to your "Formatted Data". The formatted data must be in the following format:`<span>Regular Title<div id="gvTooltipData">The data/text that will show up in the tooltip</div></span>` Example:data.setCell(0, 0, value, '<span>Regular Title<div id=\"gvTooltipData\">The data/text that will show up in the tooltip</div></span>')"; OPTIONSgvTooltip currently supports the following options
TODO
Screenshot
Change HistoryVersion 1.0
Version 1.0b
WARNINGThere may be bugs in this script. Please report any you find. gvTooltip has been tested on Chrome, Firefox, and Safari |