Series 类

定义

存储数据点和序列特性。Stores data points and series attributes.

public ref class Series : System::Web::UI::DataVisualization::Charting::DataPointCustomProperties
public class Series : System.Web.UI.DataVisualization.Charting.DataPointCustomProperties
type Series = class
    inherit DataPointCustomProperties
Public Class Series
Inherits DataPointCustomProperties
继承

注解

对象表示数据序列并存储SeriesCollection在类中。 SeriesA Series object represents a data series and is stored in the SeriesCollection class.

DataPoint使用SeriesDataPointCollection来存储对象。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.

属于DataPoint一个序列的对象也有其自己的属性。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. 例如, 绘制的序列 A 可能是将 Series B 和 C 系列数据点相加的结果, 但这两个序列都不会进行绘制。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. 若要绘制Series对象ChartArea , 必须将属性设置ChartArea为用于绘制序列的对象的名称。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.

当创建一个序列时, 它会自动分配给名ChartArea为 "default" 的对象, 如果 "默认" 对象不存在, 则自动将其分配给图表区域集合中的第一个可用图表区域。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.

若要禁用序列的显示, 请将其ChartArea属性设置为长度为零的字符串。To disable the display of a series, set its ChartArea property to a zero-length string.

如果绘制此序列,属性将确定用于绘制此序列的图表类型。ChartTypeThe ChartType property determines the type of chart that will be used to plot this series, if it is drawn.

构造函数

Series()

初始化 Series 类的新实例。Initializes a new instance of the Series class.

Series(String)

使用指定的系列名称初始化 Series 类的新实例。Initializes a new instance of the Series class with the specified series name.

Series(String, Int32)

使用指定的名称和最大数目的 Y 值初始化 Series 类的新实例。Initializes a new instance of the Series class with the specified name and maximum number of Y values.

属性

AxisLabel

获取或设置序列的轴标签文本。Gets or sets the axis label text for the series.

BackGradientStyle

获取或设置背景渐变样式。Gets or sets the background gradient style.

(继承自 DataPointCustomProperties)
BackHatchStyle

获取或设置背景阴影样式。Gets or sets the background hatching style.

(继承自 DataPointCustomProperties)
BackImage

获取或设置数据点的背景图像。Gets or sets the background image of the data point.

(继承自 DataPointCustomProperties)
BackImageAlignment

获取或设置用于 Unscaled 绘制模式的背景图像对齐方式。Gets or sets the alignment of the background image, which is used with the Unscaled drawing mode.

(继承自 DataPointCustomProperties)
BackImageTransparentColor

获取或设置在绘制背景图像时,将替换为透明色的颜色。Gets or sets a color that will be replaced with a transparent color when the background image is drawn.

(继承自 DataPointCustomProperties)
BackImageWrapMode

获取或设置背景图像的绘制模式。Gets or sets the drawing mode of the background image.

(继承自 DataPointCustomProperties)
BackSecondaryColor

获取或设置辅助背景色。Gets or sets the secondary background color.

(继承自 DataPointCustomProperties)
BorderColor

获取或设置数据点的边框颜色。Gets or sets the border color of the data point.

(继承自 DataPointCustomProperties)
BorderDashStyle

获取或设置数据点的边框样式。Gets or sets the border style of the data point.

(继承自 DataPointCustomProperties)
BorderWidth

获取或设置数据点的边框宽度。Gets or sets the border width of the data point.

(继承自 DataPointCustomProperties)
ChartArea

获取或设置用于绘制数据系列的 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.

(继承自 DataPointCustomProperties)
CustomProperties

获取或设置数据点的自定义属性。Gets or sets the custom properties of the data point. 可按以下格式指定自定义属性:AttrName1=Value1, AttrName2=Value2, ...Custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2, ...

(继承自 DataPointCustomProperties)
CustomPropertiesExtended

获取或设置数据点的扩展的自定义属性。Gets or sets the extended custom properties of the data point.

