mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Merge commit '5e260fe9f3a4a22332b16b40b1245eb5d0ecb1fd' into lts2_client
This commit is contained in:
@@ -40,7 +40,7 @@ export class GraphOptionsBuilder {
|
||||
|
||||
// Provide a positive-number only (suitable for inverted) Y axis
|
||||
// that scales the number K/M/G/etc.
|
||||
withScaledAbsYAxis(name="") {
|
||||
withScaledAbsYAxis(name="", gap=25) {
|
||||
this.option.yAxis = {
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
@@ -52,12 +52,12 @@ export class GraphOptionsBuilder {
|
||||
if (name.length > 0) {
|
||||
this.option.yAxis.name = name;
|
||||
this.option.yAxis.nameLocation = 'middle';
|
||||
this.option.yAxis.nameGap = 50;
|
||||
this.option.yAxis.nameGap = gap;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
withScaledAbsYAxisPercent(name="") {
|
||||
withScaledAbsYAxisPercent(name="", gap=25) {
|
||||
this.option.yAxis = {
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
@@ -69,7 +69,7 @@ export class GraphOptionsBuilder {
|
||||
if (name.length > 0) {
|
||||
this.option.yAxis.name = name;
|
||||
this.option.yAxis.nameLocation = 'middle';
|
||||
this.option.yAxis.nameGap = 50;
|
||||
this.option.yAxis.nameGap = gap;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user