[Mschart] keyword formatting in control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.