Skip to content

Commit

Permalink
fix(bar): include bars with zero height/width
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored and plouc committed Oct 29, 2020
1 parent 54c7af5 commit 32f4823
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/bar/src/compute/grouped.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const generateVerticalGroupedBars = (
}
})
)
).filter(bar => gt(bar.width, 0) && gt(bar.height, 0))
)

return bars
}
Expand Down Expand Up @@ -124,7 +124,7 @@ const generateHorizontalGroupedBars = (
}
})
)
).filter(bar => gt(bar.width, 0))
)

return bars
}
Expand Down
4 changes: 2 additions & 2 deletions packages/bar/src/compute/stacked.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const generateVerticalStackedBars = (
}
})
)
).filter(bar => bar.height > 0)
)

return bars
}
Expand Down Expand Up @@ -127,7 +127,7 @@ const generateHorizontalStackedBars = (
}
})
)
).filter(bar => bar.width > 0)
)

return bars
}
Expand Down

0 comments on commit 32f4823

Please sign in to comment.