alias: 'widget.proxmoxRRDChart',
unit: undefined, // bytes, bytespersecond, percent
-
+
controller: {
xclass: 'Ext.app.ViewController',
// javascript floating point weirdness
value = Ext.Number.correctFloat(value);
-
+
// limit to 2 decimal points
value = Ext.util.Format.number(value, "0.##");
-
+
return value.toString() + " " + units[si];
},
onSeriesTooltipRender: function(tooltip, record, item) {
var me = this.getView();
-
+
var suffix = '';
-
+
if (me.unit === 'percent') {
suffix = '%';
} else if (me.unit === 'bytes') {
} else if (me.unit === 'bytespersecond') {
suffix = 'B/s';
}
-
+
var prefix = item.field;
if (me.fieldTitles && me.fieldTitles[me.fields.indexOf(item.field)]) {
prefix = me.fieldTitles[me.fields.indexOf(item.field)];
ourUndoZoomButton.setDisabled(undoButton.isDisabled());
}
},
-
+
width: 770,
height: 300,
animation: false,