redefines the default formatting of cells values and sets a custom format
var myPivot = new dhx.Pivot("container", {
data: dataset,
fields: {
// initial pivot structure
},
fieldList: [
// the full list of fields
],
customFormat: function (cellValue, method) { if (method === "count") { return cellValue.toLocaleString("de"); } return "€ " + cellValue.toLocaleString("de") } });
The customFormat() function takes two parameters:
Related sample: Custom formatting