ClassChartSeries
Base class for all series of data points, plotted on a RadChartBase instance.
Definition
Namespace:Telerik.UI.Xaml.Controls.Chart
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class ChartSeries : ChartElementPresenter, IChartSeries, IChartElementPresenter, IElementPresenter
Inheritance: objectRadControlPresenterBaseChartElementPresenterChartSeries
Derived Classes:
Implements:
Inherited Members
Constructors
ChartSeries()
Initializes a new instance of the ChartSeries class.
Declaration
protected ChartSeries()
Fields
AllowSelectProperty
Identifies the AllowSelect property.
Declaration
public static readonly DependencyProperty AllowSelectProperty
Field Value
DependencyProperty
ClipToPlotAreaProperty
Identifies the ClipToPlotArea property.
Declaration
public static readonly DependencyProperty ClipToPlotAreaProperty
Field Value
DependencyProperty
IsSelectedBindingProperty
Identifies the IsSelectedBinding property.
Declaration
public static readonly DependencyProperty IsSelectedBindingProperty
Field Value
DependencyProperty
IsSelectedProperty
Identifies the IsSelected property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
ItemsSourceProperty
Identifies the ItemsSource property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
PaletteIndexProperty
Identifies the PaletteIndex property.
Declaration
public static readonly DependencyProperty PaletteIndexProperty
Field Value
DependencyProperty
ShowLabelsProperty
Identifies the ShowLabels property.
Declaration
public static readonly DependencyProperty ShowLabelsProperty
Field Value
DependencyProperty
Properties
ActualPaletteIndex
Gets the actual palette index used to retrieve the actual palette brush used for this series.
AllowSelect
Gets or sets a value indicating whether the series might enter the IsSelected state.
ClipToPlotArea
Gets or sets a value indicating whether this instance will be clipped to the bounds of the plot area.
DisplayName
Gets or sets the human-readable name of the series.
IsSelected
Gets or sets a value indicating whether the series is currently in a "Selected" state. Usually this state is indicated by a change in the visual representation of the series.
IsSelectedBinding
Gets or sets the DataPointBinding instance that provides mechanism for a ViewModel to define the property.
Declaration
public DataPointBinding IsSelectedBinding { get; set; }
Property Value
ItemsSource
Gets or sets the source items to generate data points from.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
LabelDefinitions
Gets the collection that stores all the definitions that describe the appearance of each label per data point. When ShowLabels is true and no custom definition is present within the collection, a default one is used.
Declaration
public ObservableCollection<ChartSeriesLabelDefinition> LabelDefinitions { get; }
Property Value
PaletteIndex
Gets or sets the preferred palette index for this series. By default the palette index is equal to the index of this series within the owning chart's Series collection. Set this value to -1 to reset it to its default value and have the CollectionIndex-based logic applied.
ShowLabels
Gets or sets a value indicating whether the series will display a label associated with each data point.
Methods
ApplyTemplateCore()
Applies the pan transformation to the render surface template part and initializes any data bindings specified.
GetDataPointLabels(DataPoint)
Gets all the FrameworkElement instances that represent labels, associated with the specified DataPoint instance.
Declaration
public IEnumerable<FrameworkElement> GetDataPointLabels(DataPoint point)
Parameters
point
Returns
IEnumerable<FrameworkElement>
HitTest(Rect)
Determines whether the provided touch rect is within the series visual representation.
Declaration
public virtual bool HitTest(Rect touchRect)
Parameters
touchRect
Rect
Returns
HitTestDataPoints(Rect)
Finds all the data points which visual representations contain the specified touch rect.
Declaration
public IEnumerable<DataPoint> HitTestDataPoints(Rect touchRect)
Parameters
touchRect
Rect
Returns
HitTestDataPointsCore(Rect)
Performs the core logic behind the HitTestDataPoints method.
Declaration
protected IEnumerable<DataPoint> HitTestDataPointsCore(Rect touchRect)
Parameters
touchRect
Rect
The touch rectangle.
Returns
HitTestDataPointsCore(Rect, bool)
Performs the core logic behind the HitTestDataPoints method.
Declaration
protected virtual IEnumerable<DataPoint> HitTestDataPointsCore(Rect touchRect, bool includeAllDataPoints)
Parameters
touchRect
Rect
The touch rectangle.
includeAllDataPoints
True to return all data points in the touch rectangle.
Returns
HitTestElementsCore(Rect, bool, bool)
Performs the core logic behind the HitTestElements method.
Declaration
protected virtual IEnumerable<FrameworkElement> HitTestElementsCore(Rect touchRect, bool dataPointsOnly, bool includeAllElements)
Parameters
touchRect
Rect
dataPointsOnly
includeAllElements
Returns
IEnumerable<FrameworkElement>
OnAttached()
Occurs when the presenter has been successfully attached to its owning RadChartBase instance.
Declaration
protected override void OnAttached()
Overrides
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnDetached(RadChartBase)
Occurs when the presenter has been successfully detached from its owning RadChartBase instance.
Declaration
protected override void OnDetached(RadChartBase oldChart)
Parameters
oldChart
Overrides
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides
SelectRectPoints(ref Rect)
Returns an array of rectangle .
Declaration
protected virtual Point[] SelectRectPoints(ref Rect touchRect)
Parameters
touchRect
Rect
Returns
Point[]
Events
DataBindingComplete
Occurs when a data binding operation has been successfully completed.
Declaration
public event EventHandler DataBindingComplete
Event Value