From 9716d7edb50f45c6e973d3aadd626aea0adf3d4f Mon Sep 17 00:00:00 2001 From: archmoj Date: Thu, 26 Aug 2021 18:38:13 -0400 Subject: [PATCH] improve bbox for pie slices --- src/traces/pie/plot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/traces/pie/plot.js b/src/traces/pie/plot.js index 066b66f5db0..0a9e17b0cef 100644 --- a/src/traces/pie/plot.js +++ b/src/traces/pie/plot.js @@ -410,6 +410,8 @@ function attachFxHandlers(sliceTop, gd, cd) { x0: hoverCenterX - rInscribed * cd0.r, x1: hoverCenterX + rInscribed * cd0.r, y: hoverCenterY, + _y0: hoverCenterY - rInscribed * cd0.r, + _y1: hoverCenterY + rInscribed * cd0.r, text: text.join('
'), name: (trace2.hovertemplate || hoverinfo.indexOf('name') !== -1) ? trace2.name : undefined, idealAlign: pt.pxmid[0] < 0 ? 'left' : 'right',