(继承自 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.

(继承自 DataPointCustomProperties)
IsValueShownAsLabel

获取或设置一个标志,该标志指示是否在标签上显示数据点的值。Gets or sets a flag that indicates whether to show the value of the data point on the label.

(继承自 DataPointCustomProperties)
IsVisibleInLegend

获取或设置一个标志,该标志指示是否在图例中显示项。Gets or sets a flag that indicates whether the item is shown in the legend.

(继承自 DataPointCustomProperties)
IsXValueIndexed

获取或设置一个标志,指示数据点索引是否用于 X 值。Gets or sets a flag that indicates whether data point indices will be used for the X-values.

Item[Int32]

DataPointCustomProperties 对象在集合中的位置获取该对象。Gets the DataPointCustomProperties object by its position in the collection.

(继承自 DataPointCustomProperties)
Item[String]

按名称获取或设置 DataPointCustomProperties 对象。Gets or sets the DataPointCustomProperties object by name.

(继承自 DataPointCustomProperties)
Label

获取或设置数据点标签的文本。Gets or sets the text of the data point label.

(继承自 DataPointCustomProperties)
LabelAngle

获取或设置数据点标签的角度。Gets or sets the angle of the data point label.

(继承自 DataPointCustomProperties)
LabelBackColor

获取或设置数据点标签的背景色。Gets or sets the background color of the data point label.

(继承自 DataPointCustomProperties)
LabelBorderColor

获取或设置数据点标签的边框颜色。Gets or sets the border color of the data point label.

(继承自 DataPointCustomProperties)
LabelBorderDashStyle

获取或设置标签的边框样式。Gets or sets the border style of the label.

(继承自 DataPointCustomProperties)
LabelBorderWidth

获取或设置标签边框的宽度。Gets or sets the width of the label border.

(继承自 DataPointCustomProperties)
LabelForeColor

获取或设置标签的文本颜色。Gets or sets the text color of the label.

(继承自 DataPointCustomProperties)
LabelFormat

获取或设置数据点标签的格式。Gets or sets the format of the data point label.

(继承自 DataPointCustomProperties)
LabelMapAreaAttributes

获取或设置数据点标签的映射区特性。Gets or sets the map area attributes of the data point label.

(继承自 DataPointCustomProperties)
LabelPostBackValue

获取或设置在发生 Click 事件时,可以处理的回发值。Gets or sets the postback value which can be processed on a Click event.

(继承自 DataPointCustomProperties)
LabelToolTip

获取或设置数据点标签的工具提示。Gets or sets the tooltip for the data point label.

(继承自 DataPointCustomProperties)
LabelUrl

获取或设置数据点标签的 URL 目标。Gets or sets the URL target of the data point label.

(继承自 DataPointCustomProperties)
Legend

获取或设置与 Legend 对象关联的系列的名称。Gets or sets the name of the series associated with the Legend object.

LegendMapAreaAttributes

获取或设置图例映射区的特性。Gets or sets the attributes of the legend map area.

(继承自 DataPointCustomProperties)
LegendPostBackValue

获取或设置在发生 Click 事件时,可以处理的回发值。Gets or sets the postback value which can be processed on a Click event.

(继承自 DataPointCustomProperties)
LegendText

获取或设置图例中项的文本。Gets or sets the text of the item in the legend.

(继承自 DataPointCustomProperties)
LegendToolTip

获取或设置图例中项的工具提示。Gets or sets the tooltip of the item in the legend.

(继承自 DataPointCustomProperties)
LegendUrl

获取或设置图例中项的 URL 目标。Gets or sets the URL target of the item in the legend.

(继承自 DataPointCustomProperties)
MapAreaAttributes

获取或设置数据点的映射区特性。Gets or sets the map area attributes of a data point.

(继承自 DataPointCustomProperties)
MarkerBorderColor

获取或设置标记的边框颜色。Gets or sets the border color of the marker.

(继承自 DataPointCustomProperties)
MarkerBorderWidth

获取或设置标记的边框宽度。Gets or sets the border width of the marker.

(继承自 DataPointCustomProperties)
MarkerColor

获取或设置标记颜色。Gets or sets the marker color.

(继承自 DataPointCustomProperties)
MarkerImage

获取或设置标记图像。Gets or sets the marker image.

(继承自 DataPointCustomProperties)
MarkerImageTransparentColor

获取或设置在绘制标记图像时,将替换为透明色的颜色。Gets or sets the color that will be replaced with a transparent color when the marker image is drawn.

(继承自 DataPointCustomProperties)
MarkerSize

获取或设置标记的大小。Gets or sets the size of the marker.

(继承自 DataPointCustomProperties)
MarkerStep

获取或设置一个值,该值确定显示数据点标记的频率。Gets or sets a value that determines how often to display data point markers.

MarkerStyle

获取或设置标记样式。Gets or sets the marker style.

(继承自 DataPointCustomProperties)
Name

获取或设置 Series 对象的唯一名称。Gets or sets the unique name of a Series object.

Palette

获取或设置 Series 对象的调色板。Gets or sets the color palette of a Series object.

Points

获取 DataPointCollection 对象。Gets a DataPointCollection object.

PostBackValue

获取或设置在发生 Click 事件时,可以处理的回发值。Gets or sets the postback value that can be processed on a Click event.

(继承自 DataPointCustomProperties)
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.

(继承自 ChartElement)
ToolTip

获取或设置数据点的工具提示。Gets or sets the tooltip of the data point.

(继承自 DataPointCustomProperties)
Url

获取或设置区域的 URL 目标。Gets or sets the URL target of the area.

(继承自 DataPointCustomProperties)
XAxisType

获取或设置序列的 X 轴类型。Gets or sets the X-axis type of the series.

XValueMember

获取或设置用于将数据绑定到系列的 X 值的图表数据源成员列。Gets or sets the member column of the chart data source used to data bind to the X-value of the series.

XValueType

获取或设置沿 X 轴绘制的值类型。Gets or sets the value types plotted along the X-axis.

YAxisType

获取或设置序列的 Y 轴类型。Gets or sets the Y-axis type of a series.

YValueMembers

获取或设置要用于将数据绑定到序列 Y 值的图表数据源的成员列。Gets or sets member columns of the chart data source used to bind data to the Y-values of the series.

YValuesPerPoint

获取或设置 DataPoint 中的 Series 对象最多可拥有的 Y 值数。Gets or sets the maximum number of Y-values that DataPoint objects in a Series are allowed to have.

YValueType

获取或设置序列所存储的数据点中的 Y 值数据类型。Gets or sets the type of Y-value data in the data points stored by a series.

方法

DeleteCustomProperty(String)

删除具有指定名称的数据点自定义属性。Deletes the data point custom property with the specified name.

(继承自 DataPointCustomProperties)
Dispose()

释放由 ChartElement 占用的资源。Releases the resources used by the ChartElement.

(继承自 ChartElement)
Dispose(Boolean)

释放由 Series 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the Series and optionally releases the managed resources.

Equals(Object)

确定指定的 Object 是否等同于当前的 ChartElementDetermines whether the specified Object is equal to the current ChartElement.

(继承自 ChartElement)
GetCustomProperty(String)

返回具有指定名称的数据点自定义属性。Returns the data point custom property with the specified name.

(继承自 DataPointCustomProperties)
GetHashCode()

返回特定类型的哈希算法。Returns a hash function for a particular type.

(继承自 ChartElement)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IsCustomPropertySet(String)

确定是否已设置具有指定名称的自定义属性。Determines whether a custom property with the specified name was set.

(继承自 DataPointCustomProperties)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ResetIsValueShownAsLabel()

IsValueShownAsLabel 属性重置为其默认值。Resets the IsValueShownAsLabel property to its default value.

(继承自 DataPointCustomProperties)
ResetIsVisibleInLegend()

IsVisibleInLegend 属性重置为其默认值。Resets the IsVisibleInLegend property to its default value.

(继承自 DataPointCustomProperties)
SetCustomProperty(String, String)

设置数据点的自定义属性。Sets a custom property of the data point.

(继承自 DataPointCustomProperties)
SetDefault(Boolean)

设置数据点的默认属性。Sets the default properties of the data point. 指示是否必须清除以前的属性值。Indicates whether the previous property values must be cleared.

(继承自 DataPointCustomProperties)
Sort(IComparer<DataPoint>)

使用 IComparer 接口对序列中的点进行排序。Sorts the points in the series using IComparer interface.

Sort(PointSortOrder)

使用指定排序顺序对序列中的数据点进行排序。Sorts the data points in the series, given the specified sort order.

Sort(PointSortOrder, String)

使用要用于排序的指定排序顺序和值对序列中的数据点进行排序。Sorts the points in the series, given the specified sort order and value to use for the sort.

ToString()

返回表示当前 Object 的字符串。Returns a string that represents the current Object.

(继承自 ChartElement)

适用于