|
|
@@ -99,6 +99,7 @@ export default class TimeSeries {
|
|
|
this.alias = opts.alias;
|
|
|
this.aliasEscaped = _.escape(opts.alias);
|
|
|
this.color = opts.color;
|
|
|
+ this.bars = { fillColor: opts.color };
|
|
|
this.valueFormater = kbn.valueFormats.none;
|
|
|
this.stats = {};
|
|
|
this.legend = true;
|
|
|
@@ -112,11 +113,11 @@ export default class TimeSeries {
|
|
|
dashLength: [],
|
|
|
};
|
|
|
this.points = {};
|
|
|
- this.bars = {};
|
|
|
this.yaxis = 1;
|
|
|
this.zindex = 0;
|
|
|
this.nullPointMode = null;
|
|
|
delete this.stack;
|
|
|
+ delete this.bars.show;
|
|
|
|
|
|
for (var i = 0; i < overrides.length; i++) {
|
|
|
var override = overrides[i];
|
|
|
@@ -168,7 +169,7 @@ export default class TimeSeries {
|
|
|
this.fillBelowTo = override.fillBelowTo;
|
|
|
}
|
|
|
if (override.color !== void 0) {
|
|
|
- this.color = override.color;
|
|
|
+ this.setColor(override.color);
|
|
|
}
|
|
|
if (override.transform !== void 0) {
|
|
|
this.transform = override.transform;
|
|
|
@@ -346,4 +347,9 @@ export default class TimeSeries {
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ setColor(color) {
|
|
|
+ this.color = color;
|
|
|
+ this.bars.fillColor = color;
|
|
|
+ }
|
|
|
}
|