Skip to content

Instantly share code, notes, and snippets.

@caspg
Created December 10, 2016 19:06
Show Gist options
  • Save caspg/8645df22f4fc7c93814f1b0988235b78 to your computer and use it in GitHub Desktop.
Save caspg/8645df22f4fc7c93814f1b0988235b78 to your computer and use it in GitHub Desktop.
// ....
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