Skip to content

Commit

Permalink
fixing scale PropType to PropTypes.func to be able to use custom scales
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmitr committed Sep 24, 2019
1 parent 1323e85 commit b46fd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x-axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ XAxis.propTypes = {
left: PropTypes.number,
right: PropTypes.number,
}),
scale: PropTypes.oneOf([d3Scale.scaleTime, d3Scale.scaleLinear, d3Scale.scaleBand]),
scale: PropTypes.func,
numberOfTicks: PropTypes.number,
xAccessor: PropTypes.func,
svg: PropTypes.object,
Expand Down

0 comments on commit b46fd85

Please sign in to comment.