Created
December 10, 2016 19:55
-
-
Save caspg/86a073aebbca0da555a14f4f0d14e31c to your computer and use it in GitHub Desktop.
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 ResponsiveWrapper from '../ResponsiveWrapper' | |
class Chart extends Component { | |
// ... | |
render() { | |
// ... | |
const svgDimensions = { | |
width: Math.max(this.props.parentWidth, 300), | |
height: 500 | |
} | |
// ... | |
} | |
} | |
export default ResponsiveWrapper(Chart) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment