Fix hoverlegend not showing

pull/10616/head
Deniz Kusefoglu 2018-03-07 23:39:05 -08:00
parent 8e1daa24b0
commit 8ef4ed5b70
1 changed files with 2 additions and 4 deletions

View File

@ -54,8 +54,6 @@ class Dygraph extends Component {
logscale: y.scale === LOG,
colors: this.getLineColors(),
series: this.hashColorDygraphSeries(),
unhighlightCallback: this.unhighlightCallback,
highlightCallback: this.highlightCallback,
plugins: [new Dygraphs.Plugins.Crosshair({direction: 'vertical'})],
axes: {
y: {
@ -139,8 +137,6 @@ class Dygraph extends Component {
const updateOptions = {
...options,
labels,
unhighlightCallback: this.unhighlightCallback,
highlightCallback: this.highlightCallback,
file: timeSeries,
logscale: y.scale === LOG,
ylabel: this.getLabel('y'),
@ -378,6 +374,8 @@ class Dygraph extends Component {
}}
className="dygraph-child-container"
style={dygraphStyle}
onMouseMove={this.highlightCallback}
onMouseOut={this.unhighlightCallback}
/>
{staticLegend &&
<StaticLegend