Provides the base class for a series that uses an X/Y axis.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control SeriesBase object
- Derived:
-
Bar
Series LineBase Series ScatterBase Series
Constructors
XYSeriesBase()
Initializes an instance of the class.
Properties
AggregationFactor
Gets or sets a factor between 0 and 1 that indicates the number of data points generated based on the size of the chart. This is a dependency property.
Property Value
- double:
A factor between 0 and 1 that indicates the number of data points generated based on the size of the chart. The default value is
0.2
.
Chart
Gets the XYChart that owns this series.
Property Value
Description
Gets or sets a description of the series. This is a dependency property.
Property Value
- string:
A description of the series. The default value is
null
.
IsAggregationEnabled
Gets or sets a value indicating whether the data points will be an aggregation of the source data. This is a dependency property.
Property Value
- bool:
true
if the data points will be an aggregation of the source data; otherwise,false
. The default value istrue
.
LegendMarkerStyle
Gets or sets a Style, which is applied to the Chart
Property Value
- Style:
A Style, which is applied to the Chart
Marker used when presenting a legend item for the series. The default value isnull
.
LegendStringFormat
Gets or sets the string format used when presenting a legend item for the series. This is a dependency property.
Property Value
- string:
The string format used when presenting legend item for the series. The default value is
"{0}"
.
Remarks
The format string will be passed the following parameters:
- {0} - The value of the primary axis.
- {1} - The value of the secondary axis.
- {2} - The X value.
- {3} - The Y value.
- {4} - Reserved.
- {5} - Description.
MarkerStyle
Gets or sets a Style, which is applied to the Chart
Property Value
- Style:
A Style, which is applied to the Chart
Marker used to render the markers along the series. The default value isnull
.
MinimumMargin
Gets the minimum margin around the plotted area required by the series.
Property Value
- Thickness?:
The minimum margin around the plotted area required by the series.
PrimaryAggregationKind
Gets or sets a value indicating which kind of aggregation to perform along the primary axis. This is a dependency property.
Property Value
- Aggregation
Kind : A Aggregation
Kind indicating which kind of aggregation to perform along the primary axis. The default value isAggregationKind.Average
.
RequiresSlottedLayout
Gets a value indicating whether the series requires slotted layout.
Property Value
- bool:
true
if the series requires slotted layout; otherwise,false
.
SecondaryAggregationKind
Gets or sets a value indicating which kind of aggregation to perform along the secondary axis. This is a dependency property.
Property Value
- Aggregation
Kind : A Aggregation
Kind indicating which kind of aggregation to perform along the secondary axis. The default value isAggregationKind.First
.
StackKind
Gets or sets a value indicating the kind of stacking applied to the series. This is a dependency property.
Property Value
- XYSeries
Stack :Kind The kind of stacking applied to the series. The default value is
XYSeriesStackKind.None
.
XAxis
Gets or sets the X axis to be used for this series. This is a dependency property.
Property Value
- XYAxis
Base : The X axis to be used for this series. The default value is
null
.
XPath
Gets or sets the path to the item property represented along the X-axis. This is a dependency property.
Property Value
- string:
The path to the item property represented along the X-axis. The default value is
null
.
YAxis
Gets or sets the Y axis to be used for this series. This is a dependency property.
Property Value
- XYAxis
Base : The Y axis to be used for this series. The default value is
null
.
YPath
Gets or sets the path to the item property represented along the Y-axis. This is a dependency property.
Property Value
- string:
The path to the item property represented along the Y-axis. The default value is
null
.
Methods
NormalizeValue(object, object)
Normalizes the value using the specified baseline
Parameter | Type | Description |
---|---|---|
value | object | The value to normalize. |
baselineValue | object | The baseline value. |
Returns
- object:
A normalized value.
Refresh()
Updates the series based on the current state.
Events
Refreshed
Occurs when the series is refreshed.
Event Type
Fields
AggregationFactorProperty
Identifies the Aggregation
DescriptionProperty
Identifies the Description dependency property. This field is read-only.
IsAggregationEnabledProperty
Identifies the Is
LegendMarkerStyleProperty
Identifies the Legend
LegendStringFormatProperty
Identifies the Legend
MarkerStyleProperty
Identifies the Marker
PrimaryAggregationKindProperty
Identifies the Primary
SecondaryAggregationKindProperty
Identifies the Secondary
StackKindProperty
Identifies the Stack
XAxisProperty
Identifies the XAxis dependency property. This field is read-only.
XPathProperty
Identifies the XPath dependency property. This field is read-only.
YAxisProperty
Identifies the YAxis dependency property. This field is read-only.
YPathProperty
Identifies the YPath dependency property. This field is read-only.
Inherited Members
-
Series
Base. Index Property -
Series
Base. Items Source Property -
Series
Base. Get Label Text(object, object, object, object, object) -
Series
Base. On Items Source Changed(IEnumerable, IEnumerable) -
Series
Base. On Items Source Collection Changed(object, Notify Collection Changed Event Args) -
Series
Base. Index -
Series
Base. Items Source -
Series
Base. Label Angle -
Series
Base. Label Format -
Series
Base. Label Func -
Series
Base. Label Style -
Series
Base. Label Visibility -
Series
Base. Logical Orientation