Last active
July 22, 2019 09:20
-
-
Save dsternlicht/546a34b74b4fd7feb17014d4d7ca73cf to your computer and use it in GitHub Desktop.
The most basic example for using react-dynamic-charts
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 React, { Component } from 'react'; | |
import { LiveBarChart } from 'react-dynamic-charts'; | |
import 'react-dynamic-charts/dist/index.css'; // Don't forget to import the styles | |
class App extends Component { | |
state = { | |
data: [ | |
// ... | |
] | |
}; | |
render () { | |
return ( | |
<LiveBarChart | |
data={this.state.data} | |
/> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment