Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
save a line
  • Loading branch information
kurkle committed Jan 7, 2019
commit e70c33436f86c02142eb60f99d2c8f8e26539d3f
3 changes: 1 addition & 2 deletions src/scales/scale.linearbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,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