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) {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user