Skip to content

Instantly share code, notes, and snippets.

@oneybee
Last active April 21, 2018 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oneybee/5c66f29cf6b9ab1ed983de6e0c5513ec to your computer and use it in GitHub Desktop.
Save oneybee/5c66f29cf6b9ab1ed983de6e0c5513ec to your computer and use it in GitHub Desktop.
ExampleTwoDeepComponent_recharts
<LineChart width={900} height={300} data={this.state.data} margin={{right: 200}}>
<XAxis dataKey="name" />
<YAxis/>
<CartesianGrid strokeDasharray="3 3"/>
<Tooltip/>
<Legend />
<Line type="monotone" dataKey="goals" stroke="#8884d8" activeDot={{r: 8}}/>
<Line type="monotone" dataKey="goalsAgainst" stroke="#82ca9d" />
</LineChart>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment