format numbers to not have decimals

This commit is contained in:
Mads Rasmussen
2018-11-22 10:52:48 +01:00
parent f24a347b01
commit e54e1989ba

View File

@@ -205,6 +205,14 @@
"start": start,
"step": step,
"tooltips": tooltips,
"format": {
to: function (value) {
return Math.round(value);
},
from: function (value) {
return Math.round(value);
}
},
"range": {
"min": min,
"max": max