Invoke line colors and stop wrapping

pull/10616/head
Andrew Watkins 2017-08-31 14:06:08 -07:00
parent e982d06425
commit 5485df5e7d
1 changed files with 5 additions and 5 deletions

View File

@ -55,11 +55,11 @@ export default class Dygraph extends Component {
let defaultOptions = { let defaultOptions = {
fillGraph, fillGraph,
logscale: y.scale === LOG, logscale: y.scale === LOG,
colors: this.getLineColors, colors: this.getLineColors(),
series: this.hashColorDygraphSeries(), series: this.hashColorDygraphSeries(),
legendFormatter: legend => this.legendFormatter(legend), legendFormatter: this.legendFormatter,
highlightCallback: e => this.highlightCallback(e), highlightCallback: this.highlightCallback,
unhighlightCallback: e => this.unhighlightCallback(e), unhighlightCallback: this.unhighlightCallback,
plugins: [new Dygraphs.Plugins.Crosshair({direction: 'vertical'})], plugins: [new Dygraphs.Plugins.Crosshair({direction: 'vertical'})],
axes: { axes: {
y: { y: {
@ -158,7 +158,7 @@ export default class Dygraph extends Component {
valueRange: getRange(timeSeries, y2.bounds), valueRange: getRange(timeSeries, y2.bounds),
}, },
}, },
colors: this.getLineColors, colors: this.getLineColors(),
series: this.hashColorDygraphSeries(), series: this.hashColorDygraphSeries(),
plotter: isBarGraph ? barPlotter : null, plotter: isBarGraph ? barPlotter : null,
visibility: this.visibility(), visibility: this.visibility(),