Posted 02 December 2009 - 09:13 AM
The chart I changed was the MSLine (MSLine.fla), but I'm assuming the change would be similar in most of them.
in MSLine.fla on the Chart Class layer's actionscript I added a line to the parameter parsing function (line 303)
This adds a parameter to the dataset for decimalPrecision (and defaults to the main graph decimalPrecision):
this.dataset[this.Params.numDs].decimalPrecision = Number(getFirstValue(levelTwoNodes[j].attributes.decimalPrecision, this.Params.decimalPrecision));
Then later on in the same script in function Chart.prototype.drawValueTb:
changed this line:
createText(this.getLevel(), this.formatNumber(this.dataSet[i].data[j].value), this.dataSet[i].data[j].valueTbX, this.dataSet[i].data[j].valueTbY, this.Params.baseFont, this.Params.baseFontSize, this.Params.baseFontColor, false, "center", "left", null, true);
to this:
createText(this.getLevel(), this.formatNumber(this.dataSet[i].data[j].value , this.dataSet[i].decimalPrecision ), this.dataSet[i].data[j].valueTbX, this.dataSet[i].data[j].valueTbY, this.Params.baseFont, this.Params.baseFontSize, this.Params.baseFontColor, false, "center", "left", null, true);
and likewise, this:
createText(this.getLevel(), this.formatNumber(this.dataSet[i].data[j].value), this.dataSet[i].data[j].valueTbX, this.dataSet[i].data[j].valueTbY, this.Params.baseFont, this.Params.baseFontSize, this.Params.baseFontColor, false, "center", "right", null, true);
to this:
createText(this.getLevel(), this.formatNumber(this.dataSet[i].data[j].value , this.dataSet[i].decimalPrecision ), this.dataSet[i].data[j].valueTbX, this.dataSet[i].data[j].valueTbY, this.Params.baseFont, this.Params.baseFontSize, this.Params.baseFontColor, false, "center", "right", null, true);