8000 fixup violin bug introduced in e15da902d043400c476f0f3fd22aafa876728eb3 · plotly/plotly.js@e96ad53 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 2 additions & 2 deletions
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)
0