Hello John,
The default decimalPlaces (not set), which trims “.00” is not the same as decimalPlaces: 2
, which retains them. We recommend you to use formatFunction to be able to modify the displayed value however you wish, e.g.:
{ dataField: 'Debt', displayText: 'Debt per Capita', showLabels: true, showLabels: true, formatFunction: function (value, a, b, c) {
var float = parseFloat(value);
var int = parseInt(value);
if (float == int) {
return int;
} else {
return float.toFixed(3);
};
}
}
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/