DevExpress 饼状图

Pie Chart

Short Description

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.

Chart Type Characteristics

The table below lists the main characteristics of this chart type.

Feature

Value

Series View typePie3DSeriesView
Diagram typeSimpleDiagram3D
Number of arguments per series point1
Number of values per series point1
NoteNote

For information on which chart types can be combined with the Pie Chart, refer to the Combining Different Series Views document.

Example

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事件处理中

C#
VB
using System;
using System.Windows.Forms;
using DevExpress.XtraCharts;
// ...

private void Form1_Load(object sender, EventArgs e) {
    // Create an empty chart.
    ChartControl PieChart3D = new ChartControl();

    // Create a pie series.
    Series series1 = new Series("Pie Series 1", ViewType.Pie3D);

    // Populate the series with points.
    series1.Points.Add(new SeriesPoint("Russia", 17.0752));
    series1.Points.Add(new SeriesPoint("Canada", 9.98467));
    series1.Points.Add(new SeriesPoint("USA", 9.63142));
    series1.Points.Add(new SeriesPoint("China", 9.59696));
    series1.Points.Add(new SeriesPoint("Brazil", 8.511965));
    series1.Points.Add(new SeriesPoint("Australia", 7.68685));
    series1.Points.Add(new SeriesPoint("India", 3.28759));
    series1.Points.Add(new SeriesPoint("Others", 81.2));

    // Add the series to the chart.
    PieChart3D.Series.Add(series1);

    // Adjust the value numeric options of the series.
    series1.PointOptions.ValueNumericOptions.Format = NumericFormat.Percent;
    series1.PointOptions.ValueNumericOptions.Precision = 0;

    // Adjust the view-type-specific options of the series.
    ((Pie3DSeriesView)series1.View).Depth = 30;
    ((Pie3DSeriesView)series1.View).ExplodedPoints.Add(series1.Points[0]);
    ((Pie3DSeriesView)series1.View).ExplodedDistancePercentage = 30;

    // Access the diagram's options.
    ((SimpleDiagram3D)PieChart3D.Diagram).RotationType = RotationType.UseAngles;
    ((SimpleDiagram3D)PieChart3D.Diagram).RotationAngleX = -35;

    // Add a title to the chart and hide the legend.
    ChartTitle chartTitle1 = new ChartTitle();
    chartTitle1.Text = "3D Pie Chart";
    PieChart3D.Titles.Add(chartTitle1);
    PieChart3D.Legend.Visible = false;

    // Add the chart to the form.
    PieChart3D.Dock = DockStyle.Fill;
    this.Controls.Add(PieChart3D);
}

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: DevExpress甘特图是一款专业的项目管理工具,用于跟踪和管理项目进度、资源和时间表的进度。它使用图形化方式显示项目进度的状态,给项目管理者提供了一种直观的方法来查看项目进展情况。 DevExpress甘特图采用了先进的技术和最佳实践,支持多个项目工作时的管理、资源分配、工作流程、进度跟踪和报告生成等功能。它具有强大的编辑、显示、导航和自适应功能,可实现多个分支和级别的功能分解结构,方便管理者进行更准确的资源分配和时间计划。 DevExpress甘特图还支持用户自定义视图、导出报表、数据排序、筛选和过滤。可以横纵向展示各种数据,如任务名称、计划开始时间、计划结束时间、工期、实际开始时间、实际结束时间、进度等。在跟踪项目的进展情况时,项目管理者可以对任务状态进行调整和更新,同时可以实时生成报表以便于监控项目的整体进程。 总之,DevExpress甘特图是一款功能强大、易于使用的项目管理工具,适用于各种规模的项目管理,可以提高管理者的工作效率,使得整个项目的运营更加顺畅和高效。 ### 回答2: DevExpress甘特图是一个强大的项目管理工具,它能够帮助用户管理和跟踪项目进展情况。它结合了日历视图和任务列表视图,用户可以通过简单的拖拽和放置以及一些鼠标点击,轻松地创建和管理任务、里程碑和资源。这一工具还提供了一些高级功能,包括Timeline视图、资源可用性预测、资源级联等。这些功能都能够让使用者更好地了解项目的整体规划和进展,并且能够帮助他们及时调整项目计划,以保证任务能够按时完成。此外,DevEpxress甘特图还支持与其它DevExpress控件的密集集成,如DevExpress Scheduler和 DevExpress Report,因此,它可与其它DevExpress应用程序集成,从而形成一个完整的项目管理解决方案。总而言之,DevExpress甘特图是一种操作方便,易于理解,且功能强大的项目管理工具,它能够帮助用户有效地管理和追踪项目,并且从整体上提高项目管理的效率和准确性。它适用于各种不同类型的项目和团队,需要管理和监管其进展情况的任何领域都可以使用。 ### 回答3: DevExpress甘特图是一款强大的项目管理工具,可以方便地展示项目进度和时间轴。该工具提供了多种视图模式,包括日历、表格和柱状图等,用户可以根据自己的需要选择最适合自己的视图。此外,它还支持多种事件和任务类型,如里程碑、里程表、关键路径和依赖任务等等。这些功能可以帮助用户轻松规划和管理项目计划,并随时监控项目的进展情况。与此同时,它还支持资源分配和资源管理功能,可以帮助用户确定哪些资源可用于特定任务,以及如何优化资源分配,同时确保项目不会超出预算和进度。此外,DevExpress甘特图还提供了各种报表和图表,以便用户能够更好地理解项目状况和状态,以便及时调整计划,以便适应变化的情况。总体而言,DevExpress甘特图是一款强大的项目管理工具,可帮助用户轻松有效地规划、管理和监控项目,以确保其成功完成。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值