Version

About Composite Charts

The icon used to represent this chart type in the ChartType drop-down in Visual Studio's properties window.

The composite chart type can be used to combine an infinite number of chart types, axes, chart areas, and legends. It is very flexible and offers few limitations.

Example of a Composite Chart.

The composite chart is also more complex and more difficult to learn than any other type of chart. It is highly recommended that you plan the design of a composite chart before writing any code.

To create a simple composite chart:

  1. Add at least one ChartArea to the ChartAreas collection.

  2. Populate each ChartArea’s Axes collection with axes to plot data on.

  3. Populate the Series collection with data.

  4. Add at least one ChartLayer to the ChartLayers collection.

  5. Set the ChartLayer’s ChartArea property to an existing ChartArea (from step 1) and set the ChartLayer’s AxisX and AxisY properties to existing axes (from step 2) if necessary.

  6. Add the Series (from step 3) to the ChartLayer’s Series collection.