Skip to content

Commit 81fcf2c

Browse files
committed
fix axis
1 parent 9dcc03f commit 81fcf2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/fx/hover.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,14 +1215,14 @@ function createHoverText(hoverData, opts) {
12151215
var item0 = groupedHoverData[0];
12161216

12171217
var unifiedhovertemplate = (
1218-
hovermode === 'y unified' ?
1218+
hovermode === 'x unified' ?
12191219
item0.xa :
12201220
item0.ya
12211221
).unifiedhovertemplate;
12221222

12231223
var mainText = !unifiedhovertemplate ? t0 :
12241224
Lib.hovertemplateString(unifiedhovertemplate, {}, fullLayout._d3locale,
1225-
hovermode === 'y unified' ?
1225+
hovermode === 'x unified' ?
12261226
{xa: item0.xa, x: item0.xVal} :
12271227
{ya: item0.ya, y: item0.yVal}
12281228
);

0 commit comments

Comments
 (0)