We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2fbe0 commit b5aaf92Copy full SHA for b5aaf92
src/plots/cartesian/axes.js
@@ -739,6 +739,8 @@ axes.autoTicks = function(ax, roughDTick) {
739
// being > half of the final unit - so precalculate twice the rough val
740
var roughX2 = 2 * roughDTick;
741
742
+ // TODO find way to have 'better' first tick on axes with breaks
743
+
744
if(roughX2 > ONEAVGYEAR) {
745
roughDTick /= ONEAVGYEAR;
746
base = getBase(10);
@@ -797,6 +799,9 @@ axes.autoTicks = function(ax, roughDTick) {
797
799
ax.tick0 = 0;
798
800
801
ax.dtick = roundDTick(roughDTick, base, roundBase10);
802
803
+ // TODO having tick0 = 0 being insider a breaks does not seem
804
+ // to matter ...
805
}
806
807
// prevent infinite loops
0 commit comments