Jump to content
Software FX Community

How to get no decimal places for pie chart data

Recommended Posts


I am using ChartFX 6.2 COM version.

When I have a pie chart, I call the following two methods to display the data percentage point values assigned to each point of the pie:

.PointLables = True

.PointLabelMask = "%p"

However, the percentage values always show two decimal places. What do I need to do get the data to show a different number of decimal places (i.e. one or none)?



Share this post

Link to post
Share on other sites

I found out the answer by doing a bit more research. In case anyone is interested, here is how it is done.

'## Note that my label data was on the first axis, hence .Axis(0).

Chart.Axis(0).LabelsFormat.Decimals = 0

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now