Created
December 10, 2016 19:06
-
-
Save caspg/8645df22f4fc7c93814f1b0988235b78 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 Bars from '../Bars' | |
// ... | |
export default class Chart extends Component { | |
//... | |
render() { | |
// ... | |
return ( | |
<svg width={svgDimensions.width} height={svgDimensions.height}> | |
// ... | |
<Bars | |
scales={{ xScale, yScale }} | |
margins={margins} | |
data={data} | |
maxValue={maxValue} | |
svgDimensions={svgDimensions} | |
/> | |
</svg> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment