DEV Community

loading...

Discussion on: Graph issue - React recharts

Collapse
sampennington profile image
sampennington

Also going to drop a typescript recommendation here, you would get instant feedback of why the type of stats doesn't match the data prop type required, rather than getting syntax error in the browser you would get something much more useful, right in vscode or whatever.

Collapse
manuelalonge profile image
Manuel Alonge Author

Hi Sam, I'm having a look at your PR. First of all thanks a lot for that. I will let you know more later.

Collapse
manuelalonge profile image
Manuel Alonge Author

Hi Sam. Thanks for this. Also thanks for the suggestion about the type. I was actually looking to draw a line instead of a bar, but yours was a very good support and helped me understand my mistakes. I merged your commit into my repo and for the future please do not hesitate to ask if you need any help.