Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates a new [Series|Series] that is automatically added to the [SeriesCollection|SeriesCollection].{excerpt}
{signature:C#}
 public Series CreateSeries(System.String valueFormula, ChartType chartType, AxisType axisType)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreateSeries(ByVal valueFormula As String, ByVal chartType As ChartType, ByVal axisType As AxisType) As Series
Parameters

...

A formula representing the cells that contain the source data for the new series.

...

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.

...

Specifies whether the series will be associated with the primary or secondary axis.

Returns

A Series object representing the new data series.

Exceptions
Exception
ArgumentExceptionArgumentExceptionThe 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.
{signature}
{parameters}
{param:valueFormula}A formula representing the cells that contain the source data for the new series.{param}
{param: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.{param}
{param:axisType}Specifies whether the series will be associated with the primary or secondary axis.{param}
{returns}A {{Series}} object representing the new data series.{returns}
{exceptions}
{exception: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.
{exception}