Skip to content

Commit

Permalink
fix(bar): add ability to use number for grid lines (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
aanguswilliams authored and plouc committed Dec 13, 2019
1 parent f92abbe commit 3d48b94
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/bar/src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ export const BarPropTypes = {
axisLeft: axisPropType,
enableGridX: PropTypes.bool.isRequired,
enableGridY: PropTypes.bool.isRequired,
gridXValues: PropTypes.arrayOf(PropTypes.number),
gridYValues: PropTypes.arrayOf(PropTypes.number),
gridXValues: PropTypes.oneOfType([
PropTypes.number,
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])),
]),
gridYValues: PropTypes.oneOfType([
PropTypes.number,
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])),
]),

barComponent: PropTypes.func.isRequired,

Expand Down

0 comments on commit 3d48b94

Please sign in to comment.