Skip to content

Instantly share code, notes, and snippets.

@dsternlicht
Last active July 22, 2019 09:20
Show Gist options
  • Save dsternlicht/546a34b74b4fd7feb17014d4d7ca73cf to your computer and use it in GitHub Desktop.
Save dsternlicht/546a34b74b4fd7feb17014d4d7ca73cf to your computer and use it in GitHub Desktop.
The most basic example for using react-dynamic-charts
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