question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CartesianGrid gives warnings for percentages in 'verticalPoints' & 'horizontalPoints'

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bardsolcommented, Jun 7, 2018

I still get the warnings. Any new updates on how to suppress them or…?

1reaction
andrew-w-rosscommented, Apr 6, 2018

@merraysy Looks like it works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found