Series Class
TOC
Collapse the table of content
Expand the table of content

Series Class

.NET Framework (current version)
 

Represents the data points and series attributes to store.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)


public class Series : DataPointCustomProperties

NameDescription
System_CAPS_pubmethodSeries()

Initializes a new instance of the Series class.

System_CAPS_pubmethodSeries(String)

Initializes a new instance of the Series class with the specified series name.

System_CAPS_pubmethodSeries(String, Int32)

Initializes a new instance of the Series class with the specified name and maximum number of Y-values.

NameDescription
System_CAPS_pubpropertyAxisLabel

Gets or sets the axis label text for the series.(Overrides DataPointCustomProperties.AxisLabel.)

System_CAPS_pubpropertyBackGradientStyle

Gets or sets the background gradient style.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBackHatchStyle

Gets or sets the background hatching style.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBackImage

Gets or sets the background image of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBackImageAlignment

Gets or sets the alignment of the background image, which is used with the Unscaled drawing mode.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBackImageTransparentColor

Gets or sets a color that will be replaced with a transparent color when the background image is drawn.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBackImageWrapMode

Gets or sets the drawing mode of the background image.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBackSecondaryColor

Gets or sets the secondary background color.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBorderColor

Gets or sets the border color of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBorderDashStyle

Gets or sets the border style of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyBorderWidth

Gets or sets the border width of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyChartArea

Gets or sets the name of the ChartArea object used to plot the data series, if any.

System_CAPS_pubpropertyChartType

Gets or sets the chart type of a series.

System_CAPS_pubpropertyChartTypeName

Gets or sets the name of the chart type used to draw the series.

System_CAPS_pubpropertyColor

Gets or sets the color of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyCustomProperties

Gets 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.)

System_CAPS_pubpropertyCustomPropertiesExtended

Gets or sets the extended custom properties of the data point. Extended custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2...(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyEmptyPointStyle

Gets or sets the drawing style of points marked as empty.

System_CAPS_pubpropertyEnabled

Gets or sets a flag that indicates whether the series will be visible on the rendered chart.

System_CAPS_pubpropertyFont

Gets or sets the font of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyIsValueShownAsLabel

Gets or sets a flag that indicates whether to show the value of the data point on the label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyIsVisibleInLegend

Gets or sets a flag that indicates whether the item is shown in the legend.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyIsXValueIndexed

Gets or sets a flag that indicates whether data point indices will be used for the X-values.

System_CAPS_pubpropertyItem[Int32]

Gets the DataPointCustomProperties object by its position in the index.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyItem[String]

Gets or sets the DataPointCustomProperties object by name.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabel

Gets or sets the text of the data point label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelAngle

Gets or sets the angle of the data point label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelBackColor

Gets or sets the background color of the data point label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelBorderColor

Gets or sets the border color of the data point label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelBorderDashStyle

Gets or sets the border style of the label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelBorderWidth

Gets or sets the border width of the label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelForeColor

Gets or sets the text color of the label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelFormat

Gets or sets the format of the data point label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLabelToolTip

Gets or sets the tooltip for the data point label.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLegend

Gets or sets the name of the series associated with the Legend object.

System_CAPS_pubpropertyLegendText

Gets or sets the text of the item in the legend.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyLegendToolTip

Gets or sets the tooltip of the item in the legend.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerBorderColor

Gets or sets the border color of the marker.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerBorderWidth

Gets or sets the border width of the marker.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerColor

Gets or sets the marker color.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerImage

Gets or sets the marker image.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerImageTransparentColor

Gets or sets the color that will be replaced with a transparent color when the marker image is drawn.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerSize

Gets or sets the size of the marker.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyMarkerStep

Gets or sets a value that determines how often to display data point markers.

System_CAPS_pubpropertyMarkerStyle

Gets or sets the marker style.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyName

Gets or sets the unique name of a Series object.(Overrides ChartNamedElement.Name.)

System_CAPS_pubpropertyPalette

Gets or sets the color palette of a Series object.

System_CAPS_pubpropertyPoints

Gets a collection of data points.

System_CAPS_pubpropertyShadowColor

Gets or sets the shadow color of a series.

System_CAPS_pubpropertyShadowOffset

Gets or sets the shadow offset, in pixels, of a series.

System_CAPS_pubpropertySmartLabelStyle

Gets or sets the style of the smart labels.

System_CAPS_pubpropertyTag

Gets or sets an object associated with this chart element.(Inherited from ChartElement.)

System_CAPS_pubpropertyToolTip

Gets or sets the tooltip.(Inherited from DataPointCustomProperties.)

System_CAPS_pubpropertyXAxisType

Gets or sets the X-axis type of the series.

System_CAPS_pubpropertyXValueMember

Gets or sets the member of the chart data source used to data bind to the X-value of the series.

System_CAPS_pubpropertyXValueType

Gets or sets the value types plotted along the X-axis.

System_CAPS_pubpropertyYAxisType

Gets or sets the Y-axis type of a series.

System_CAPS_pubpropertyYValueMembers

Gets or sets member columns of the chart data source used to bind data to the Y-values of the series.

System_CAPS_pubpropertyYValuesPerPoint

Gets or sets the maximum number of Y-values that DataPoint objects in a Series are allowed to have.

System_CAPS_pubpropertyYValueType

Gets or sets the type of Y-value data in the data points stored by a series.

NameDescription
System_CAPS_pubmethodDeleteCustomProperty(String)

Deletes the data point custom property with the specified name.(Inherited from DataPointCustomProperties.)

System_CAPS_pubmethodDispose()

Releases the resources used by the ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the Series and optionally releases the managed resources.(Overrides ChartElement.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetCustomProperty(String)

Returns the data point custom property with the specified name.(Inherited from DataPointCustomProperties.)

System_CAPS_pubmethodGetHashCode()

Returns a hash function for a particular type.(Inherited from ChartElement.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIsCustomPropertySet(String)

Determines whether a custom property with the specified name was set.(Inherited from DataPointCustomProperties.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodResetIsValueShownAsLabel()

Resets a custom property to its default value.(Inherited from DataPointCustomProperties.)

System_CAPS_pubmethodResetIsVisibleInLegend()

Resets a custom property to its default value.(Inherited from DataPointCustomProperties.)

System_CAPS_pubmethodSetCustomProperty(String, String)

Sets a custom property of the data point.(Inherited from DataPointCustomProperties.)

System_CAPS_pubmethodSetDefault(Boolean)

Sets the default properties of the data point. Indicates whether the previous property values must be cleared.(Inherited from DataPointCustomProperties.)

System_CAPS_pubmethodSort(IComparer<DataPoint>)

Sorts the points in the series using IComparer interface.

System_CAPS_pubmethodSort(PointSortOrder)

Sorts the data points in the series, given the specified sort order.

System_CAPS_pubmethodSort(PointSortOrder, String)

Sorts the points in the series, given the specified sort order and value to use for the sort.

System_CAPS_pubmethodToString()

Returns a string that represents the current Object.(Inherited from ChartElement.)

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
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft