Skip to content

Commit

Permalink
save a line
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Jan 3, 2019
1 parent 5467893 commit 2b78454
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scales/scale.linearbase.js
Expand Up @@ -47,8 +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(dataRange.min, dataRange.max);
return ticks;
return [dataRange.min, dataRange.max];
}

// If min, max and stepSize is set and they make an evenly spaced scale use it.
Expand Down

0 comments on commit 2b78454

Please sign in to comment.