Skip to content

Commit afa05f3

Browse files
Matt Cotterkangas
authored andcommitted
INT-782 show rightmost tooltip on date minichart
(cherry picked from commit cc83c0a)
1 parent 7b56201 commit afa05f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/minicharts/d3fns/date.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ var minicharts_d3fns_date = function() {
168168
};
169169
});
170170

171-
var innerWidth = width - margin.left - margin.right;
171+
// without `-1` the tooltip won't always trigger on the rightmost value
172+
var innerWidth = width - margin.left - margin.right - 1;
172173
var innerHeight = height - margin.top - margin.bottom;
173174
var el = d3.select(this);
174175

0 commit comments

Comments
 (0)