Page tree

Versions Compared

Key

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

Excerpt

Sets or returns the ChartType the series is displayed as.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns the [{{ChartType}}|ChartType] the series is displayed as.{excerpt}
{signature:C#}
 public ChartType ChartType{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property ChartType() As ChartType
Remarks
Unless otherwise
{signature}
{remarks}
Unless otherwise specified, all series created on a chart will inherit the {{ChartType}} of that chart.


Note that depending on the configuration of the rest of the chart, it may not be possible to set the {{ChartType}} of a series to any {{ChartType}} without error.  For an overview of valid series configurations, see the remarks on the [{{SeriesCollection}}|SeriesCollection] class.  If you need to change both the {{ChartType}} and the [{{AxisType}}|Series.AxisType] of a series at once in order to maintain a valid configuration, see the [{{Series.ChangeConfiguration
method.
Exceptions
Exception
ArgumentExceptionArgumentExceptionThe rules for what series can coexist on a chart are described under SeriesCollection. If these rules would be violated by changing the chart type to the specified value, an ArgumentException will be thrown. Depending on the current series that are in your chart, you may need to change the chart type to a different ChartType or remove some existing series before calling this method in order to ensure that the rules described in SeriesCollection are adhered to.
}}|Series.ChangeConfiguration(ChartType, AxisType)] method.
{remarks}
{exceptions}
{exception:ArgumentException}The rules for what series can coexist on a chart are described under [{{SeriesCollection}}|SeriesCollection]. If these rules would be violated by changing the chart type to the specified value, an ArgumentException will be thrown. Depending on the current series that are in your chart, you may need to change the chart type to a different {{ChartType}} or remove some existing series before calling this method in order to ensure that the rules described in [SeriesCollection] are adhered to.
{exception}