Added proper labels for Y axis data on metrics graphs

This commit is contained in:
ShadowArcanist
2025-09-19 23:14:15 +05:30
parent 20c57cde78
commit ee40fa0bef
2 changed files with 50 additions and 38 deletions

View File

@@ -129,15 +129,18 @@
} }
} }
}, },
yaxis: { yaxis: {
show: true, show: true,
labels: { labels: {
show: true, show: true,
style: { style: {
colors: textColor, colors: textColor,
} },
} formatter: function(value) {
}, return Math.round(value) + ' %';
}
}
},
noData: { noData: {
text: 'Loading...', text: 'Loading...',
style: { style: {
@@ -259,16 +262,19 @@
} }
} }
}, },
yaxis: { yaxis: {
min: 0, min: 0,
show: true, show: true,
labels: { labels: {
show: true, show: true,
style: { style: {
colors: textColor, colors: textColor,
} },
} formatter: function(value) {
}, return Math.round(value) + ' MB';
}
}
},
noData: { noData: {
text: 'Loading...', text: 'Loading...',
style: { style: {

View File

@@ -125,15 +125,18 @@
} }
} }
}, },
yaxis: { yaxis: {
show: true, show: true,
labels: { labels: {
show: true, show: true,
style: { style: {
colors: textColor, colors: textColor,
} },
} formatter: function(value) {
}, return Math.round(value) + ' %';
}
}
},
noData: { noData: {
text: 'Loading...', text: 'Loading...',
style: { style: {
@@ -258,16 +261,19 @@
} }
} }
}, },
yaxis: { yaxis: {
min: 0, min: 0,
show: true, show: true,
labels: { labels: {
show: true, show: true,
style: { style: {
colors: textColor, colors: textColor,
} },
} formatter: function(value) {
}, return Math.round(value) + ' %';
}
}
},
noData: { noData: {
text: 'Loading...', text: 'Loading...',
style: { style: {