We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have data like the following:
const data =[ { id: 30464, data: [ { x: "2009-01-31", y: 471.2, z: 471.2 } ] } ]
And I am rendering chart:
<ResponsiveScatterPlot data={data} />
Chart renders OK, but I get a warning on the console:
Warning: Failed prop type: Invalid prop `data[0].id` of type `number` supplied to `ScatterPlot`, expected `string`.
Warning: Failed prop type: Invalid prop `nodes[0].data.serieId` of type `number` supplied to `AnimatedNodes`, expected `string`.
Warning: Failed prop type: Invalid prop `node.data.serieId` of type `number` supplied to `NodeWrapper`, expected `string`.
Warning: Failed prop type: Invalid prop `nodes[0].data.serieId` of type `number` supplied to `Mesh`, expected `string`.
Warnings goes away when I use strings for id but the document says id can be a number, too.
The text was updated successfully, but these errors were encountered:
@hubertokf, by default it's expecting a string, but the PropTypes should be adjusted, there's no reason to force this, a number is completely fine.
Sorry, something went wrong.
fix(scatterplot): adjust type/proptype of data[].id prop
data[].id
71efd78
Close #943
fix(scatterplot): adjust type/proptype of data[].id prop (#1147)
52c1bc1
Successfully merging a pull request may close this issue.
I have data like the following:
And I am rendering chart:
Chart renders OK, but I get a warning on the console:
Warnings goes away when I use strings for id but the document says id can be a number, too.
The text was updated successfully, but these errors were encountered: