The new APEX pie charts only allows percent values as data labels. Luckily the APEX team added an great example in the "Sample Chart" application which shows how to add custom data labels including absolute values by adding custom JavaScript code.
For German applications I prefer to display 10k (10000) like this: 10.000.
Thanks to APEX and JET it is easy to implement.
function( options ){
this.donutSliceLabel = function( dataContext ){
var value_ger;
value_ger = dataContext.value.toLocaleString('de-DE', {
minimumFractionDigits: 0
});
return value_ger;
}
options.dataLabel = donutSliceLabel;
return options;
}
Info: Technical updates in the JavaScript area are not supported by APEX updates. For example: A future JET version could have some engine changes which will not accept my JS example anymore.
For German applications I prefer to display 10k (10000) like this: 10.000.
Thanks to APEX and JET it is easy to implement.
function( options ){
this.donutSliceLabel = function( dataContext ){
var value_ger;
value_ger = dataContext.value.toLocaleString('de-DE', {
minimumFractionDigits: 0
});
return value_ger;
}
options.dataLabel = donutSliceLabel;
return options;
}
Info: Technical updates in the JavaScript area are not supported by APEX updates. For example: A future JET version could have some engine changes which will not accept my JS example anymore.