Modifica

Condividi tramite


Series Class

Definition

Represents the data points and series attributes to store.

public ref class Series : System::Windows::Forms::DataVisualization::Charting::DataPointCustomProperties
public class Series : System.Windows.Forms.DataVisualization.Charting.DataPointCustomProperties
type Series = class
    inherit DataPointCustomProperties
Public Class Series
Inherits DataPointCustomProperties
Inheritance

Remarks

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.

Constructors

Series()

Initializes a new instance of the Series class.

Series(String, Int32)

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

Series(String)

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

Properties

AxisLabel

Gets or sets the axis label text for the series.

BackGradientStyle

Gets or sets the background gradient style.

(Inherited from DataPointCustomProperties)
BackHatchStyle

Gets or sets the background hatching style.

(Inherited from DataPointCustomProperties)
BackImage

Gets or sets the background image of the data point.

(Inherited from DataPointCustomProperties)
BackImageAlignment

Gets or sets the alignment of the background image, which is used with the Unscaled drawing mode.

(Inherited from DataPointCustomProperties)
BackImageTransparentColor

Gets or sets a color that will be replaced with a transparent color when the background image is drawn.

(Inherited from DataPointCustomProperties)
BackImageWrapMode

Gets or sets the drawing mode of the background image.

(Inherited from DataPointCustomProperties)
BackSecondaryColor

Gets or sets the secondary background color.

(Inherited from DataPointCustomProperties)
BorderColor

Gets or sets the border color of the data point.

(Inherited from DataPointCustomProperties)
BorderDashStyle

Gets or sets the border style of the data point.

(Inherited from DataPointCustomProperties)
BorderWidth

Gets or sets the border width of the data point.

(Inherited from DataPointCustomProperties)
ChartArea

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

ChartType

Gets or sets the chart type of a series.

ChartTypeName

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

Color

Gets or sets the color of the data point.

(Inherited from DataPointCustomProperties)
CustomProperties

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)
CustomPropertiesExtended

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)
EmptyPointStyle

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

Enabled

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

Font

Gets or sets the font of the data point.

(Inherited from DataPointCustomProperties)
IsValueShownAsLabel

Gets or sets a flag that indicates whether to show the value of the data point on the label.

(Inherited from DataPointCustomProperties)
IsVisibleInLegend

Gets or sets a flag that indicates whether the item is shown in the legend.

(Inherited from DataPointCustomProperties)
IsXValueIndexed

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

Item[Int32]

Gets the DataPointCustomProperties object by its position in the index.

(Inherited from DataPointCustomProperties)
Item[String]

Gets or sets the DataPointCustomProperties object by name.

(Inherited from DataPointCustomProperties)
Label

Gets or sets the text of the data point label.

(Inherited from DataPointCustomProperties)
LabelAngle

Gets or sets the angle of the data point label.

(Inherited from DataPointCustomProperties)
LabelBackColor

Gets or sets the background color of the data point label.

(Inherited from DataPointCustomProperties)
LabelBorderColor

Gets or sets the border color of the data point label.

(Inherited from DataPointCustomProperties)
LabelBorderDashStyle

Gets or sets the border style of the label.

(Inherited from DataPointCustomProperties)
LabelBorderWidth

Gets or sets the border width of the label.

(Inherited from DataPointCustomProperties)
LabelForeColor

Gets or sets the text color of the label.

(Inherited from DataPointCustomProperties)
LabelFormat

Gets or sets the format of the data point label.

(Inherited from DataPointCustomProperties)
LabelToolTip

Gets or sets the tooltip for the data point label.

(Inherited from DataPointCustomProperties)
Legend

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

LegendText

Gets or sets the text of the item in the legend.

(Inherited from DataPointCustomProperties)
LegendToolTip

Gets or sets the tooltip of the item in the legend.

(Inherited from DataPointCustomProperties)
MarkerBorderColor

Gets or sets the border color of the marker.

(Inherited from DataPointCustomProperties)
MarkerBorderWidth

Gets or sets the border width of the marker.

(Inherited from DataPointCustomProperties)
MarkerColor

Gets or sets the marker color.

(Inherited from DataPointCustomProperties)
MarkerImage

Gets or sets the marker image.

(Inherited from DataPointCustomProperties)
MarkerImageTransparentColor

Gets or sets the color that will be replaced with a transparent color when the marker image is drawn.

(Inherited from DataPointCustomProperties)
MarkerSize

Gets or sets the size of the marker.

(Inherited from DataPointCustomProperties)
MarkerStep

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

MarkerStyle

Gets or sets the marker style.

(Inherited from DataPointCustomProperties)
Name

Gets or sets the unique name of a Series object.

Palette

Gets or sets the color palette of a Series object.

Points

Gets a collection of data points.

ShadowColor

Gets or sets the shadow color of a series.

ShadowOffset

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

SmartLabelStyle

Gets or sets the style of the smart labels.

Tag

Gets or sets an object associated with this chart element.

(Inherited from ChartElement)
ToolTip

Gets or sets the tooltip.

(Inherited from DataPointCustomProperties)
XAxisType

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

XValueMember

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

XValueType

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

YAxisType

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

YValueMembers

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

YValuesPerPoint

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

YValueType

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

Methods

DeleteCustomProperty(String)

Deletes the data point custom property with the specified name.

(Inherited from DataPointCustomProperties)
Dispose()

Releases the resources used by the ChartElement.

(Inherited from ChartElement)
Dispose(Boolean)

Releases the unmanaged resources used by the Series and optionally releases the managed resources.

Equals(Object)

Determines whether the specified Object is equal to the current ChartElement.

(Inherited from ChartElement)
GetCustomProperty(String)

Returns the data point custom property with the specified name.

(Inherited from DataPointCustomProperties)
GetHashCode()

Returns a hash function for a particular type.

(Inherited from ChartElement)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsCustomPropertySet(String)

Determines whether a custom property with the specified name was set.

(Inherited from DataPointCustomProperties)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResetIsValueShownAsLabel()

Resets a custom property to its default value.

(Inherited from DataPointCustomProperties)
ResetIsVisibleInLegend()

Resets a custom property to its default value.

(Inherited from DataPointCustomProperties)
SetCustomProperty(String, String)

Sets a custom property of the data point.

(Inherited from DataPointCustomProperties)
SetDefault(Boolean)

Sets the default properties of the data point. Indicates whether the previous property values must be cleared.

(Inherited from DataPointCustomProperties)
Sort(IComparer<DataPoint>)

Sorts the points in the series using IComparer interface.

Sort(PointSortOrder, String)

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

Sort(PointSortOrder)

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

ToString()

Returns a string that represents the current Object.

(Inherited from ChartElement)

Applies to