ViewType Enum
Lists the values used to specify the view type of a series.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
#Members
Name | Description |
---|---|
Bar
|
Specifies a series view of the Side-by-Side Bar type. This view type is represented by a Side |
Stacked
|
Specifies a series view of the Stacked Bar type. This view type is represented by a Stacked |
Full
|
Specifies a series view of the Full-Stacked Bar type. This view type is represented by a Full |
Side
|
Specifies a series view of the Side-by-Side Stacked Bar type. This view type is represented by a Side |
Side
|
Specifies a series view of the Side-by-Side Full-Stacked Bar type. This view type is represented by a Side |
Pie
|
Specifies a series view of the Pie type. This view type is represented by a Pie |
Doughnut
|
Specifies a series view of the Doughnut type. This view type is represented by a Doughnut |
Nested
|
Specifies a series view of the Nested Doughnut type. This view type is represented by a Nested |
Funnel
|
Specifies a series view of the Funnel type. This view type is represented by a Funnel |
Point
|
Specifies a series view of the Point type. This view type is represented by a Point |
Bubble
|
Specifies a series view of the Bubble type. This view type is represented by a Bubble |
Line
|
Specifies a series view of the Line type. This view type is represented by a Line |
Stacked
|
Specifies a series view of the Stacked Line type. This view type is specified by a Stacked |
Full
|
Specifies a series view of the Full-Stacked Line type. This view type is specified by a Full |
Step
|
Specifies a series view of the Step Line type. This view type is represented by a Step |
Spline
|
Specifies a series view of the Spline type. This view type is represented by a Spline |
Scatter
|
Specifies a series view of the Scatter Line type. This view type is represented by a Scatter |
Swift
|
Specifies a series view of the Swift Plot type. This view type is represented by a Swift |
Area
|
Specifies a series view of the Area type. This view type is represented by a Area |
Step
|
Specifies a series view of the Step Area type. This view type is specified by a Step |
Spline
|
Specifies a series view of the Spline Area type. This view type is represented by a Spline |
Stacked
|
Specifies a series view of the Stacked Area type. This view type is represented by a Stacked |
Stacked
|
Specifies a series view of the Stacked Step Area type. This view type is represented by a Stacked |
Stacked
|
Specifies a series view of the Stacked Spline Area type. This view type is represented by a Stacked |
Full
|
Specifies a series view of the Full Stacked Area type. This view type is represented by a Full |
Full
|
Specifies a series view of the Full-Stacked Spline Area type. This view type is represented by a Full |
Full
|
Specifies a series view of the Full-Stacked Step Area type. This view type is represented by a Full |
Range
|
Specifies a series view of the Range Area type. This view type is specified by a Range |
Stock
|
Specifies a series view of the Stock type. This view type is represented by a Stock |
Candle
|
Specifies a series view of the Candle Stick type. This view type is represented by a Candle |
Side
|
Specifies a series view of the Side-by-Side Range Bar type. This view type is represented by a Side |
Range
|
Specifies a series view of the Range Bar type. This view type is represented by a Range |
Side
|
Specifies a series view of the Side-by-Side Gantt type. This view type is represented by a Side |
Gantt
|
Specifies a series view of the Gantt type. This view type is represented by a Gantt |
Polar
|
Specifies a series view of the Polar Point type. This view type is represented by a Polar |
Polar
|
Specifies a series view of the Polar Line type. This view type is represented by a Polar |
Scatter
|
Specifies a series view of the polar scatter line type. This view type is represented by a Scatter |
Polar
|
Specifies a series view of the Polar Area type. This view type is represented by a Polar |
Polar
|
Specifies a series view of the Polar Range Area Chart type. This view type is represented by a Polar |
Radar
|
Specifies a series view of the Radar Point type. This view type is represented by a Radar |
Radar
|
Specifies a series view of the Radar Line type. This view type is represented by a Radar |
Scatter
|
Specifies a series view of the radar scatter line type. This view type is represented by a Scatter |
Radar
|
Specifies a series view of the Radar Area type. This view type is represented by a Radar |
Radar
|
Specifies a series view of the Radar Range Area Chart type. This view type is represented by a Radar |
Bar3D
|
Specifies a series view of the Side-by-Side Bar 3D type. This view type is represented by a Side |
Stacked
|
Specifies a series view of the Stacked Bar 3D type. This view type is represented by a Stacked |
Full
|
Specifies a series view of the Full-Stacked Bar 3D type. This view type is represented by a Full |
Manhattan
|
Specifies a series view of the Manhattan Bar 3D type. This view type is represented by a Manhattan |
Side
|
Specifies a series view of the 3D Side-by-Side Stacked Bar type. This view type is represented by a Side |
Side
|
Specifies a series view of the 3D Side-by-Side Full-Stacked Bar type. This view type is represented by a Side |
Pie3D
|
Specifies a series view of the Pie 3D type. This view type is represented by a Pie3DSeries |
Doughnut3D
|
Specifies a series view of the Doughnut 3D type. This view type is represented by a Doughnut3DSeries |
Funnel3D
|
Specifies a series view of the Funnel 3D type. This view type is represented by a Funnel3DSeries |
Line3D
|
Specifies a series view of the Line 3D type. This view type is represented by a Line3DSeries |
Stacked
|
Specifies a series view of the Stacked Line 3D type. This view type is specified by a Stacked |
Full
|
Specifies a series view of the Full-Stacked Line 3D type. This view type is specified by a Full |
Step
|
Specifies a series view of the Step Line 3D type. This view type is represented by a Step |
Area3D
|
Specifies a series view of the Area 3D type. This view type is represented by a Area3DSeries |
Stacked
|
Specifies a series view of the Stacked Area 3D type. This view type is represented by a Stacked |
Full
|
Specifies a series view of the Full-Stacked Area 3D type. This view type is represented by a Full |
Step
|
Specifies a series view of the Step Area 3D type. This view type is specified by a Step |
Spline3D
|
Specifies a series view of the Spline 3D type. This view type is represented by a Spline3DSeries |
Spline
|
Specifies a series view of the Spline Area 3D type. This view type is represented by a Spline |
Stacked
|
Specifies a series view of the Stacked Spline Area 3D type. This view type is represented by a Stacked |
Full
|
Specifies a series view of the Full-Stacked Spline Area 3D type. This view type is represented by a Full |
Range
|
Specifies a series view of the Range Area 3D type. This view type is specified by a Range |
Box
|
Specifies the Box Plot series view type. The Box |
Waterfall
|
Specifies the Waterfall series view type. The Waterfall |
Swift
|
Specifies a series view of the Swift Point type. |
#Related API Members
The following properties accept/return ViewType values:
#Remarks
The values listed by this enumeration can be used to set the SeriesBase.ChangeView method’s parameter.
Note that a particular view type may correspond to a different numeric value from one product version to another.
#Example
The following example demonstrates how to create a ChartControl with two series of the SideBySideBarSeriesView type, 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.
Note
A complete sample project is available at https://github.
using System;
using System.Windows.Forms;
using DevExpress.XtraCharts;
// ...
namespace SideBySideBar2D {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
// Create an empty chart.
ChartControl sideBySideBarChart = new ChartControl();
// Create the first side-by-side bar series and add points to it.
Series series1 = new Series("Side-by-Side Bar Series 1", ViewType.Bar);
series1.Points.Add(new SeriesPoint("A", 10));
series1.Points.Add(new SeriesPoint("B", 12));
series1.Points.Add(new SeriesPoint("C", 14));
series1.Points.Add(new SeriesPoint("D", 17));
// Create the second side-by-side bar series and add points to it.
Series series2 = new Series("Side-by-Side Bar Series 2", ViewType.Bar);
series2.Points.Add(new SeriesPoint("A", 15));
series2.Points.Add(new SeriesPoint("B", 18));
series2.Points.Add(new SeriesPoint("C", 25));
series2.Points.Add(new SeriesPoint("D", 33));
// Add the series to the chart.
sideBySideBarChart.Series.Add(series1);
sideBySideBarChart.Series.Add(series2);
// Hide the legend (if necessary).
sideBySideBarChart.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False;
// Rotate the diagram (if necessary).
((XYDiagram)sideBySideBarChart.Diagram).Rotated = true;
// Add a title to the chart (if necessary).
ChartTitle chartTitle1 = new ChartTitle();
chartTitle1.Text = "Side-by-Side Bar Chart";
sideBySideBarChart.Titles.Add(chartTitle1);
// Add the chart to the form.
sideBySideBarChart.Dock = DockStyle.Fill;
this.Controls.Add(sideBySideBarChart);
}
}
}