Adjust synchronizer to omit zoom and range synchronization, for performance reasons.

pull/10616/head
Hunter Trujillo 2017-06-19 16:31:53 -06:00
parent c097784313
commit 9381265dc7
1 changed files with 5 additions and 1 deletions

View File

@ -213,7 +213,11 @@ class DashboardPage extends Component {
synchronizer(dygraph) {
const dygraphs = [...this.state.dygraphs, dygraph]
if (dygraphs.length > 1) {
Dygraph.synchronize(dygraphs)
Dygraph.synchronize(dygraphs, {
selection: true,
zoom: false,
range: false,
})
}
this.setState({dygraphs})
}