Created
October 3, 2022 13:43
-
-
Save PaulieScanlon/1f67c99459655ab6ddf6b3ed92c56633 to your computer and use it in GitHub Desktop.
Creating the points array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
const LineChart = ({ data }) => { | |
... | |
+ const points = properties.map((point) => { | |
+ const { x, y } = point; | |
+ return `${x},${y}`; | |
+ }); | |
return null | |
}; | |
export default LineChart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment