Browse Source

revert datapoint

merge-requests/1/merge
rozetko 3 years ago
parent
commit
d45df53be0
  1. 2
      dist/index.js
  2. 2
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
src/index.ts

@ -598,7 +598,7 @@ export class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions
private get aggregatedValue(): number {
switch(this._stat) {
case Stat.CURRENT:
return _.last(this.series[0].datapoints)[0];
return _.last(this.series[0].datapoints)[1];
// TODO: support other stats
default:
throw new Error(`Unsupported stat: ${this._stat}`);

Loading…
Cancel
Save