New to Telerik ReportingStart a free 30-day trial

Series

Definition

Constructors

Creates a new instance of ChartSeries class.

C#
public ChartSeries()

Creates a new instance of ChartSeries class.

C#
public ChartSeries(ChartSeriesCollection parent)
Parameters:parentChartSeriesCollection

Parent of series

Creates a new instance of ChartSeries class.

C#
public ChartSeries(string seriesName, ChartSeriesType chartSeriesType, ChartSeriesCollection parent, ChartYAxisType yAxisType, StyleSeries style, string dataYColumn, string dataXColumn, string dataYColumn2, string dataXColumn2, string dataYColumn3, string dataYColumn4, string dataLabelsColumn)
Parameters:seriesNamestring

Name of series

chartSeriesTypeChartSeriesType

Type of series

parentChartSeriesCollection

Parent of series

yAxisTypeChartYAxisType

YAxisType(Primary or Secondary)

styleStyleSeries

Style of series

dataYColumnstring

DataSource column that is used to data-bind to the series YValue

dataXColumnstring

DataSource column that is used to data-bind to the series XValue

dataYColumn2string

DataSource column that is used to data-bind to the series YValue2

dataXColumn2string

DataSource column that is used to data-bind to the series XValue2

dataYColumn3string

DataSource column that is used to data-bind to the series YValue3

dataYColumn4string

DataSource column that is used to data-bind to the series YValue4

dataLabelsColumnstring

DataSource column (member) that will be used as ChartSeries names source when Y-values are taken from one column for a several chart ChartSeries

Creates a new instance of ChartSeries class.

C#
public ChartSeries(string seriesName, ChartSeriesType chartSeriesType, ChartSeriesCollection parent, ChartYAxisType yAxisType, StyleSeries style)
Parameters:seriesNamestring

Name of series

chartSeriesTypeChartSeriesType

Type of series

parentChartSeriesCollection

Parent of series

yAxisTypeChartYAxisType

YAxisType(Primary or Secondary)

styleStyleSeries

Style of series

Creates a new instance of ChartSeries class.

C#
public ChartSeries(string name, ChartSeriesType type, ChartSeriesCollection parent)
Parameters:namestring

Name of series

typeChartSeriesType

Type of series

parentChartSeriesCollection

Parent of series

Creates a new instance of ChartSeries class with given name and type.

C#
public ChartSeries(string name, ChartSeriesType type)
Parameters:namestring

Name of series

typeChartSeriesType

Type of series

Creates a new instance of ChartSeries class with given name

C#
public ChartSeries(string name)
Parameters:namestring

Name of series

Properties

Default attributes for series items' active regions

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string ActiveRegionAttributes { get; set; }

Default tooltip for series items' active regions

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string ActiveRegionToolTip { get; set; }

Default url for series items' active regions

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string ActiveRegionUrl { get; set; }

Specifies the visual appearance of series items.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public StyleSeries Appearance { get; }

Gets or sets the name of the DataSource column (member) that will be used as ChartSeries names source when Y-values are taken from one column for a several chart ChartSeries

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataLabelsColumn { get; set; }

Gets or sets the name of the DataSource column (member) that is used to data-bind to the series X-value

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataXColumn { get; set; }

Gets or sets the name of the DataSource column (member) that is used to data-bind to the series X2-value

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataXColumn2 { get; set; }

Gets or sets the name of the DataSource column (member) that is used to data-bind to the series Y-value

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataYColumn { get; set; }

Gets or sets the name of the DataSource column (member) that is used to data-bind to the series Y2-value

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataYColumn2 { get; set; }

Gets or sets the name of the DataSource column (member) that is used to data-bind to the series Y3-value (High for CandleStick chart).

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataYColumn3 { get; set; }

Gets or sets the name of the DataSource column (member) that is used to data-bind to the series Y4-value (Low for CandleStick chart).

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DataYColumn4 { get; set; }

Specifies the default value for the series items labels.

C#
[Browsable(true)]
public string DefaultLabelValue { get; set; }

Current series index in the series collection

C#
[Bindable(false)]
[Browsable(false)]
public int Index { get; }

Returns whether there is an active region associated with the series.

C#
[Browsable(false)]
public bool IsActiveRegionSet { get; }

Determines whether the series is configured as data bound or not.

C#
[Browsable(false)]
public bool IsDataBound { get; }

Gets a collection of series items.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public ChartSeriesItemsCollection Items { get; }

Name

string

Gets or sets the name of the data series.

C#
public string Name { get; set; }

Parent element

C#
[Browsable(false)]
public ChartSeriesCollection Parent { get; }

Plot area element for series drawing

C#
[Browsable(false)]
public ChartPlotArea PlotArea { get; }

Gets or sets a ChartSeries SeriesItem object at the specified index.

C#
[Browsable(false)]
public ChartSeriesItem this[int itemIndex] { get; set; }
Parameters:itemIndexint

Gets or sets the type of the series.

C#
public ChartSeriesType Type { get; set; }

