I. Overview
1) A pie chart uses the area of the sectors to represent the proportion of a value to the total.
2) The pie chart is designed for two-dimensional data such as a category field and a continuous data field. Pie charts are ideal choices for users who pay more attention to proportions.
3) The advantage of using a pie chart is that it provides an intuitive view of the proportion of each part in the whole. However, it is not suitable for presenting large datasets (multiple categories) or negative values in the data items, and becomes indistinguishable in case of similar proportions.
4) Suggested Reading: Chart Data, Chart Style, Chart Special Effects
You will learn |
---|
|
II. Steps
1. Data preparation
1) Create a new general report and a new dataset ds1
2) Use the default data connection FRDemo. The data query statement is as follows:
SELECT Category_name, SUM(Inventory_quantity) AS kc FROM Product,Category
WHERE Product.CategoryID=Category.CategoryID AND Category_name!="Daily necessities"
GROUP BY Category_name
2. Select and insert a chart
1) This document describes how to insert a pie chart by taking [Cell Element]-[Insert Cell Element] as an example.
Click [Cell Element] on the right panel and choose [Insert Chart(C)] from [Insert Cell Element].
The [Chart Type] window pops up. Then click [Pie Chart] on the left.
Click on the first type of [Pie Chart] on the right.
Click on [OK], and a pie chart is inserted successfully.
2) After inserting a pie chart as a cell or a floating element, you can select three sub-types from the Type Settings under the Attribute panel on the right, as shown in the following diagram:
Pie Chart, Rose Chart (Same Radians) and Rose Chart (Different Radians).
Pie Chart: In general, a pie chart compares the sizes of data based on the area of each data.
Rose Chart (Same Radians)
Same Radians: Radians that can overlap in the same circle or equal circles.
A sector is neat and beautiful as it has an equal radian.
Rose Chart (Different Radians)
Different Radians: Radians that cannot overlap in the same circle or equal circles.
A sector is intuitive as the difference of the various areas of a fan can be clearly seen.
3. Component Design
1) Create a new Dashboard.
2) Drag and drop the three pie charts to the Body component and set them into three different sub-types: [Pie Chart], [Rose Chart(Same Radians)], and [Rose Chart(Different Radians)].
3) Adjust their positional relationship, as shown in the diagram below:
4. Data Binding
1) The three sub-types share the same binding method. Below take chart1 as an example.
2) Click on [Data], and select [Dataset data] in [Data source]. Select [ds1] for [Dataset].
3) Select [Enable Field Value] from [Series Name From] by default.
4) Select [Category_name] for [series] and [kc] for [Value].
5) Set [Summary Method] to [None].
5. Style Setting
1) Only the titles of the three pie charts needs to be changed. For other settings, keep the default ones of the general Chart Style. Take Rose Chart (Different Radians) as an example.
2) Select [Style]-[Title], and edit [Text] in [Content]. Type in 'Rose Chart(Different Radians)’.
6. Preview
The style of the three pie charts is as follows.