Rerender dygraph after ref is set to render crosshairs

pull/10616/head
ebb-tide 2018-05-03 14:45:21 -07:00
parent 394be1de1f
commit 340d6a7a5b
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class Dygraph extends Component {
super(props)
this.state = {
staticLegendHeight: null,
isMounted: false,
}
}
@ -92,6 +93,7 @@ class Dygraph extends Component {
const {w} = this.dygraph.getArea()
this.props.setResolution(w)
this.setState({isMounted: true})
}
componentWillUnmount() {