The Area Chart is represented by the Area3DSeriesView object, which belongs to Area Series Views. This view displays series as filled areas on a diagram, with each data point displayed as a peak or hollow in the area. This view is useful when you need to show trends for several series on the same diagram, and also show the relationship of the parts to the whole.
An Area chart is shown in the image below.

The table below lists the main characteristics of this chart type.
Feature |
Value |
Series View type |
Area3DSeriesView |
Diagram type |
XYDiagram3D |
Number of arguments per series point |
1 |
Number of values per series point |
1 |
The following example demonstrates how to create a ChartControl with a series of the Area3DSeriesView 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.
Then, add the following code to the Form.Load event handler.
C# |
using System;
using System.Windows.Forms;
using DevExpress.XtraCharts;
private void Form1_Load(object sender, EventArgs e) {
ChartControl areaChart3D = new ChartControl();
Series series1 = new Series("Series 1", ViewType.Area3D);
series1.Points.Add(new SeriesPoint("A", 10));
series1.Points.Add(new SeriesPoint("B", 2));
series1.Points.Add(new SeriesPoint("C", 14));
series1.Points.Add(new SeriesPoint("D", 7));
areaChart3D.Series.Add(series1);
((Area3DSeriesView)series1.View).AreaWidth = 5;
((XYDiagram3D)areaChart3D.Diagram).ZoomPercent = 110;
ChartTitle chartTitle1 = new ChartTitle();
chartTitle1.Text = "3D Area Chart";
areaChart3D.Titles.Add(chartTitle1);
areaChart3D.Legend.Visible = false;
areaChart3D.Dock = DockStyle.Fill;
this.Controls.Add(areaChart3D);
}
|
VB |
Imports System
Imports System.Windows.Forms
Imports DevExpress.XtraCharts
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As EventArgs) Handles MyBase.Load
Dim areaChart3D As New ChartControl()
Dim series1 As New Series("Series 1", ViewType.Area3D)
series1.Points.Add(New SeriesPoint("A", 10))
series1.Points.Add(New SeriesPoint("B", 2))
series1.Points.Add(New SeriesPoint("C", 14))
series1.Points.Add(New SeriesPoint("D", 7))
areaChart3D.Series.Add(series1)
CType(series1.View, Area3DSeriesView).AreaWidth = 5
CType(areaChart3D.Diagram, XYDiagram3D).ZoomPercent = 110
Dim chartTitle1 As New ChartTitle()
chartTitle1.Text = "3D Area Chart"
areaChart3D.Titles.Add(chartTitle1)
areaChart3D.Legend.Visible = False
areaChart3D.Dock = DockStyle.Fill
Me.Controls.Add(areaChart3D)
End Sub
|