Invoke line colors and stop wrapping
parent
e982d06425
commit
5485df5e7d
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue