Skip to main content
A newer version of this page is available. .

ViewType Enum

Lists the values used to specify the view type of a series.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

NuGet Packages: DevExpress.Charts, DevExpress.WindowsDesktop.Charts

Declaration

public enum ViewType

Members

Name Description
Bar

Specifies a series view of the Side-by-Side Bar type. This view type is represented by a SideBySideBarSeriesView object.

StackedBar

Specifies a series view of the Stacked Bar type. This view type is represented by a StackedBarSeriesView object.

FullStackedBar

Specifies a series view of the Full-Stacked Bar type. This view type is represented by a FullStackedBarSeriesView object.

SideBySideStackedBar

Specifies a series view of the Side-by-Side Stacked Bar type. This view type is represented by a SideBySideStackedBarSeriesView object.

SideBySideFullStackedBar

Specifies a series view of the Side-by-Side Full-Stacked Bar type. This view type is represented by a SideBySideFullStackedBarSeriesView object.

Pie

Specifies a series view of the Pie type. This view type is represented by a PieSeriesView object.

Doughnut

Specifies a series view of the Doughnut type. This view type is represented by a DoughnutSeriesView object.

NestedDoughnut

Specifies a series view of the Nested Doughnut type. This view type is represented by a NestedDoughnutSeriesView object.

Funnel

Specifies a series view of the Funnel type. This view type is represented by a FunnelSeriesView object.

Point

Specifies a series view of the Point type. This view type is represented by a PointSeriesView object.

Bubble

Specifies a series view of the Bubble type. This view type is represented by a BubbleSeriesView object.

Line

Specifies a series view of the Line type. This view type is represented by a LineSeriesView object.

StackedLine

Specifies a series view of the Stacked Line type. This view type is specified by a StackedLineSeriesView object.

FullStackedLine

Specifies a series view of the Full-Stacked Line type. This view type is specified by a FullStackedLineSeriesView object.

StepLine

Specifies a series view of the Step Line type. This view type is represented by a StepLineSeriesView object.

Spline

Specifies a series view of the Spline type. This view type is represented by a SplineSeriesView object.

ScatterLine

Specifies a series view of the Scatter Line type. This view type is represented by a ScatterLineSeriesView object.

SwiftPlot

Specifies a series view of the Swift Plot type. This view type is represented by a SwiftPlotSeriesView object.

Area

Specifies a series view of the Area type. This view type is represented by a AreaSeriesView object.

StepArea

Specifies a series view of the Step Area type. This view type is specified by a StepAreaSeriesView object.

SplineArea

Specifies a series view of the Spline Area type. This view type is represented by a SplineAreaSeriesView object.

StackedArea

Specifies a series view of the Stacked Area type. This view type is represented by a StackedAreaSeriesView object.

StackedStepArea

Specifies a series view of the Stacked Step Area type. This view type is represented by a StackedStepAreaSeriesView object.

StackedSplineArea

Specifies a series view of the Stacked Spline Area type. This view type is represented by a StackedSplineAreaSeriesView object.

FullStackedArea

Specifies a series view of the Full Stacked Area type. This view type is represented by a FullStackedAreaSeriesView object.

FullStackedSplineArea

Specifies a series view of the Full-Stacked Spline Area type. This view type is represented by a FullStackedSplineAreaSeriesView object.

FullStackedStepArea

Specifies a series view of the Full-Stacked Step Area type. This view type is represented by a FullStackedStepAreaSeriesView object.

RangeArea

Specifies a series view of the Range Area type. This view type is specified by a RangeAreaSeriesView object.

Stock

Specifies a series view of the Stock type. This view type is represented by a StockSeriesView object.

CandleStick

Specifies a series view of the Candle Stick type. This view type is represented by a CandleStickSeriesView object.

SideBySideRangeBar

Specifies a series view of the Side-by-Side Range Bar type. This view type is represented by a SideBySideRangeBarSeriesView object.

RangeBar

Specifies a series view of the Range Bar type. This view type is represented by a RangeBarSeriesView object.

SideBySideGantt

Specifies a series view of the Side-by-Side Gantt type. This view type is represented by a SideBySideGanttSeriesView object.

Gantt

Specifies a series view of the Gantt type. This view type is represented by a GanttSeriesView object.

PolarPoint

Specifies a series view of the Polar Point type. This view type is represented by a PolarPointSeriesView object.

