PB pie chart creation process

Source: Internet
Author: User

1. Graphic datawindow data source (data) settings. Set category to a data Category field and value to a data value field. The series parameter is left blank without any information.

2. Graphic datawindow display information (text) settings. Set legend to the data category name and pie grahp lables to the data proportion information.

Practical example: statistical information on equipment defects of a power plant. The Data Category field is special_code. The data values include turbine, boiler, electrician, thermal engineering, chemistry, and flue gas. The data value field is special_num.

3. Set the display expression of legend: Case (category when '01 'then' turbine 'when' 02 'then' boiler 'when' 03 'then' electric 'when' 04 'then' thermal 'when' 05 'then 'chemistry 'when' 06 'then' flue gas 'else' undefined ').To control the display information on the left.

4. Set the percentage information displayed in the pie chart by pie graph labels. Set display expression:If (seriescount> 1, Series, string (percentofseries, "0.00%") +Case (category when '01 'then' turbine 'when' 02 'then' boiler 'when' 03 'then' electric 'when' 04 'then' thermal 'when' 05 'then 'chemistry 'when' 06 'then' flue gas 'else' undefined '))  . WhereIf (seriescount> 1, Series, string (percentofseries, "0.00% ")Default Information.If (seriescount> 1, Series, string (percentofseries, "0.00% ") + case (category when '01 'then' turbine 'when' 02 'then' boiler 'when' 03 'then' electric 'when' 04 'then' thermal 'when' 05' then 'chemistry 'when' 06 'then' flue gas 'else' undefined '))For instructions, it is manually added. The basic settings of the pie chart are complete.

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.