Hi,
I am using UltraChart as PieChart3D. I set it to display values instead of percentages. The problem is that the values are counts, but I am getting 2 decimal points.
I tried to change the FormatString to <DATA_VALUE:00>. It looked correct on the designer but did not work when I run the application.
How to make the PieChart display integers.
Thanks,
Nuha
Thank you Marianne,
this was helpful :)
Hi Nuha,
Glad you were able to find the answer. Your FormatString looked correct to me. You should be able to use “00” or “##” to generate a 2 digit label.
“00” would cause the value to be rounded to the nearest digit preceding the decimal. For example, formatting 21.5 with "00" would result in the value 22.
A “##” format string would cause the value to be truncated to the nearest digit preceding the decimal. For example, formatting 21.5 with "##" would result in the value 21.
Let me know if you have any other questions.
Marianne
I found the problem. I had a line in my code to reset the format. Now it works.