Skip to content

Commit

Permalink
Fix Tooltip Position
Browse files Browse the repository at this point in the history
Tooltip selector selects 'body'. It should selects chart.selector() instead
  • Loading branch information
wataruoguchi committed Aug 16, 2016
1 parent f2a30bd commit 2404866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar-heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function calendarHeatmap() {

if (chart.tooltipEnabled()) {
dayRects.on('mouseover', function (d, i) {
tooltip = d3.select('body')
tooltip = d3.select(chart.selector())
.append('div')
.attr('class', 'day-cell-tooltip')
.html(tooltipHTMLForDate(d))
Expand Down

0 comments on commit 2404866

Please sign in to comment.