As mentioned above, keyword is used to solve the problem of displaying both the value and percentage in the pie chart label. The method is similar to this:
Chart1.series [0]. Label = "# Valy [# percent]";
For example, if my current pie chart is used to show the sales volume and percentage of various products of the company in, # the value specified by Valy is the sales volume, # percent shows the percentage of sales of various products in total.
Now there is another problem. The sales volume may be a large number, for example, 123456789. In this case, to facilitate identification, we need to add a sub-location.
How can this problem be solved? Originally, keyword also supports formatting strings. Its rules are similar to those in other places. For example:
Chart1.series [0]. Label = "# Valy {N0} [percent]";
You can add a sub-digit to the sales volume and only display the integer.
From: http://blog.csdn.net/gaofeng2000/article/details/3985669
However, I did not use the above method: Later I changed it to: This. chartbusiness. series [0]. label = "# valx # percent {p} # Valy"; OK, but what about kilobytes?
Chart1.series [0]. Label = "# Valy [# percent]";
For example, if my current pie chart is used to show the sales volume and percentage of various products of the company in, # the value specified by Valy is the sales volume, # percent shows the percentage of sales of various products in total.
Now there is another problem. The sales volume may be a large number, for example, 123456789. In this case, to facilitate identification, we need to add a sub-location.
How can this problem be solved? Originally, keyword also supports formatting strings. Its rules are similar to those in other places. For example:
Chart1.series [0]. Label = "# Valy {N0} [percent]";
You can add a sub-digit to the sales volume and only display the integer.
From: http://blog.csdn.net/gaofeng2000/article/details/3985669