Choose your graph type above
import PubNubReact from 'pubnub-react';
import Chart from 'eon-react';
class App extends Component {
constructor(props){
super(props)
this.pubnub = new PubNubReact({
subscribeKey: 'demo' // Your sub key
});
this.pubnub.init(this);
}
render() {
return (
<Chart
pubnub={this.pubnub}
channels={['eon-components']} /** Enter your channel name **/
type='area' />
);
}
}