Fix legends not appearing on new cells

pull/3268/head
Andrew Watkins 2018-04-19 10:43:53 -07:00
parent f29b51b080
commit 8e38f07979
3 changed files with 1 additions and 2 deletions

View File

@ -320,6 +320,7 @@ class Dygraph extends Component {
</div>
)}
<div
onMouseEnter={this.handleShowLegend}
ref={r => {
this.graphRef = r
this.props.dygraphRef(r)

View File

@ -43,7 +43,6 @@ class DygraphLegend extends Component {
}
highlightCallback = e => {
console.log('callback firing: ', this, e, e.target)
this.setState({pageX: e.pageX})
this.props.onShow(e)
}

View File

@ -1,7 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import Dygraph from 'shared/components/Dygraph'
import shallowCompare from 'react-addons-shallow-compare'
import SingleStat from 'src/shared/components/SingleStat'
import timeSeriesToDygraph from 'utils/timeSeriesTransformers'