Skip to content

Commit 60241b8

Browse files
committed
Remove accidental overwrite of fmt in formatDate
1 parent 858e520 commit 60241b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/plots/cartesian/axes.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,8 @@ function tickTextObj(ax, x, text) {
19691969

19701970
function formatDate(ax, out, hover, extraPrecision) {
19711971
var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround;
1972-
var fmt = ax._useTicklabelIndex ? "" : (hover && ax.hoverformat) || axes.getTickFormat(ax);
1972+
var fmt = (hover && ax.hoverformat) || axes.getTickFormat(ax);
1973+
19731974
// Only apply extra precision if no explicit format was provided.
19741975
extraPrecision = !fmt && extraPrecision;
19751976

0 commit comments

Comments
 (0)