Skip to content

Commit e96ad53

Browse files
committed
fixup violin bug introduced in e15da90
1 parent b4bda4e commit e96ad53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/fx/hover.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,8 @@ function customVal(axLetter, winningPoint, fullLayout) {
19391939
var ax = winningPoint[axLetter + 'a'];
19401940
var val = winningPoint[axLetter + 'Val'];
19411941

1942-
if(ax.type === 'category') return ax._categoriesMap[val];
1943-
if(ax.type === 'date') return ax.d2c(val);
1942+
if(ax.type === 'category') val = ax._categoriesMap[val];
1943+
else if(ax.type === 'date') val = ax.d2c(val);
19441944

19451945
var cd0 = winningPoint.cd[winningPoint.index];
19461946
if(cd0 && cd0.t && cd0.t.posLetter === ax._id) {

0 commit comments

Comments
 (0)