Specifies whether to render the series or not.

C#
public bool Visible { get; set; }

Y Axis used by series

C#
public ChartYAxisType YAxisType { get; set; }

Methods

Adds a series item(s) to the series.

C#
public void AddItem(ChartSeriesItem seriesItem, params ChartSeriesItem[] seriesItems)
Parameters:seriesItemChartSeriesItem

Item to add

seriesItemsChartSeriesItem[]

Items to add

Adds a series item(s) to the series.

C#
public void AddItem(ChartSeriesItem[] seriesItems)
Parameters:seriesItemsChartSeriesItem[]

Items to add

Adds a series item(s) to the series.

C#
public void AddItem(ChartSeriesItemsCollection seriesItems)
Parameters:seriesItemsChartSeriesItemsCollection

Items to add

Adds a new series item to the data series by specifying its value, label, color and explosion.

C#
public void AddItem(double value, string label, Color color, bool exploded)
Parameters:valuedouble

YValue of new item

labelstring

Label of new item

colorColor

Color of new item

explodedbool

If item is exploded

Adds a new series item to the data series by specifying its value, label and color.

C#
public void AddItem(double value, string label, Color color)
Parameters:valuedouble

YValue of new item

labelstring

Label of new item

colorColor

Color of new item

Adds a new series item to the data series by specifying its value and label.

C#
public void AddItem(double value, string label)
Parameters:valuedouble

YValue of new item

labelstring

Label of new item

Adds a new series item to the data series by specifying its value.

C#
public void AddItem(double value)
Parameters:valuedouble

YValue of new item

Adds a series item(s) to the series.

C#
public void AddItem(List<ChartSeriesItem> seriesItems)
Parameters:seriesItemsList<ChartSeriesItem>

Items to add

Clears all series items from the data series.

C#
public void Clear()

Removes data binding links from series

C#
public void ClearDataBoundState()

Return new ChartSeries instance with copied all properties from source object and cloned Items collection

C#
public ChartSeries CloneSeries()
Returns:

ChartSeries

New instance of ChartSeries with copied fields

Copies settings from given series

C#
protected void CopyFrom(ChartSeries originalSeries)
Parameters:originalSeriesChartSeries

Series to copy from

Copies series items from given series

C#
protected void CopyItems(ChartSeries originalSeries)
Parameters:originalSeriesChartSeries

Series that items should be copied

Releases unmanaged and - optionally - managed resources

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides: StateManagedObject.Dispose(bool)

Load ViewState

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

ViewState with data

Overrides: StateManagedObject.LoadViewState(object)

Removes a series item(s) from the series.

C#
public void RemoveItem(ChartSeriesItem seriesItem, params ChartSeriesItem[] seriesItems)
Parameters:seriesItemChartSeriesItem

Item for removing

seriesItemsChartSeriesItem[]

Items for removing

Removes a series item(s) from the series.

C#
public void RemoveItem(int index, params int[] indexes)
Parameters:indexint

Index of item should be removed

indexesint[]

Indexes of items should be removed

Removes the SeriesItem object at the specified index.

C#
public void RemoveItem(int itemIndex)
Parameters:itemIndexint

Index to remove

Save Track ViewState

C#
protected override object SaveViewState()
Returns:

object

Object data as array

Overrides: StateManagedObject.SaveViewState()

Sets new colors to the items in the data series.

C#
public void SetColors(params Color[] colors)
Parameters:colorsColor[]

New colors

Sets exploded statuses to the items in the data series.

C#
public void SetExplodes(params bool[] explodes)
Parameters:explodesbool[]

New exploded values

Sets a new color to the series item at the specified index.

C#
public void SetItemColor(int itemIndex, Color newColor)
Parameters:itemIndexint

Index of item to change color

newColorColor

New color of item

Sets a new explode status for the series item at the specified index.

C#
public void SetItemExplode(int itemIndex, bool exploded)
Parameters:itemIndexint

Index of item

explodedbool

Shoul be exploded or not

Sets a new label for the series item at the specified index.

C#
public void SetItemLabel(int itemIndex, string newLabel)
Parameters:itemIndexint

Index of item to change label

newLabelstring

New label

Sets new SeriesItems objects to the data series.

C#
public void SetItems(params ChartSeriesItem[] seriesItems)
Parameters:seriesItemsChartSeriesItem[]

New Items to replace old items in series

Sets a new value for the series item at the specified index.

C#
public void SetItemValue(int itemIndex, double newValue)
Parameters:itemIndexint

Index of item to change YValue

newValuedouble

New YValue

Sets new labels to the items in the data series.

C#
public void SetLabels(params string[] labels)
Parameters:labelsstring[]

New labels

Sets new values to the data series by passing an array of real values. Old values are cleared.

C#
public void SetValues(params double[] values)
Parameters:valuesdouble[]

New values

Overridden

C#
public override string ToString()
Returns:

string

Series name

Overrides: StateManagedObject.ToString()

Track ViewState

C#
protected override void TrackViewState()

Overrides: StateManagedObject.TrackViewState()