Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Series Class

Stores data points and series attributes.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)
public class Series : DataPointCustomProperties

The Series type exposes the following members.

  NameDescription
Public methodSeries()Initializes a new instance of the Series class.
Public methodSeries(String)Initializes a new instance of the Series class with the specified series name.
Public methodSeries(String, Int32)Initializes a new instance of the Series class with the specified name and maximum number of Y values.
Top
  NameDescription
Public propertyAxisLabelGets or sets the axis label text for the series. (Overrides DataPointCustomProperties.AxisLabel.)
Public propertyBackGradientStyleGets or sets the background gradient style. (Inherited from DataPointCustomProperties.)
Public propertyBackHatchStyleGets or sets the background hatching style. (Inherited from DataPointCustomProperties.)
Public propertyBackImageGets or sets the background image of the data point. (Inherited from DataPointCustomProperties.)
Public propertyBackImageAlignmentGets or sets the alignment of the background image, which is used with the Unscaled drawing mode. (Inherited from DataPointCustomProperties.)
Public propertyBackImageTransparentColorGets or sets a color that will be replaced with a transparent color when the background image is drawn. (Inherited from DataPointCustomProperties.)
Public propertyBackImageWrapModeGets or sets the drawing mode of the background image. (Inherited from DataPointCustomProperties.)
Public propertyBackSecondaryColorGets or sets the secondary background color. (Inherited from DataPointCustomProperties.)
Public propertyBorderColorGets or sets the border color of the data point. (Inherited from DataPointCustomProperties.)
Public propertyBorderDashStyleGets or sets the border style of the data point. (Inherited from DataPointCustomProperties.)
Public propertyBorderWidthGets or sets the border width of the data point. (Inherited from DataPointCustomProperties.)
Public propertyChartAreaGets or sets the name of the ChartArea object used to plot the data series, if any.
Public propertyChartTypeGets or sets the chart type of a series.
Public propertyChartTypeNameGets or sets the name of the chart type used to draw the series.
Public propertyColorGets or sets the color of the data point. (Inherited from DataPointCustomProperties.)
Public propertyCustomPropertiesGets or sets the custom properties of the data point. Custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2 … (Inherited from DataPointCustomProperties.)
Public propertyCustomPropertiesExtendedInfrastructure. Gets or sets the extended custom properties of the data point. (Inherited from DataPointCustomProperties.)
Public propertyEmptyPointStyleGets or sets the drawing style of points marked as empty.
Public propertyEnabledGets or sets a flag that indicates whether the series will be visible on the rendered chart.
Public propertyFontGets or sets the font of the data point. (Inherited from DataPointCustomProperties.)
Public propertyIsValueShownAsLabelGets or sets a flag that indicates whether to show the value of the data point on the label. (Inherited from DataPointCustomProperties.)
Public propertyIsVisibleInLegendGets or sets a flag that indicates whether the item is shown in the legend. (Inherited from DataPointCustomProperties.)
Public propertyIsXValueIndexedGets or sets a flag that indicates whether data point indices will be used for the X-values.
Public propertyItem[Int32]Gets the DataPointCustomProperties object by its position in the collection. (Inherited from DataPointCustomProperties.)
Public propertyItem[String]Gets or sets the DataPointCustomProperties object by name. (Inherited from DataPointCustomProperties.)
Public propertyLabelGets or sets the text of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelAngleGets or sets the angle of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelBackColorGets or sets the background color of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelBorderColorGets or sets the border color of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelBorderDashStyleGets or sets the border style of the label. (Inherited from DataPointCustomProperties.)
Public propertyLabelBorderWidthGets or sets the width of the label border. (Inherited from DataPointCustomProperties.)
Public propertyLabelForeColorGets or sets the text color of the label. (Inherited from DataPointCustomProperties.)
Public propertyLabelFormatGets or sets the format of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelMapAreaAttributesGets or sets the map area attributes of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelPostBackValueGets or sets the postback value which can be processed on a Click event. (Inherited from DataPointCustomProperties.)
Public propertyLabelToolTipGets or sets the tooltip for the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLabelUrlGets or sets the URL target of the data point label. (Inherited from DataPointCustomProperties.)
Public propertyLegendGets or sets the name of the series associated with the Legend object.
Public propertyLegendMapAreaAttributesGets or sets the attributes of the legend map area. (Inherited from DataPointCustomProperties.)
Public propertyLegendPostBackValueGets or sets the postback value which can be processed on a Click event. (Inherited from DataPointCustomProperties.)
Public propertyLegendTextGets or sets the text of the item in the legend. (Inherited from DataPointCustomProperties.)
Public propertyLegendToolTipGets or sets the tooltip of the item in the legend. (Inherited from DataPointCustomProperties.)
Public propertyLegendUrlGets or sets the URL target of the item in the legend. (Inherited from DataPointCustomProperties.)
Public propertyMapAreaAttributesGets or sets the map area attributes of a data point. (Inherited from DataPointCustomProperties.)
Public propertyMarkerBorderColorGets or sets the border color of the marker. (Inherited from DataPointCustomProperties.)
Public propertyMarkerBorderWidthGets or sets the border width of the marker. (Inherited from DataPointCustomProperties.)
Public propertyMarkerColorGets or sets the marker color. (Inherited from DataPointCustomProperties.)
Public propertyMarkerImageGets or sets the marker image. (Inherited from DataPointCustomProperties.)
Public propertyMarkerImageTransparentColorGets or sets the color that will be replaced with a transparent color when the marker image is drawn. (Inherited from DataPointCustomProperties.)
Public propertyMarkerSizeGets or sets the size of the marker. (Inherited from DataPointCustomProperties.)
Public propertyMarkerStepGets or sets a value that determines how often to display data point markers.
Public propertyMarkerStyleGets or sets the marker style. (Inherited from DataPointCustomProperties.)
Public propertyNameGets or sets the unique name of a Series object. (Overrides ChartNamedElement.Name.)
Public propertyPaletteGets or sets the color palette of a Series object.
Public propertyPointsGets a DataPointCollection object.
Public propertyPostBackValueGets or sets the postback value that can be processed on a Click event. (Inherited from DataPointCustomProperties.)
Public propertyShadowColorGets or sets the shadow color of a series.
Public propertyShadowOffsetGets or sets the shadow offset, in pixels, of a series.
Public propertySmartLabelStyleGets or sets the style of the smart labels.
Public propertyTagGets or sets an object associated with this chart element. (Inherited from ChartElement.)
Public propertyToolTipGets or sets the tooltip of the data point. (Inherited from DataPointCustomProperties.)
Public propertyUrlGets or sets the URL target of the area. (Inherited from DataPointCustomProperties.)
Public propertyXAxisTypeGets or sets the X-axis type of the series.
Public propertyXValueMemberGets or sets the member column of the chart data source used to data bind to the X-value of the series.
Public propertyXValueTypeGets or sets the value types plotted along the X-axis.
Public propertyYAxisTypeGets or sets the Y-axis type of a series.
Public propertyYValueMembersGets or sets member columns of the chart data source used to bind data to the Y-values of the series.
Public propertyYValuesPerPointGets or sets the maximum number of Y-values that DataPoint objects in a Series are allowed to have.
Public propertyYValueTypeGets or sets the type of Y-value data in the data points stored by a series.
Top
  NameDescription
