Commit 38206543 authored by Sergey Luzyanin's avatar Sergey Luzyanin

num format for data labels

parent 3d09caf1
......@@ -773,7 +773,15 @@ CDLbl.prototype =
{
if(compiled_string.length > 0)
compiled_string += separator;
var num_format = AscCommon.oNumFormatCache.get(this.series.getFormatCode());
var sFormatCode;
if(typeof this.pt.formatCode === "string" && this.pt.formatCode.length > 0){
sFormatCode = this.pt.formatCode;
}
else{
sFormatCode = this.series.getFormatCode();
}
var num_format = AscCommon.oNumFormatCache.get(sFormatCode);
compiled_string += num_format.formatToChart(this.series.getValByIndex(this.pt.idx));
}
if(this.showPercent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment