8000 unified hover: use default legend bgcolor and default bordercolor · Franciraldo/plotly.js@8176c15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8176c15

Browse files
committed
unified hover: use default legend bgcolor and default bordercolor
1 parent a6e70b5 commit 8176c15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/fx/hover.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,8 @@ function createHoverText(hoverData, opts, gd) {
933933
showlegend: true,
934934
legend: {
935935
title: {text: t0},
936-
bgcolor: '#fff', // TODO: use layout.hoverlabel.bg or layout.paper_bgcolor
937-
borderwidth: 1, // TODO: use default or 1
938-
bordercolor: '#aaa', // TODO: use default
936+
bgcolor: fullLayout.legend ? fullLayout.legend.bgcolor : undefined,
937+
borderwidth: 1,
939938
tracegroupgap: 7
940939
}
941940
};

0 commit comments

Comments
 (0)
0