Public methodDeleteCustomPropertyDeletes the data point custom property with the specified name. (Inherited from DataPointCustomProperties.)
Public methodDispose()Releases the resources used by the ChartElement. (Inherited from ChartElement.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Series and optionally releases the managed resources. (Overrides ChartElement.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified Object is equal to the current ChartElement. (Inherited from ChartElement.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCustomPropertyReturns the data point custom property with the specified name. (Inherited from DataPointCustomProperties.)
Public methodGetHashCodeReturns a hash function for a particular type. (Inherited from ChartElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsCustomPropertySetDetermines whether a custom property with the specified name was set. (Inherited from DataPointCustomProperties.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResetIsValueShownAsLabelResets the IsValueShownAsLabel property to its default value. (Inherited from DataPointCustomProperties.)
Public methodResetIsVisibleInLegendResets the IsVisibleInLegend property to its default value. (Inherited from DataPointCustomProperties.)
Public methodSetCustomPropertySets a custom property of the data point. (Inherited from DataPointCustomProperties.)
Public methodSetDefaultSets the default properties of the data point. Indicates whether the previous property values must be cleared. (Inherited from DataPointCustomProperties.)
Public methodSort(IComparer<DataPoint>)Sorts the points in the series using IComparer interface.
Public methodSort(PointSortOrder)Sorts the data points in the series, given the specified sort order.
Public methodSort(PointSortOrder, String)Sorts the points in the series, given the specified sort order and value to use for the sort.
Public methodToStringReturns a string that represents the current Object. (Inherited from ChartElement.)
Top

A Series object represents a data series and is stored in the SeriesCollection class.

A Series stores DataPoint objects using the DataPointCollection class. It also stores attributes of the data series. For example, a data series has a color attribute, background image attribute, background gradient attribute, and so forth.

The DataPoint objects that belong to a series also have their own attributes. Normally, if the same attribute is set for a data point and the series to which it belongs, the data point attribute has precedence.

A series is not necessarily plotted on a chart; it can store data point values that are used to perform a calculation from which another series is created and then plotted. For example, Series A, which is plotted, may be the result of adding Series B and Series C data points together, though neither of these series is plotted. In order to draw a Series object, the ChartArea property must be set to the name of the ChartArea object used to plot the series.

When a series is created, it is automatically assigned to the ChartArea object named "Default", or to the first available chart area in the chart area collection if the "Default" object does not exist.

To disable the display of a series, set its ChartArea property to a zero-length string.

The ChartType property determines the type of chart that will be used to plot this series, if it is drawn.

.NET Framework

Supported in: 4.5.1, 4.5, 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.