PolarLine

Specifies a series view of the Polar Line type. This view type is represented by a PolarLineSeriesView object.

ScatterPolarLine

Specifies a series view of the polar scatter line type. This view type is represented by a ScatterPolarLineSeriesView object.

PolarArea

Specifies a series view of the Polar Area type. This view type is represented by a PolarAreaSeriesView object.

PolarRangeArea

Specifies a series view of the Polar Range Area Chart type. This view type is represented by a PolarRangeAreaSeriesView object.

RadarPoint

Specifies a series view of the Radar Point type. This view type is represented by a RadarPointSeriesView object.

RadarLine

Specifies a series view of the Radar Line type. This view type is represented by a RadarLineSeriesView object.

ScatterRadarLine

Specifies a series view of the radar scatter line type. This view type is represented by a ScatterRadarLineSeriesView object.

RadarArea

Specifies a series view of the Radar Area type. This view type is represented by a RadarAreaSeriesView object.

RadarRangeArea

Specifies a series view of the Radar Range Area Chart type. This view type is represented by a RadarRangeAreaSeriesView object.

Bar3D

Specifies a series view of the Side-by-Side Bar 3D type. This view type is represented by a SideBySideBar3DSeriesView object.

StackedBar3D

Specifies a series view of the Stacked Bar 3D type. This view type is represented by a StackedBar3DSeriesView object.

FullStackedBar3D

Specifies a series view of the Full-Stacked Bar 3D type. This view type is represented by a FullStackedBar3DSeriesView object.

ManhattanBar

Specifies a series view of the Manhattan Bar 3D type. This view type is represented by a ManhattanBarSeriesView object.

SideBySideStackedBar3D

Specifies a series view of the 3D Side-by-Side Stacked Bar type. This view type is represented by a SideBySideStackedBar3DSeriesView object.

SideBySideFullStackedBar3D

Specifies a series view of the 3D Side-by-Side Full-Stacked Bar type. This view type is represented by a SideBySideFullStackedBar3DSeriesView object.

Pie3D

Specifies a series view of the Pie 3D type. This view type is represented by a Pie3DSeriesView object.

Doughnut3D

Specifies a series view of the Doughnut 3D type. This view type is represented by a Doughnut3DSeriesView object.

Funnel3D

Specifies a series view of the Funnel 3D type. This view type is represented by a Funnel3DSeriesView object.

Line3D

Specifies a series view of the Line 3D type. This view type is represented by a Line3DSeriesView object.

StackedLine3D

Specifies a series view of the Stacked Line 3D type. This view type is specified by a StackedLine3DSeriesView object.

FullStackedLine3D

Specifies a series view of the Full-Stacked Line 3D type. This view type is specified by a FullStackedLine3DSeriesView object.

StepLine3D

Specifies a series view of the Step Line 3D type. This view type is represented by a StepLine3DSeriesView object.

Area3D

Specifies a series view of the Area 3D type. This view type is represented by a Area3DSeriesView object.

StackedArea3D

Specifies a series view of the Stacked Area 3D type. This view type is represented by a StackedArea3DSeriesView object.

FullStackedArea3D

Specifies a series view of the Full-Stacked Area 3D type. This view type is represented by a FullStackedArea3DSeriesView object.

StepArea3D

Specifies a series view of the Step Area 3D type. This view type is specified by a StepArea3DSeriesView object.

Spline3D

Specifies a series view of the Spline 3D type. This view type is represented by a Spline3DSeriesView object.

SplineArea3D

Specifies a series view of the Spline Area 3D type. This view type is represented by a SplineArea3DSeriesView object.

StackedSplineArea3D

Specifies a series view of the Stacked Spline Area 3D type. This view type is represented by a StackedSplineArea3DSeriesView object.

FullStackedSplineArea3D

Specifies a series view of the Full-Stacked Spline Area 3D type. This view type is represented by a FullStackedSplineArea3DSeriesView object.

RangeArea3D

Specifies a series view of the Range Area 3D type. This view type is specified by a RangeArea3DSeriesView object.

BoxPlot

Specifies the Box Plot series view type. The BoxPlotSeriesView class represents this series type.

Waterfall

Specifies the Waterfall series view type. The WaterfallSeriesView class represents this series 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.

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);
        }

    }
}
See Also