CartesianGrid gives warnings for percentages in 'verticalPoints' & 'horizontalPoints'
See original GitHub issueWhen I do this…
<CartesianGrid verticalPoints={["33%", "66%"]} horizontalPoints={["33%", "66%"]} />
I get the following warnings:
Warning: Failed prop type: Invalid prop `verticalPoints[0]` of type `string` supplied to `CartesianGrid`, expected `number`.
Warning: Failed prop type: Invalid prop `horizontalPoints[0]` of type `string` supplied to `CartesianGrid`, expected `number`.
However, everything works fine (i.e. the warnings appear to be false negatives).
Tested in version 1.0.0-beta.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
A brand new website interface for an even better experience!
CartesianGrid gives warnings for percentages in 'verticalPoints ' & 'horizontalPoints'
Read more >How can I calculate lines for a custom CartesianGrid in ...
verticalPoints.push(xScale(value)). and we can render our vertical lines on the x-axis with the CartesianGrid like this:.
Read more >recharts | Yarn - Package Manager
Recharts is a Redefined chart library built with React and D3. The main purpose of this library is to help you to write...
Read more >recharts/CHANGELOG.md - UNPKG
242, - allow set x, y, width, height, horizontalPoints, verticalPoints of CartesianGrid. 243, - add props to the parameters of callbacks.
Read more >CHANGELOG.md · Gitee 极速下载/recharts - Gitee.com
allow set x, y, width, height, horizontalPoints, verticalPoints of CartesianGrid; add props to the parameters of callbacks ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I still get the warnings. Any new updates on how to suppress them or…?
@merraysy Looks like it works.