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