Skip to content

Commit 79385c2

Browse files
committed
correct the pre tick0 label
1 parent 08c69d7 commit 79385c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
625625
if(addOneTickToStart) {
626626
tickVals.push({
627627
minor: false,
628-
value: 2 * tickVals[0].value - tickVals[1].value
628+
value: axes.tickIncrement(tickVals[0].value, ax.dtick, !axrev, ax.caldendar)
629629
});
630630
}
631631

0 commit comments

Comments
 (0)