ChartView Interface
Consolidates data series of the same type and provides options for their customization.
Namespace: DevExpress.Spreadsheet.Charts
Assembly: DevExpress.Spreadsheet.v19.1.Core.dll
Declaration
Remarks
Each chart has an associated ChartView. This object is created automatically when you create a chart. Chart views are stored in the ChartObject.Views collection.
A chart view consolidates series of the same ChartType. A Chart may contain several views of compatible types. A chart displays views of compatible types simultaneously.
Compatible types are listed below:
- ChartType.Area
- ChartType.AreaFullStacked
- ChartType.AreaStacked
- ChartType.BarClustered
- ChartType.BarFullStacked
- ChartType.BarStacked
- ChartType.ColumnClustered
- ChartType.ColumnFullStacked
- ChartType.ColumnStacked
- ChartType.Line
- ChartType.LineFullStacked
- ChartType.LineFullStackedMarker
- ChartType.LineMarker
- ChartType.LineStacked
- ChartType.LineStackedMarker
If a series of an incompatible type is added to the chart, chart views are re-created. The resulting chart contains only one view of the most recently added type.
Use the ChartView.Series.Add method to add a series of a particular type. The type of the added series is the same as the type of the view to which it is added (determined by the ChartView.ViewType).
The ChartView properties enable you to specify options which are applied to all series within the view.