Skip to content

Instantly share code, notes, and snippets.

@natew
Created October 25, 2016 22:26
Show Gist options
  • Save natew/7cc3aa67a0f0f62f8a39e900cb12694f to your computer and use it in GitHub Desktop.
Save natew/7cc3aa67a0f0f62f8a39e900cb12694f to your computer and use it in GitHub Desktop.
<VictoryChart
height={height}
width={width}
>
<VictoryArea
animate={{ duration: 100 }}
interpolation="stepAfter"
style={{
data: {
fill: '#fff178',
opacity: 0.8,
},
}}
data={xy(histogram1)}
/>
<VictoryArea
animate={{ duration: 100 }}
interpolation="stepAfter"
style={{
data: {
fill: '#d22e64',
opacity: 0.6,
},
}}
data={xy(histogram2)}
/>
<VictoryAxis
scale="linear"
standalone={false}
tickCount={5}
style={axisStyle}
/>
<VictoryAxis
dependentAxis
scale="linear"
standalone={false}
tickCount={5}
style={axisStyle}
/>
</VictoryChart>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment