The Pie Chart is represented by the Pie3DSeriesView object, which belongs to Pie, Doughnut and Funnel Series Views. This view is useful when it's necessary to compare the percentage values of different point arguments in the same series, and to illustrate these values as easy to understand pie slices. In addition, the 3D look makes it possible to rotate a chart to position pie slices in an attractive and easy-to-understand way.
A Pie chart is shown in the image below.
The table below lists the main characteristics of this chart type.
Feature |
Value |
---|---|
Series View type | Pie3DSeriesView |
Diagram type | SimpleDiagram3D |
Number of arguments per series point | 1 |
Number of values per series point | 1 |
Note |
---|
For information on which chart types can be combined with the Pie Chart, refer to the Combining Different Series Views document. |
The following example demonstrates how to create a ChartControl with a series of the Pie3DSeriesView type, set its general properties, and add this chart to a form at runtime. Before proceeding with this example, first create a Windows Forms Application in Visual Studio, and include all necessary assemblies to the References list of your project.
使用ChartControl创建饼图,使用序列集类型为Pie3DSeriesView,设置通用属性,并添加图表到运行时。在运行例子之前,首先新建窗体应用程序,并添加需要的程序集到引用列表。
Then, add the following code to the Form.Load event handler.添加如下代码到Form.Load事件处理中
|
||||||
using System; |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The complete sample project is available in the DevExpress Code Central database at http://www.devexpress.com/example=E1028. Depending on the target platform type (ASP.NET, WinForms, etc), you can either run this example online or download an auto-executable sample.