We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745afcc commit 1bd56afCopy full SHA for 1bd56af
src/components/fx/hover.js
@@ -891,12 +891,11 @@ function createHoverText(hoverData, opts) {
891
var t0 = c0[axLetter + 'Label'];
892
893
// search in array for the label
894
- if(t0 === undefined) {
895
- hoverData.map(function(data) {
896
- if(data[axLetter + 'Label']) {
897
- t0 = data[axLetter + 'Label'];
898
- }
899
- });
+ if(t0 === undefined && xa.type === 'multicategory') {
+ for(var q = 0; q < hoverData.length; q++) {
+ t0 = hoverData[q][axLetter + 'Label'];
+ if(t0 !== undefined) break;
+ }
900
}
901
902
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
0 commit comments