mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-25 21:39:30 +00:00
RRDChart.js: use the fieldtitle or fieldname as axistitle
if no unit applies Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b07f375602
commit
51613acea2
@ -109,6 +109,10 @@ Ext.define('Proxmox.widget.RRDChart', {
|
||||
axisTitle = "Bytes";
|
||||
} else if (me.unit === 'bytespersecond') {
|
||||
axisTitle = "Bytes/s";
|
||||
} else if (me.fieldTitles && me.fieldTitles.length === 1) {
|
||||
axisTitle = me.fieldTitles[0];
|
||||
} else if (me.fields.length === 1) {
|
||||
axisTitle = me.fields[0];
|
||||
}
|
||||
|
||||
me.axes[0].setTitle(axisTitle);
|
||||
|
Loading…
Reference in New Issue
Block a user