Class
ChartSeries

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
public abstract class ChartSeries : UIChartElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartSeries, IChartElementPresenter, IAxisProvider

Inheritance: objectDisposableObjectRadObjectUIChartElementChartSeries

Derived Classes: CartesianSeriesFunnelSeriesPieSeriesPolarSeries

Implements: IAxisProviderIBorderElementIBoxElementIBoxStyleIChartElementPresenterIChartSeriesICustomTypeDescriptorIDisposableIFillElementINotifyPropertyChangedIShapedElementIStylableElementIStylableNode

Inherited Members UIChartElement.IsVisiblePropertyUIChartElement.ClassPropertyUIChartElement.VisualStatePropertyUIChartElement.IsMouseDownPropertyUIChartElement.IsMouseOverPropertyUIChartElement.FontPropertyUIChartElement.CustomFontPropertyUIChartElement.CustomFontSizePropertyUIChartElement.CustomFontStylePropertyUIChartElement.ForeColorPropertyUIChartElement.BackColorPropertyUIChartElement.BackColor2PropertyUIChartElement.BackColor3PropertyUIChartElement.BackColor4PropertyUIChartElement.NumberOfColorsPropertyUIChartElement.GradientStylePropertyUIChartElement.GradientAnglePropertyUIChartElement.GradientPercentagePropertyUIChartElement.GradientPercentage2PropertyUIChartElement.BorderBoxStylePropertyUIChartElement.BorderDrawModePropertyUIChartElement.BorderWidthPropertyUIChartElement.BorderLeftWidthPropertyUIChartElement.BorderRightWidthPropertyUIChartElement.BorderTopWidthPropertyUIChartElement.BorderBottomWidthPropertyUIChartElement.BorderGradientAnglePropertyUIChartElement.BorderGradientStylePropertyUIChartElement.BorderColorPropertyUIChartElement.BorderColor2PropertyUIChartElement.BorderColor3PropertyUIChartElement.BorderColor4PropertyUIChartElement.BorderInnerColorPropertyUIChartElement.BorderInnerColor2PropertyUIChartElement.BorderInnerColor3PropertyUIChartElement.BorderInnerColor4PropertyUIChartElement.BorderLeftColorPropertyUIChartElement.BorderTopColorPropertyUIChartElement.BorderRightColorPropertyUIChartElement.BorderBottomColorPropertyUIChartElement.BorderLeftShadowColorPropertyUIChartElement.BorderTopShadowColorPropertyUIChartElement.BorderRightShadowColorPropertyUIChartElement.BorderBottomShadowColorPropertyUIChartElement.BackgroundShapePropertyUIChartElement.BorderDashStylePropertyUIChartElement.BorderDashPatternPropertyUIChartElement.BorderCornerRadiusPropertyUIChartElement.ShapePropertyUIChartElement.PaddingPropertyUIChartElement.SmoothingModePropertyUIChartElement.GetValue(RadProperty)UIChartElement.Attach(UIChartElement)UIChartElement.Dettach()UIChartElement.Invalidate()UIChartElement.MeasureContentOverride(ChartNode, object)UIChartElement.DpiScaleChanged(SizeF)UIChartElement.GetScaledFont(float)UIChartElement.GetCurrentShape()UIChartElement.GetThemeEffectiveType()UIChartElement.ApplyStyle()UIChartElement.BuildVisualState()UIChartElement.AddStylePropertySetting(IPropertySetting)UIChartElement.ApplyStyleByIndex(PropertySettingGroup, int)UIChartElement.ParentUIChartElement.LevelUIChartElement.ChildrenUIChartElement.IsMouseDownUIChartElement.IsMouseOverUIChartElement.ViewUIChartElement.ForeColorUIChartElement.FontUIChartElement.BackColorUIChartElement.BackColor2UIChartElement.BackColor3UIChartElement.BackColor4UIChartElement.GradientStyleUIChartElement.GradientAngleUIChartElement.GradientPercentageUIChartElement.GradientPercentage2UIChartElement.NumberOfColorsUIChartElement.BorderLeftColorUIChartElement.BorderTopColorUIChartElement.BorderRightColorUIChartElement.BorderBottomColorUIChartElement.BorderLeftShadowColorUIChartElement.BorderTopShadowColorUIChartElement.BorderRightShadowColorUIChartElement.BorderBottomShadowColorUIChartElement.BorderBoxStyleUIChartElement.BorderDrawModeUIChartElement.BorderWidthUIChartElement.BorderLeftWidthUIChartElement.BorderTopWidthUIChartElement.BorderRightWidthUIChartElement.BorderBottomWidthUIChartElement.BorderGradientAngleUIChartElement.BorderGradientStyleUIChartElement.BorderColorUIChartElement.BorderColor2UIChartElement.BorderColor3UIChartElement.BorderColor4UIChartElement.BorderInnerColorUIChartElement.BorderInnerColor2UIChartElement.BorderInnerColor3UIChartElement.BorderInnerColor4UIChartElement.BorderDashStyleUIChartElement.BorderDashPatternUIChartElement.BorderCornerRadiusUIChartElement.SizeUIChartElement.ShapeUIChartElement.BackgroundShapeUIChartElement.PaddingUIChartElement.SmoothingModeUIChartElement.IsAttachedUIChartElement.DpiScaleFactorUIChartElement.ClassUIChartElement.VisualStateUIChartElement.ThemeRoleUIChartElement.ChildrenHierarchyUIChartElement.StyleUIChartElement.StateManagerUIChartElement.FallbackToDefaultThemeRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

