File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ module.exports = function plot(gd, calcData) {
131131 var hoverCenterY = boundingBox . top + boundingBox . height / 2 ;
132132
133133 var tooltip = Fx . loneHover ( {
134- x : hoverCenterX - rootBBox . left + window . scrollX ,
135- y : hoverCenterY - rootBBox . top + window . scrollY ,
134+ x : hoverCenterX - rootBBox . left ,
135+ y : hoverCenterY - rootBBox . top ,
136136 name : d3 . format ( d . valueFormat ) ( d . link . value ) + d . valueSuffix ,
137137 text : [
138138 d . link . label ,
@@ -181,9 +181,9 @@ module.exports = function plot(gd, calcData) {
181181 var hoverCenterY = boundingBox . top + boundingBox . height / 4 - rootBBox . top ;
182182
183183 var tooltip = Fx . loneHover ( {
184- x0 : hoverCenterX0 + window . scrollX ,
185- x1 : hoverCenterX1 + window . scrollX ,
186- y : hoverCenterY + window . scrollY ,
184+ x0 : hoverCenterX0 ,
185+ x1 : hoverCenterX1 ,
186+ y : hoverCenterY ,
187187 name : d3 . format ( d . valueFormat ) ( d . node . value ) + d . valueSuffix ,
188188 text : [
189189 d . node . label ,
You can’t perform that action at this time.
0 commit comments