Hi,
I've committed code to the 1.0.1 branch that on my machine (and I hope for everyone else) implements tooltips. I've documented what I did, as I did it, at:
Only a small amount of the js code has been touched. I had to re-write _getMouseXY, as on all browsers I tried it on, it was giving insane numbers. Other than that, it's been a fairly orthogonal change.
There is an additional css file to hold the tooltip default styling - bioHeatMap.css. This should be included in any html that uses bioheatmap.js - perhaps someone can make this a bit more automated. If you want a different style, then use normal CSS tricks to over-ride it page-wide, or pass in a different css class name in the draw options to over-ride it for a single heat map. The css uses one of the html5 properties to add rounded corners to the tooltip. In my chrome, this looks as expected. In my firefox, I get the legacy square-cornered border. No harm done.
I've modified bioheatmap_examples.html so that a) the random heat map has tooltips for every cell, numbering the cell and giving the level and b) there's a tiny 4-cell heat map with two tooltipped cells (single and multi-line), one cell with no tooltip, and one cell with an empty tooltip. You can check if it's working for you by just putting your mouse over the cells and waiting a half second.
I'm not tied to any of the names used for configuration, styles and so on. If there are better or more consistent names, then I'll be happy to change them.
I'd really appreciate it if someone could check through what I've written. Javascript isn't my main language, and I've had to learn the google APIs as I went, so that code review you offered would be great.
Thanks,
Matthew