ChartSeries
Series
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.RadChart.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ChartSeries : RenderedObject, IChartingStateManagedItem, IChartingStateManager, IOrdering, ICloneable
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
Properties
Default attributes for series items' active regions
public string ActiveRegionAttributes { get; set; }
Default tooltip for series items' active regions
public string ActiveRegionToolTip { get; set; }
Default url for series items' active regions
public string ActiveRegionUrl { get; set; }
Specifies the visual appearance of series items.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[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
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
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
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
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
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).
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).
public string DataYColumn4 { get; set; }
Specifies the default value for the series items labels.
[Browsable(true)]
public string DefaultLabelValue { get; set; }
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; }
Determines whether the series is configured as data bound or not.
[Browsable(false)]
public bool IsDataBound { get; }
Gets a collection of series items.
[SkinnableProperty]
public ChartSeriesItemsCollection Items { get; }
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; }
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.
Adds a new series item to the data series by specifying its value.
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
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 the SeriesItem object at the specified index.
Save Track ViewState
Sets new colors to the items in the data series.
Sets exploded statuses to the items in the data series.
Sets new SeriesItems objects to the data series.
public void SetItems(params ChartSeriesItem[] seriesItems)
New Items to replace old items in series
Sets new labels to the items in the data series.
Sets new values to the data series by passing an array of real values. Old values are cleared.
Overridden
Track ViewState
protected override void TrackViewState()
Overrides: