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

Free Support Forum - aspose.com

Pie chart not format percentage

Hi Aspose,

If i have a value 0.1 percentage , pie chart show me 0%. How to format, so that show me 0.1% in label.

This is a my code:
IDataLabelFormat format = dataPoint.getLabel().getDataLabelFormat();
format.setShowValue(true);
format.setShowPercentage(true);
format.setNumberFormat(“0.0”);

But this only set 0%, not 0.1%.

Many Thanks,
Stefan

Hi Stefan,

I suggest you to please visit this documentation link to get the desired number format. If there is still an issue then please share the working sample code reproducing the issue on your end along with generated and source presentation. I will investigate the issue further on my end to help you out.

Many Thanks,