Pie chart display according to age range
1. Usage scenarios
When a shopping mall counts the age distribution of members, the age of members is displayed through pie chart. As shown in the figure, due to the large age and different users, therefore, we hope that the age categories in the table can be displayed. For example, there are data from 20 to 50 years old in the table. Now we need to classify and summarize the data according to the age, respectively:
- 20 to 30 years old is a category
- 30 to 40 years old is a category
- 40 to 50 years old is a category
Classified pie chart
2. Procedure
2.1 drag the pie chart to the page to configure the dataset
Add components and configure datasets
2.2 The configuration formula uses casewhen to judge the classification and divides the age into three categories: under 30 years old, between 30 and 40 years old, and over 40 years old.
The formula is as follows:
Set formula
2.3 After the configuration is completed, set the value field to the instance id, set it to count, and then save and view it.
The effect is as follows:
Effect picture
YIDA in order to better optimize the content and quality of YIDA user manual, it takes you 3-5 minutes to fill in the document feedback questionnaire. The document feedback questionnaire is submitted anonymously, and the questionnaire information is only used for YIDA document experience feedback collection. Thank you for your support for YIDA!
-------------------- Get the latest information YIDA, welcome to follow US--------------------