Exception | Description |
---|---|
System.NotSupportedException | The AxisGroup on which this series currently resides cannot share an axis with a series of this ChartType, and no adjustment could be made to avoid this. |
This property is only applicable for combo charts. Setting this property for any other type of chart causes an exception to be thrown.
Not all ChartType values are supported for series which are plotted within a combo chart. For a list of the supported values, see documentation for the WorksheetChart.SetComboChartSourceData method.
If the value assigned to this property necessitates plotting this series on a different axis than the one referenced by the AxisGroup property, and the other axis can accommodate this series, the AxisGroup property is changed accordingly.
If the other axis cannot accommodate this series, and other series which are of the same series type exist on the same axis, an attempt is made to change the ChartType of those other series. For example, if a different series exists with a ChartType of BarClustered, and a value of BarStacked is assigned to this series, the ChartType of the other series is changed to BarStacked in order to accommodate the setting of the property on this series.
If no adjustment can be made that would allow the ChartType to be changed to the specified value, an exception is thrown.
Note that in all cases, the value of the Type property is automatically changed to a value which is appropriate for the assigned ChartType.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2