Skip to content

Commit

Permalink
2 points is enough
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Jan 3, 2019
1 parent c72fce6 commit 5467893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scales/scale.linearbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function generateTicks(generationOptions, dataRange) {
if (niceMin === niceMax) {
// This happens due to float inccuracy when min and max are really close to each other
// One case: min = 1.8548483304974972 and max = 1.8548483304974974
ticks.push(niceMin - helpers.EPSILON, niceMax, niceMax + helpers.EPSILON);
ticks.push(dataRange.min, dataRange.max);
return ticks;
}

Expand Down

0 comments on commit 5467893

Please sign in to comment.