Series View Compatibility
- 3 minutes to read
This document describes certain limitations which should be taken into account in order to plot series of different view types together onto the same chart control.
With the WinForms Chart Control it is possible to combine several series of different view types into a single chart, and show all of them simultaneously. For instance, you may combine bars and lines together, or even show the candle stick chart on the same diagram as shown in the images below.
However, the following constraint is imposed on the view types of series, in order to plot them together:
Note
Series of different view types can be plotted within the same diagram, if their view types support the same diagram type.
Furthermore, the type of a chart’s diagram is determined by the view type of the first visible series in the chart’s collection. And, the Diagram object is equal to null (Nothing in Visual Basic) until the chart has at least one series.
Therefore, it’s impossible to plot 2D and 3D series within the same chart, and for example, a Pie series together with a Bar series: their diagram types are different, so you can only plot two independent chart controls side-by-side.
The following image demonstrates two charts with different diagram types (XY-Diagram and XY-Diagram 3D). And, each chart contains series of different view types, adapted for this diagram type.
The following table lists the available diagram types, and series view types they support.
For more detailed information on each diagram type, refer to the corresponding document in the Diagram Types section of this help.
Note
Auto-executable sample projects on combining either 2D or 3D series view types are available in the DevExpress Code Central database, and you can download them at How to combine several charts on a single 2D XY-diagram and How to combine several charts on a single 3D XY-diagram.