In this topic you will set some of the properties to add data to the PieChart.
- Select View | Properties Window in the Visual Studio menu.
- Click the drop-down list at the top of the Properties window and select PieChart.
- Expand the Header node and enter Steam-Mac Hardware next to the Text property.
- Open the C1PieChart Tasks menu. The PieChartSeries Collection Editor appears.
- Click Add five times to add five members.
- Select a member and set the following properties for the PieChartSeries:
Member |
Label |
Data |
0 |
MacBook Pro |
46.78 |
1 |
iMac |
23.18 |
2 |
MacBook |
20.25 |
3 |
Mac Pro |
5.41 |
4 |
Mac mini |
3.44 |
- Click OK to close the PieChartSeries Collection Editor and appply the changes to the C1PieChart.
Now run the project to see the Pie chart.
See Also