Class ChartSeries
Series
Inherited Members
Namespace: Telerik.Reporting.Charting
Assembly: Telerik.Reporting.dll
Syntax
public class ChartSeries : RenderedObject, IChartingStateManagedItem, IChartingStateManager, IDisposable, IOrdering, ICloneable
Constructors
ChartSeries()
Creates a new instance of ChartSeries class.
Declaration
public ChartSeries()
ChartSeries(String)
Creates a new instance of ChartSeries class with given name
Declaration
public ChartSeries(string name)
Parameters
System. Name of series |
ChartSeries(String, ChartSeriesType)
Creates a new instance of ChartSeries class with given name and type.
Declaration
public ChartSeries(string name, ChartSeriesType type)
Parameters
System. Name of series |
Chart Type of series |
ChartSeries(String, ChartSeriesType, ChartSeriesCollection)
Creates a new instance of ChartSeries class.
Declaration
public ChartSeries(string name, ChartSeriesType type, ChartSeriesCollection parent)
Parameters
System. Name of series |
Chart Type of series |
Chart Parent of series |
ChartSeries(String, ChartSeriesType, ChartSeriesCollection, ChartYAxisType, StyleSeries)
Creates a new instance of ChartSeries class.
Declaration
public ChartSeries(string seriesName, ChartSeriesType chartSeriesType, ChartSeriesCollection parent, ChartYAxisType yAxisType, StyleSeries style)
Parameters
System. Name of series |
Chart Type of series |
Chart Parent of series |
Chart YAxisType(Primary or Secondary) |
Style Style of series |
ChartSeries(String, ChartSeriesType, ChartSeriesCollection, ChartYAxisType, StyleSeries, String, String, String, String, String, String, String)
Creates a new instance of ChartSeries class.
Declaration
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
System. Name of series |
Chart Type of series |
Chart Parent of series |
Chart YAxisType(Primary or Secondary) |
Style Style of series |
System. DataSource column that is used to data-bind to the series YValue |
System. DataSource column that is used to data-bind to the series XValue |
System. DataSource column that is used to data-bind to the series YValue2 |
System. DataSource column that is used to data-bind to the series XValue2 |
System. DataSource column that is used to data-bind to the series YValue3 |
System. DataSource column that is used to data-bind to the series YValue4 |
System. DataSource column (member) that will be used as ChartSeries names source when Y-values are taken from one column for a several chart ChartSeries |
ChartSeries(ChartSeriesCollection)
Creates a new instance of ChartSeries class.
Declaration
public ChartSeries(ChartSeriesCollection parent)
Parameters
Chart Parent of series |
Properties
ActiveRegionAttributes
Default attributes for series items' active regions
Declaration
public string ActiveRegionAttributes { get; set; }
Property Value
System.
|
ActiveRegionToolTip
Default tooltip for series items' active regions
Declaration
public string ActiveRegionToolTip { get; set; }
Property Value
System.
|
ActiveRegionUrl
Default url for series items' active regions
Declaration
public string ActiveRegionUrl { get; set; }
Property Value
System.
|
Appearance
Specifies the visual appearance of series items.
Declaration
[SkinnableProperty]
public StyleSeries Appearance { get; }
Property Value
DataLabelsColumn
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
Declaration
public string DataLabelsColumn { get; set; }
Property Value
System.
|
DataXColumn
Gets or sets the name of the DataSource column (member) that is used to data-bind to the series X-value
Declaration
public string DataXColumn { get; set; }
Property Value
System.
|
DataXColumn2
Gets or sets the name of the DataSource column (member) that is used to data-bind to the series X2-value
Declaration
public string DataXColumn2 { get; set; }
Property Value
System.
|
DataYColumn
Gets or sets the name of the DataSource column (member) that is used to data-bind to the series Y-value
Declaration
public string DataYColumn { get; set; }
Property Value
System.
|
DataYColumn2
Gets or sets the name of the DataSource column (member) that is used to data-bind to the series Y2-value
Declaration
public string DataYColumn2 { get; set; }
Property Value
System.
|
DataYColumn3
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).
Declaration
public string DataYColumn3 { get; set; }
Property Value
System.
|
DataYColumn4
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).
Declaration
public string DataYColumn4 { get; set; }
Property Value
System.
|
DefaultLabelValue
Specifies the default value for the series items labels.
Declaration
public string DefaultLabelValue { get; set; }
Property Value
System.
|
Index
Current series index in the series collection
Declaration
public int Index { get; }
Property Value
System.
|
IsActiveRegionSet
Returns whether there is an active region associated with the series.
Declaration
public bool IsActiveRegionSet { get; }
Property Value
System.
|
IsDataBound
Determines whether the series is configured as data bound or not.
Declaration
public bool IsDataBound { get; }
Property Value
System.
|
Item[Int32]
Gets or sets a ChartSeries SeriesItem object at the specified index.
Declaration
public ChartSeriesItem this[int itemIndex] { get; set; }
Parameters
System.
|
Property Value
Items
Gets a collection of series items.
Declaration
[SkinnableProperty]
public ChartSeriesItemsCollection Items { get; }
Property Value
Name
Gets or sets the name of the data series.
Declaration
public string Name { get; set; }
Property Value
System.
|
Parent
Parent element
Declaration
public ChartSeriesCollection Parent { get; }
Property Value
PlotArea
Plot area element for series drawing
Declaration
public ChartPlotArea PlotArea { get; }
Property Value
Type
Gets or sets the type of the series.
Declaration
public ChartSeriesType Type { get; set; }
Property Value
Visible
Specifies whether to render the series or not.
Declaration
public bool Visible { get; set; }
Property Value
System.
|
YAxisType
Y Axis used by series
Declaration
public ChartYAxisType YAxisType { get; set; }
Property Value
Methods
AddItem(List<ChartSeriesItem>)
Adds a series item(s) to the series.
Declaration
public void AddItem(List<ChartSeriesItem> seriesItems)
Parameters
System. Items to add |
AddItem(Double)
Adds a new series item to the data series by specifying its value.
Declaration
public void AddItem(double value)
Parameters
System. YValue of new item |
AddItem(Double, String)
Adds a new series item to the data series by specifying its value and label.
Declaration
public void AddItem(double value, string label)
Parameters
System. YValue of new item |
System. Label of new item |
AddItem(Double, String, Color)
Adds a new series item to the data series by specifying its value, label and color.
Declaration
public void AddItem(double value, string label, Color color)
Parameters
System. YValue of new item |
System. Label of new item |
System. Color of new item |
AddItem(Double, String, Color, Boolean)
Adds a new series item to the data series by specifying its value, label, color and explosion.
Declaration
public void AddItem(double value, string label, Color color, bool exploded)
Parameters
System. YValue of new item |
System. Label of new item |
System. Color of new item |
System. If item is exploded |
AddItem(ChartSeriesItem, ChartSeriesItem[])
Adds a series item(s) to the series.
Declaration
public void AddItem(ChartSeriesItem seriesItem, params ChartSeriesItem[] seriesItems)
Parameters
Chart Item to add |
Chart Items to add |
AddItem(ChartSeriesItem[])
Adds a series item(s) to the series.
Declaration
public void AddItem(ChartSeriesItem[] seriesItems)
Parameters
Chart Items to add |
AddItem(ChartSeriesItemsCollection)
Adds a series item(s) to the series.
Declaration
public void AddItem(ChartSeriesItemsCollection seriesItems)
Parameters
Chart Items to add |
Clear()
Clears all series items from the data series.
Declaration
public void Clear()
ClearDataBoundState()
Removes data binding links from series
Declaration
public void ClearDataBoundState()
Clone()
Declaration
public object Clone()
Returns
System.
|
CloneSeries()
Return new ChartSeries instance with copied all properties from source object and cloned Items collection
Declaration
public ChartSeries CloneSeries()
Returns
Chart New instance of ChartSeries with copied fields |
CopyFrom(ChartSeries)
Copies settings from given series
Declaration
protected void CopyFrom(ChartSeries originalSeries)
Parameters
Chart Series to copy from |
CopyItems(ChartSeries)
Copies series items from given series
Declaration
protected void CopyItems(ChartSeries originalSeries)
Parameters
Chart Series that items should be copied |
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
Declaration
protected override void Dispose(bool disposing)
Parameters
System.
|
Overrides
LoadViewState(Object)
Load ViewState
Declaration
protected override void LoadViewState(object savedState)
Parameters
System. ViewState with data |
Overrides
RemoveItem(Int32)
Removes the SeriesItem object at the specified index.
Declaration
public void RemoveItem(int itemIndex)
Parameters
System. Index to remove |
RemoveItem(Int32, Int32[])
Removes a series item(s) from the series.
Declaration
public void RemoveItem(int index, params int[] indexes)
Parameters
System. Index of item should be removed |
System. Indexes of items should be removed |
RemoveItem(ChartSeriesItem, ChartSeriesItem[])
Removes a series item(s) from the series.
Declaration
public void RemoveItem(ChartSeriesItem seriesItem, params ChartSeriesItem[] seriesItems)
Parameters
Chart Item for removing |
Chart Items for removing |
SaveViewState()
Save Track ViewState
Declaration
protected override object SaveViewState()
Returns
System. Object data as array |
Overrides
SetColors(Color[])
Sets new colors to the items in the data series.
Declaration
public void SetColors(params Color[] colors)
Parameters
System. New colors |
SetExplodes(Boolean[])
Sets exploded statuses to the items in the data series.
Declaration
public void SetExplodes(params bool[] explodes)
Parameters
System. New exploded values |
SetItemColor(Int32, Color)
Sets a new color to the series item at the specified index.
Declaration
public void SetItemColor(int itemIndex, Color newColor)
Parameters
System. Index of item to change color |
System. New color of item |
SetItemExplode(Int32, Boolean)
Sets a new explode status for the series item at the specified index.
Declaration
public void SetItemExplode(int itemIndex, bool exploded)
Parameters
System. Index of item |
System. Shoul be exploded or not |
SetItemLabel(Int32, String)
Sets a new label for the series item at the specified index.
Declaration
public void SetItemLabel(int itemIndex, string newLabel)
Parameters
System. Index of item to change label |
System. New label |
SetItems(ChartSeriesItem[])
Sets new SeriesItems objects to the data series.
Declaration
public void SetItems(params ChartSeriesItem[] seriesItems)
Parameters
Chart New Items to replace old items in series |
SetItemValue(Int32, Double)
Sets a new value for the series item at the specified index.
Declaration
public void SetItemValue(int itemIndex, double newValue)
Parameters
System. Index of item to change YValue |
System. New YValue |
SetLabels(String[])
Sets new labels to the items in the data series.
Declaration
public void SetLabels(params string[] labels)
Parameters
System. New labels |
SetValues(Double[])
Sets new values to the data series by passing an array of real values. Old values are cleared.
Declaration
public void SetValues(params double[] values)
Parameters
System. New values |
ToString()
Overridden
Declaration
public override string ToString()
Returns
System. Series name |
Overrides
TrackViewState()
Track ViewState
Declaration
protected override void TrackViewState()