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

Description

Creates a new Series that is automatically added to the SeriesCollection.

C#
vb.net

Parameters

valueFormula
A formula representing the cells that contain the source data for the new series.
chartType
The type of series to add. The method will throw an exception if the specified type is not compatible with an existing series type in the chart.
axisType
Specifies whether the series will be associated with the primary or secondary axis.

Returns

A Series object representing the new data series.

Exceptions

ArgumentException
The rules for creating series are described under SeriesCollection. If these rules would be violated by creating this series, then an ArgumentException will be thrown and the series will not be created. You will instead need to specify a ChartType and AxisType that are consistent with the rules for creating series.
  • No labels