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 2ca3881 commit c6b7231Copy full SHA for c6b7231
src/plots/cartesian/axes.js
@@ -961,14 +961,13 @@ axes.calcTicks = function calcTicks(ax, opts) {
961
if(!canOverlap) {
962
// remove duplicate minors
963
964
- var majorValues = [];
965
- for(var k = 0; k < tickVals.length; k++) {
966
- majorValues.push(tickVals[k].value);
967
- }
+ var majorValues = tickVals.map(function(d) { return d.value; });
968
969
minorTickVals = minorTickVals.filter(function(d) {
970
return majorValues.indexOf(d.value) === -1;
971
});
+
+ // TODO: also filter using almostEq to handle rounding errors as illustrated by mock 32
972
}
973
974
0 commit comments