Skip to content

Commit

Permalink
Clear tooltip cahceh before path is redrawn
Browse files Browse the repository at this point in the history
- before if the path was updated, the tooltip point would be placed
  in the wrong location according to the cache.
  • Loading branch information
shyallegro committed Sep 10, 2019
1 parent ada46db commit b7e2fb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/charts/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ export default function module() {
let lines,
topicLine;

// clear tooltip chache on path redraw
pathYCache = {};

topicLine = line()
.curve(curveMap[lineCurve])
.x(({date}) => xScale(date))
Expand Down

0 comments on commit b7e2fb5

Please sign in to comment.