.NET 4.0 Generics
上QQ阅读APP看书,第一时间看更新

Using the pie chart

The pie chart is circular chart divided in one or more slices. Each slice represents the proportion of a value to the total of all values. Pie charts can be used to show the impact of a value in contrast to other values or the grand total. However, it may be hard to compare the size of slices within a pie chart when there are more than three slices, or across other pie charts. Therefore, if you need to compare data, we recommend using the bar chart instead.

Getting ready

Open a new Dashboard Design file and enter the data into the spreadsheet, as shown in the following screenshot:

How to do it...

  1. Drag a Pie Chart component onto the canvas.
  2. Bind the Values field to spreadsheet cells B5 through B7.
  3. Bind the Labels field to cells A5 through A7.
  4. Bind the Chart field to cell A1 and the Subtitle field to cell B2.
  5. Preview the dashboard.

How it works...

We bound the fields from the General tab to the data in the spreadsheet making this chart to show the three labels and the according portions of the total in a pie. Obviously, the pie chart component cannot use multiple series of data like the line chart component and other chart components.