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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...