Page tree
Skip to end of metadata
Go to start of metadata

Description

Changes the ChartType and AxisType of the series at the same time.

C#
vb.net

Parameters

type
A ChartType value.
axisType
An AxisType value.

Remarks

Certain combinations of series do not allow the ChartType and AxisType to be modified sequentially. For example, if a chart contains two pies on the primary axis and a line on the secondary, you cannot change the chart or axis type of a pie unless the changes are simultaneous.

For an overview of valid series configurations, see the remarks on the SeriesCollection class.

Exceptions

ArgumentException
The rules for what series can coexist on a chart are described under SeriesCollection. If these rules would be violated by changing the configuration to the specified values, an ArgumentException will be thrown. Depending on the current series that are in your chart, you may need to change the configuration to a different AxisType, ChartType, or remove some existing series before calling this method, in order to ensure that the rules described in SeriesCollection are adhered to.
  • No labels