Browse Source

Fix charts.

pull/544/head
Sebastian 6 years ago
parent
commit
cc38cb7881
  1. 2
      frontend/app/features/dashboard/pages/cards/api-calls-card.component.ts
  2. 2
      frontend/app/features/dashboard/pages/cards/api-performance-card.component.ts

2
frontend/app/features/dashboard/pages/cards/api-calls-card.component.ts

@ -45,7 +45,7 @@ export class ApiCallsCardComponent implements OnChanges {
backgroundColor: ChartHelpers.getBackgroundColor(i), backgroundColor: ChartHelpers.getBackgroundColor(i),
borderColor: ChartHelpers.getBorderColor(i), borderColor: ChartHelpers.getBorderColor(i),
borderWidth: 1, borderWidth: 1,
data: this.usage.details[k].map(x => x.averageElapsedMs) data: this.usage.details[k].map(x => x.totalCalls)
})) }))
}; };
} }

2
frontend/app/features/dashboard/pages/cards/api-performance-card.component.ts

@ -51,7 +51,7 @@ export class ApiPerformanceCardComponent implements OnChanges {
backgroundColor: ChartHelpers.getBackgroundColor(i), backgroundColor: ChartHelpers.getBackgroundColor(i),
borderColor: ChartHelpers.getBorderColor(i), borderColor: ChartHelpers.getBorderColor(i),
borderWidth: 1, borderWidth: 1,
data: this.usage.details[k].map(x => x.totalCalls) data: this.usage.details[k].map(x => x.averageElapsedMs)
})) }))
}; };

Loading…
Cancel
Save