ChartSeries()

Initializes a new instance of the ChartSeries class.

Declaration

cs-api-definition
public ChartSeries()

Fields

DrawLinesToLabelsProperty

Declaration

cs-api-definition
public static RadProperty DrawLinesToLabelsProperty

Field Value

RadProperty

LabelFormatProperty

Declaration

cs-api-definition
public static RadProperty LabelFormatProperty

Field Value

RadProperty

LabelRotationAngleProperty

Declaration

cs-api-definition
public static RadProperty LabelRotationAngleProperty

Field Value

RadProperty

LinesToLabelsColorProperty

Declaration

cs-api-definition
public static RadProperty LinesToLabelsColorProperty

Field Value

RadProperty

PointSizeProperty

Declaration

cs-api-definition
public static RadProperty PointSizeProperty

Field Value

RadProperty

SyncLinesToLabelsColorProperty

Declaration

cs-api-definition
public static RadProperty SyncLinesToLabelsColorProperty

Field Value

RadProperty

Properties

Axes

Gets the axes.

Declaration

cs-api-definition
[Browsable(false)]
public virtual Axis[] Axes { get; }

Property Value

Axis[]

The axes.

Implements IAxisProvider.Axes

Bounds

Gets the bounds of the series

Declaration

cs-api-definition
[Browsable(false)]
public RectangleF Bounds { get; }

Property Value

RectangleF

DataMember

Gets or sets the name of the list or table in the data source for which the ChartSeries is bound.

Declaration

cs-api-definition
[Browsable(true)]
public string DataMember { get; set; }

Property Value

string

DataPoints

Gets the data points.

Declaration

cs-api-definition
[Browsable(true)]
public ChartDataPointCollection DataPoints { get; }

Property Value

ChartDataPointCollection

The data points.

DataSource

Gets or sets the data source of the ChartSeries.

Declaration

cs-api-definition
public object DataSource { get; set; }

Property Value

object

DisplayMember

Gets or sets the display member.

Declaration

cs-api-definition
[Browsable(true)]
public string DisplayMember { get; set; }

Property Value

string

The display member.

DrawLinesToLabels

Gets or sets a value indicating whether to draw lines between data points and labels.

Declaration

cs-api-definition
public bool DrawLinesToLabels { get; set; }

Property Value

bool

Family

Declaration

cs-api-definition
[Browsable(false)]
public virtual string Family { get; }

Property Value

string

IsVisible

Gets or sets a value indicating whether this instance is visible.

Declaration

cs-api-definition
public override bool IsVisible { get; set; }

Property Value

bool

Overrides UIChartElement.IsVisible

Implements IChartElementPresenter.IsVisible

LabelFormat

Gets or sets the format used to format all the labels present on the axis.

Declaration

cs-api-definition
public string LabelFormat { get; set; }

Property Value

string

LabelFormatProvider

Gets or sets the format provider to be used for the labels of the axis.

Declaration

cs-api-definition
[Browsable(false)]
public IFormatProvider LabelFormatProvider { get; set; }

Property Value

IFormatProvider

LabelRotationAngle

Gets or sets the label rotation angle.

Declaration

cs-api-definition
public double LabelRotationAngle { get; set; }

Property Value

double

The label rotation angle.

LinesToLabelsColor

Gets or sets the color of the lines connecting data points to their labels.

Declaration

cs-api-definition
public Color LinesToLabelsColor { get; set; }

Property Value

Color

The color of the lines.

Model

Gets the model.

Declaration

cs-api-definition
[Browsable(false)]
public abstract ChartSeriesModel Model { get; }

Property Value

ChartSeriesModel

The model.

Name

Gets or sets the name.

Declaration

cs-api-definition
[Browsable(true)]
public string Name { get; set; }

Property Value

string

The name.

Palette

Gets or sets the palette.

Declaration

cs-api-definition
[Browsable(false)]
public PaletteEntry Palette { get; set; }

Property Value

PaletteEntry

The palette.

PointSize

Gets or sets the size of the points of the series

Declaration

cs-api-definition
public SizeF PointSize { get; set; }

Property Value

SizeF

SelectedStyle

Gets the selected style.

Declaration

cs-api-definition
[Browsable(false)]
public virtual ChartStyle SelectedStyle { get; }

Property Value

ChartStyle

The selected style.

ShowLabels

Gets or sets a value indicating whether the series will display a label associated with each data point.

Declaration

cs-api-definition
public bool ShowLabels { get; set; }

Property Value

bool

SyncLinesToLabelsColor

Gets or sets a value indicating whether to sync the color of the line connecting a data point and its label.

Declaration

cs-api-definition
public bool SyncLinesToLabelsColor { get; set; }

Property Value

bool

