-
-
Save danderson00/95eb1859e66fe1cfe9104735f3214915 to your computer and use it in GitHub Desktop.
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
renderGraph = filter => { | |
this.setState({ filter }) | |
this.worker.topTenMovers(filter) | |
.then(data => Plotly.newPlot(this.element, [data])) | |
// ignore any dropped packets | |
// we need to handle any errors coming out of the worker here | |
.catch(error => error.dropped || console.error(error)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment