Commit 7f693bfa authored by Randall Leeds's avatar Randall Leeds

Tooltip on heatmap tabs

Close #867
parent 21dc9d3d
...@@ -357,6 +357,12 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin ...@@ -357,6 +357,12 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
(event.ctrlKey or event.metaKey), (event.ctrlKey or event.metaKey),
@tabs @tabs
.attr 'title', (d) =>
if (len = @buckets[d].length) > 1
"Show #{len} annotations"
else if len > 0
"Show one annotation"
.css 'margin-top', (d) => .css 'margin-top', (d) =>
if @isUpper(d) or @isLower(d) then '-9px' else '-8px' if @isUpper(d) or @isLower(d) then '-9px' else '-8px'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment