We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem with precision in the Cells

I am building a chart using Aspose.Cells.
Everything is as expected, other than on the chart the data is showing integer when it comes from database as 7.0, 6.0, 5.0. But, when it comes as 6.2, 7.2, 5.6 then it is showing correct.
the code I have used to put value in cell is,

I have also tried,
cells[“A1”].PutValue(new Decimal(categoryMean));

Nothing works, please tell me what could be the issue?


Well, I think you my try to use/set NumberFormat attribute for TickLabels or DataLabels etc.


chart.ValueAxis.TickLabels.NumberFormat = “0.0”;

chart.NSeries[0].DataLabels.NumberFormat = “0.0”;

Thank you.