Does Pie Chart Support Decimal Points

Charts for WPF Forum

Posted 2 years ago by Jerin Sebastian
Version: 16.1.0662
Avatar

Am trying to represent two datas in Pie chart. The values that am giving are 38 and 68. The data should be represented in percentages in the pie chart.

Currrently the percentages am getting are 64% and 36%. But actually the values are 35.84% and 64.15%. It seems the values have been rounded off. I don't want the values to be rounded off.

So how do I obtain the above case?

Comments (3)

Posted 2 years ago by Jerin Sebastian
Avatar

This is the screenshot for the above case

https://drive.google.com/open?id=1wtK5rHyO2reNxYCGHTQD9rZzHxNFFkBC

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jerin,

I don't believe we actually round the pie slice value itself, but for display purposes it will round the percentage by default.  If you take a look at the "Charts / Pie Chart Features / Pie Slice Labels" topic in the documentation that comes with the product, it tell you how you can customize the labels.  You could modify PieSeries.SliceLabelFormat to support additional decimal places.


Actipro Software Support

Posted 2 years ago by Jerin Sebastian
Avatar

Ok.. Thanks.

The latest build of this product (v2019.1 build 0681) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.