mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Flow durations as a scatter with a log axis, this time with correct values.
This commit is contained in:
parent
2560394650
commit
549872a5d6
@ -23,16 +23,13 @@ export class FlowDurationsGraph extends DashboardGraph {
|
|||||||
update(data) {
|
update(data) {
|
||||||
this.chart.hideLoading();
|
this.chart.hideLoading();
|
||||||
|
|
||||||
let x = [];
|
let points = [];
|
||||||
let y = [];
|
|
||||||
|
|
||||||
data.forEach((r) => {
|
data.forEach((r) => {
|
||||||
x.push(r.duration);
|
points.push([r.duration, r.count]);
|
||||||
y.push(r.count);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.option.xAxis.data = x;
|
this.option.series.data = points;
|
||||||
this.option.series.data = y;
|
|
||||||
|
|
||||||
this.chart.setOption(this.option);
|
this.chart.setOption(this.option);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user