true if color is synced; otherwise, false.

TrackballFormatString

Gets the trackball format string.

Declaration

cs-api-definition
protected virtual string TrackballFormatString { get; }

Property Value

string

The trackball format string.

Methods

ApplyStyleSettingsCore(PropertySettingGroup)

Applies the style settings.

Declaration

cs-api-definition
protected override void ApplyStyleSettingsCore(PropertySettingGroup group)

Parameters

group

PropertySettingGroup

The group.

Overrides UIChartElement.ApplyStyleSettingsCore(PropertySettingGroup)

BindMembers()

Binds the members.

Declaration

cs-api-definition
protected virtual void BindMembers()

CreateDataPoint()

Creates the data point.

Declaration

cs-api-definition
protected DataPoint CreateDataPoint()

Returns

DataPoint

CreateDataPointElement(DataPoint)

Creates the data point element.

Declaration

cs-api-definition
protected DataPointElement CreateDataPointElement(DataPoint point)

Parameters

point

DataPoint

The point.

Returns

DataPointElement

CreateDataPointElementCollection()

Creates the data point element collection.

Declaration

cs-api-definition
protected virtual ChartElementCollection CreateDataPointElementCollection()

Returns

ChartElementCollection

CreateDefaultDataPoint()

Declaration

cs-api-definition
protected abstract DataPoint CreateDefaultDataPoint()

Returns

DataPoint

CreateModel()

Declaration

cs-api-definition
protected abstract ChartDataPointCollection CreateModel()

Returns

ChartDataPointCollection

CreatePointElement(DataPoint)

Declaration

cs-api-definition
protected abstract DataPointElement CreatePointElement(DataPoint point)

Parameters

point

DataPoint

Returns

DataPointElement

DisposeManagedResources()

Disposes managed resources.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides RadObject.DisposeManagedResources()

EnsureVisualState(ChartArea)

Ensures the visual state.

Declaration

cs-api-definition
protected virtual void EnsureVisualState(ChartArea area)

Parameters

area

ChartArea

The area.

GetDefaultTrackballTextForPoint(DataPoint)

Gets the default trackball text for point.

Declaration

cs-api-definition
protected virtual string GetDefaultTrackballTextForPoint(DataPoint point)

Parameters

point

DataPoint

The point.

Returns

string

GetElement(Point)

Gets the element.

Declaration

cs-api-definition
public DataPointElement GetElement(Point pt)

Parameters

pt

Point

The pt.

Returns

DataPointElement

GetStyleIndex()

Gets the index of the style.

Declaration

cs-api-definition
protected virtual int GetStyleIndex()

Returns

int

HitTest(int, int)

Returns the DataPoint that hits the x,y coordinates.

Declaration

cs-api-definition
public DataPoint HitTest(int x, int y)

Parameters

x

int

The x.

y

int

The y.

Returns

DataPoint

OnApplyPalette()

Called when the palette is applied.

Declaration

cs-api-definition
protected virtual void OnApplyPalette()

OnAttached(UIChartElement)

Called when [attached].

Declaration

cs-api-definition
protected override void OnAttached(UIChartElement parent)

Parameters

parent

UIChartElement

The parent.

Overrides UIChartElement.OnAttached(UIChartElement)

OnCreatePoint(ChartViewCreatePointEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnCreatePoint(ChartViewCreatePointEventArgs e)

Parameters

e

ChartViewCreatePointEventArgs

The ChartViewCreatePointEventArgs instance containing the event data.

OnDataPointIsSelectedChanged(DataPoint)

Occurs when a DataPoint owned by the series has its IsSelected property changed.

Declaration

cs-api-definition
public void OnDataPointIsSelectedChanged(DataPoint point)

Parameters

point

DataPoint

Implements IChartSeries.OnDataPointIsSelectedChanged(DataPoint)

OnDettached()

Called when [dettached].

Declaration

cs-api-definition
protected override void OnDettached()

Overrides UIChartElement.OnDettached()

OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides UIChartElement.OnPropertyChanged(RadPropertyChangedEventArgs)

OnTrackballPointTextNeeded(TrackballPointTextNeededEventArgs)

Declaration

cs-api-definition
protected virtual void OnTrackballPointTextNeeded(TrackballPointTextNeededEventArgs e)

Parameters

e

TrackballPointTextNeededEventArgs

Refresh()

Refreshes the UIChartElement.

Declaration

cs-api-definition
public override void Refresh()

Overrides UIChartElement.Refresh()

ValidatePoint(DataPoint)

Validates the point.

Declaration

cs-api-definition
protected virtual void ValidatePoint(DataPoint item)

Parameters

item

DataPoint

The item.

Events

CreatePoint

Occurs when a new DataPoint is created.

Declaration

cs-api-definition
public event ChartViewCreatePointEventHandler CreatePoint

Event Value

ChartViewCreatePointEventHandler

TrackballPointTextNeeded

When the trackball is shown, this event is fired for every point that is being currently shown.

Declaration

cs-api-definition
public event TrackballPointTextNeededEventHandler TrackballPointTextNeeded

Event Value

TrackballPointTextNeededEventHandler