Skip to content

Commit 2326b5b

Browse files
committed
fix issue 5585 for bars
1 parent 73d5438 commit 2326b5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traces/bar/plot.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,14 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
647647
}
648648

649649
function formatLabel(u) {
650+
if(pAxis.type === 'log') u = pAxis.c2r(u);
651+
650652
return tickText(pAxis, u, true).text;
651653
}
652654

653655
function formatNumber(v) {
656+
if(vAxis.type === 'log') v = vAxis.c2r(v);
657+
654658
return tickText(vAxis, +v, true).text;
655659
}
656660

0 commit comments

Comments
 (0)