Skip to content

Commit

Permalink
Merge pull request #2255 from venarius/fix/ranged-bar-zero
Browse files Browse the repository at this point in the history
FIX: Fixed y axis formatter not working when range contains zero
  • Loading branch information
junedchhipa authored Feb 24, 2021
2 parents fe2339a + 9ac162c commit 5020ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charts/RangeBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class RangeBar extends Bar {
seriesName = yLbTitleFormatter(seriesName, opts)
}

if (y1 && y2) {
if (Number.isFinite(y1) && Number.isFinite(y2)) {
start = y1
end = y2

Expand Down

0 comments on commit 5020ef2

Please sign in to comment.