Flow durations as a scatter with a log axis, this time with correct values.

This commit is contained in:
Herbert Wolverson 2024-07-26 09:18:16 -05:00
parent 2560394650
commit 549872a5d6

View File

@ -23,16 +23,13 @@ export class FlowDurationsGraph extends DashboardGraph {
update(data) {
this.chart.hideLoading();
let x = [];
let y = [];
let points = [];
data.forEach((r) => {
x.push(r.duration);
y.push(r.count);
points.push([r.duration, r.count]);
});
this.option.xAxis.data = x;
this.option.series.data = y;
this.option.series.data = points;
this.chart.setOption(this.option);
}