8000 unified hover: add trace name in label · pfacto/plotly.js@f4b95c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f4b95c6

Browse files
committed
unified hover: add trace name in label
1 parent 67fc7e8 commit f4b95c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ function createHoverText(hoverData, opts, gd) {
946946
var texts = getHoverLabelText(hoverData[j], true, hovermode, fullLayout, t0);
947947
var text = texts[0];
948948
var name = texts[1];
949-
hoverData[j].text = text;
949+
hoverData[j].text = name + ' : ' + text;
950950
hoverData[j].name = name;
951951
legendOpts.entries.push([hoverData[j]]);
952952
}

0 commit comments

Comments
 (0)
0