Skip to content

Commit

Permalink
improve bbox for pie slices
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Aug 26, 2021
1 parent aa00c18 commit 9716d7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/traces/pie/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<br>'),
name: (trace2.hovertemplate || hoverinfo.indexOf('name') !== -1) ? trace2.name : undefined,
idealAlign: pt.pxmid[0] < 0 ? 'left' : 'right',
Expand Down

0 comments on commit 9716d7e

Please sign in to comment.