mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Label axes on RTT histogram
This commit is contained in:
parent
671614f3b8
commit
ccb9047400
@ -11,15 +11,17 @@ export class RttHistogram extends DashboardGraph {
|
|||||||
value: i,
|
value: i,
|
||||||
itemStyle: {color: lerpGreenToRedViaOrange(20-i, 20)},
|
itemStyle: {color: lerpGreenToRedViaOrange(20-i, 20)},
|
||||||
});
|
});
|
||||||
axis.push(i.toString());
|
axis.push((i*10).toString());
|
||||||
}
|
}
|
||||||
this.option = {
|
this.option = {
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: axis,
|
data: axis,
|
||||||
|
name: "RTT"
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
|
name: "Samples"
|
||||||
},
|
},
|
||||||
series: {
|
series: {
|
||||||
data: d,
|
data: d,
|
||||||
|
Loading…
Reference in New Issue
Block a user