Skip to content

feat: Make hover label triangle optional #7451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
handle case where trace.hoverlabel is undefined
  • Loading branch information
emilykl committed Jul 22, 2025
commit b3258fcfc01eb9aeeabb5345d1fb8b17cc96b98e
2 changes: 1 addition & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ function alignHoverText(hoverLabels, rotateLabels, scaleX, scaleY) {
var offsetY = offsets.y;

var isMiddle = anchor === 'middle';
var showArrow = d.trace.hoverlabel.showarrow;
var showArrow = d.trace.hoverlabel?.showarrow;

var pathStr;
if(isMiddle) {
Expand Down