CDP Data Visualization, enables you to create Pie charts.
Pie charts are circular statistical graphics that show numerical proportion through relative size of slices; the arc length of each slice is proportional to the quantity it represents. In CDP Data Visualization, pie charts use a default 'doughnut' representation. However, you can change them to the more traditional closed pie configuration by controlling the arc width of the circle, as described in Changing arc width.
The following steps demonstrate how to create a new pie visual representation on dataset
Capital Expenditure by Industry. You must first create this dataset,
using the steps described in Creating datasets, from the datafile annual-capital-expenditure-industry.csv. For an
overview of shelves that specify this visual, see Shelves for pie visuals.
Start a new visual based on dataset
Capital Expenditure by Industry. See Creating a visual.
- In the visuals menu, find and click Pie.
- Note that the shelves of the visual changed.
They are now X, Y, Dimensions, Measures, Tooltips, and Filters.
Both Dimensions and Measures are mandatory.
- Populate the shelves from the available fields (Dimensions,
Measures, and so on) in the Data menu.
Under Dimensions, select
industryand drag it over Dimensions shelf on the main part of the screen. Drop to add it to the shelf.
Under Measures, select
expenditureand drag it over Measures shelf on the main part of the screen. Drop to add it to the shelf.
- Under Dimensions, select
- Click Refresh Visual.
The pie visual appears.
- Click (pencil icon) next to the title of the visualization to edit it, and enter the new name.
- Change the title to
Capital Expenditures - Pie.
At the top left corner of the Visual Designer, click
- [Optional] The default arc width is 80.
Adjust the arc width to close the hole in the middle of the 'doughnut': from the visual Settings menu, select the Marks tab, and set Arc Width to
You can also experiment with changing the thickness of the 'doughnut'. The following image
See Changing arc width for details on how to adjust the thickness of the 'doughnut'.
- [Optional] You can adjust the default percentage reporting inside the Tooltip: from the visual
Settings menu, select the Tooltip tab,
and then change the Label for Percentage to Percent of Total
and the Decimals included in percentage to
To remove the default percentage reporting, unselect the default Include percentage of total in tooltip.
See Customizing tooltip.