Overview
Version
Report Server Version |
---|
11.0 |
Application Scenario
When a pie chart is displayed as a ring-shaped pie chart (after Core is configured), you may want the information such as category names, summary values, or custom text to be displayed in the central blank area for higher chart space utilization.
The Category Label function of the pie chart allows you to display information such as custom text, category names, and summary values in the central blank area of a pie chart.
Function Description
Select the pie chart and choose Style > Label. You can set Value Label and Category Label respectively in three methods.
Common: You can select Category Name and Summary Value to display the built-in data indicators.
Rich Text: You can customize the text content.
Custom: You can customize the text content through codes.
Example
Data Preparation
Create a general report and create a built-in dataset, as shown in the following figure.
Chart Insertion
Merge required cells in a certain area, and insert a pie chart into the area, as shown in the following figure.
Data Binding
Bind the data to the pie chart, as shown in the following figure.
Style Setting
Deselect Show Title under Style > Title, set Position to Top under Style > Legend, and set Core to 80% under Style > Series to realize the ring-shape effect, as shown in the following figure.
Central Label Customizing
Deselect Value in Text in the Value Label setting area. Select Rich Text and set Position to Center in the Category Label setting area (namely displaying the label in the center of the pie chart), as shown in the following figure.
Click Edit Rich Text to enter the Rich Text Editor page, enter Market Share Per Android Version in the editing panel, and set the font style to Custom, as shown in the following figure.
Effect Display
PC
Save the template and click Pagination Preview. The following figure shows the preview effect.
Mobile Terminal
The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the preview effect.
Template Download
For details, you can download the template Label Display in the Center of a Pie Chart.cpt.