Created
October 3, 2022 13:45
-
-
Save PaulieScanlon/5368b36bfc4ee4814f0ee246d74747e0 to your computer and use it in GitHub Desktop.
Creating an Svg
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 }) => { | |
... | |
- return null | |
+ return ( | |
+ <svg viewBox={`0 0 ${chartWidth} ${chartHeight}`} role="presentation"> | |
+ | |
+ </svg> | |
+ ); | |
}; | |
export default LineChart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment