We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 272534c commit 3734680Copy full SHA for 3734680
src/plots/cartesian/axes.js
@@ -841,7 +841,18 @@ axes.calcTicks = function calcTicks(ax, opts) {
841
var tickVals = [];
842
var xPrevious = null;
843
844
- var dTick = numDtick ? ax.dtick : ax._roughDTick;
+ var dTick;
845
+ if(numDtick) {
846
+ dTick = ax.dtick;
847
+ } else {
848
+ if(ax.type === 'date') {
849
+ if(typeof ax.dtick === 'string' && ax.dtick.charAt(0) === 'M') {
850
+ dTick = ONEAVGMONTH * ax.dtick.substring(1);
851
+ }
852
853
+ dTick = ax._roughDTick;
854
855
856
857
var id = Math.round((
858
ax.r2l(x) -
0 commit comments