Class DataPointSeriesWithAxes
Represents a dynamic series that uses axes to display data points.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public abstract class DataPointSeriesWithAxes : DataPointSeries, ISeries, IRequireSeriesHost, IDataProvider, IRangeProvider, IAxisListener, IValueMarginProvider
Constructors
| Improve this Doc View SourceDataPointSeriesWithAxes()
Initializes a new instance of the DataPointSeriesWithAxes class.
Declaration
protected DataPointSeriesWithAxes()
Properties
| Improve this Doc View SourceInternalActualDependentAxis
Gets or sets the actual dependent axis.
Declaration
protected IAxis InternalActualDependentAxis { get; set; }
Property Value
Type | Description |
---|---|
IAxis |
InternalActualIndependentAxis
Gets or sets the actual independent axis value.
Declaration
protected IAxis InternalActualIndependentAxis { get; set; }
Property Value
Type | Description |
---|---|
IAxis |
InternalDependentAxis
Gets or sets the value of the internal dependent axis.
Declaration
protected IAxis InternalDependentAxis { get; set; }
Property Value
Type | Description |
---|---|
IAxis |
InternalIndependentAxis
Gets or sets the value of the internal independent axis.
Declaration
protected IAxis InternalIndependentAxis { get; set; }
Property Value
Type | Description |
---|---|
IAxis |
Methods
| Improve this Doc View SourceCreateRangeAxisFromData(Object)
Creates the correct range axis based on the data.
Declaration
protected static IRangeAxis CreateRangeAxisFromData(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to evaluate to determine which type of axis to create. |
Returns
Type | Description |
---|---|
IRangeAxis | The range axis appropriate that can plot the provided value. |
GetActualDataPointAxisValue(DataPoint, IAxis)
Retrieves the value for a given access from a data point.
Declaration
protected virtual object GetActualDataPointAxisValue(DataPoint dataPoint, IAxis axis)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | dataPoint | The data point to retrieve the value from. |
IAxis | axis | The axis to retrieve the value for. |
Returns
Type | Description |
---|---|
System.Object | A function that returns a value appropriate for the axis when provided a DataPoint. |
GetAxes(DataPoint)
Method called to get series to acquire the axes it needs. Acquires no axes by default.
Declaration
protected abstract void GetAxes(DataPoint firstDataPoint)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | firstDataPoint | The first data point. |
GetAxes(DataPoint, Func<IAxis, Boolean>, Func<IAxis>, Func<IAxis, Boolean>, Func<IAxis>)
Method called to get the axes that the series needs.
Declaration
protected virtual void GetAxes(DataPoint firstDataPoint, Func<IAxis, bool> independentAxisPredicate, Func<IAxis> independentAxisFactory, Func<IAxis, bool> dependentAxisPredicate, Func<IAxis> dependentAxisFactory)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | firstDataPoint | The first data point. |
System.Func<IAxis, System.Boolean> | independentAxisPredicate | A predicate that returns a value indicating whether an axis is an acceptable candidate for the series independent axis. |
System.Func<IAxis> | independentAxisFactory | A function that creates an acceptable independent axis. |
System.Func<IAxis, System.Boolean> | dependentAxisPredicate | A predicate that returns a value indicating whether an axis is an acceptable candidate for the series dependent axis. |
System.Func<IAxis> | dependentAxisFactory | A function that creates an acceptable dependent axis. |
GetRange(IRangeConsumer)
Returns the actual range of data for a given axis.
Declaration
protected virtual Range<IComparable> GetRange(IRangeConsumer consumer)
Parameters
Type | Name | Description |
---|---|---|
IRangeConsumer | consumer | The axis to retrieve the range for. |
Returns
Type | Description |
---|---|
Range<System.IComparable> | The actual range of data. |
GetValueMargins(IValueMarginConsumer)
Returns the value margins for a given axis.
Declaration
protected virtual IEnumerable<ValueMargin> GetValueMargins(IValueMarginConsumer consumer)
Parameters
Type | Name | Description |
---|---|---|
IValueMarginConsumer | consumer | The axis to retrieve the value margins for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ValueMargin> | A sequence of value margins. |
OnDataPointActualDependentValueChanged(DataPoint, IComparable, IComparable)
Update the axes when the specified data point's ActualDependentValue property changes.
Declaration
protected override void OnDataPointActualDependentValueChanged(DataPoint dataPoint, IComparable oldValue, IComparable newValue)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | dataPoint | The data point. |
System.IComparable | oldValue | The old value. |
System.IComparable | newValue | The new value. |
Overrides
| Improve this Doc View SourceOnDataPointActualIndependentValueChanged(DataPoint, Object, Object)
Update axes when the specified data point's actual independent value changes.
Declaration
protected override void OnDataPointActualIndependentValueChanged(DataPoint dataPoint, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | dataPoint | The data point. |
System.Object | oldValue | The old value. |
System.Object | newValue | The new value. |
Overrides
| Improve this Doc View SourceOnDataPointDependentValueChanged(DataPoint, IComparable, IComparable)
Update the axes when the specified data point's DependentValue property changes.
Declaration
protected override void OnDataPointDependentValueChanged(DataPoint dataPoint, IComparable oldValue, IComparable newValue)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | dataPoint | The data point. |
System.IComparable | oldValue | The old value. |
System.IComparable | newValue | The new value. |
Overrides
| Improve this Doc View SourceOnDataPointIndependentValueChanged(DataPoint, Object, Object)
Update axes when the specified data point's independent value changes.
Declaration
protected override void OnDataPointIndependentValueChanged(DataPoint dataPoint, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
DataPoint | dataPoint | The data point. |
System.Object | oldValue | The old value. |
System.Object | newValue | The new value. |
Overrides
| Improve this Doc View SourceOnDataPointsChanged(IList<DataPoint>, IList<DataPoint>)
Called after data points have been loaded from the items source.
Declaration
protected override void OnDataPointsChanged(IList<DataPoint> newDataPoints, IList<DataPoint> oldDataPoints)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DataPoint> | newDataPoints | New active data points. |
System.Collections.Generic.IList<DataPoint> | oldDataPoints | Old inactive data points. |
Overrides
| Improve this Doc View SourceOnInternalDependentAxisPropertyChanged(IAxis, IAxis)
DependentAxisProperty property changed handler.
Declaration
protected virtual void OnInternalDependentAxisPropertyChanged(IAxis oldValue, IAxis newValue)
Parameters
Type | Name | Description |
---|---|---|
IAxis | oldValue | Old value. |
IAxis | newValue | New value. |
OnInternalIndependentAxisPropertyChanged(IAxis, IAxis)
IndependentAxisProperty property changed handler.
Declaration
protected virtual void OnInternalIndependentAxisPropertyChanged(IAxis oldValue, IAxis newValue)
Parameters
Type | Name | Description |
---|---|---|
IAxis | oldValue | Old value. |
IAxis | newValue | New value. |
OnSeriesHostPropertyChanged(ISeriesHost, ISeriesHost)
Called when the value of the SeriesHost property changes.
Declaration
protected override void OnSeriesHostPropertyChanged(ISeriesHost oldValue, ISeriesHost newValue)
Parameters
Type | Name | Description |
---|---|---|
ISeriesHost | oldValue | The value to be replaced. |
ISeriesHost | newValue | The new series host value. |
Overrides
| Improve this Doc View SourceUpdateDataPoints(IEnumerable<DataPoint>)
Only updates all data points if series has axes.
Declaration
protected override void UpdateDataPoints(IEnumerable<DataPoint> dataPoints)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<DataPoint> | dataPoints | A sequence of data points to update. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIAxisListener.AxisInvalidated(IAxis)
Updates data points when the axis is invalidated.
Declaration
void IAxisListener.AxisInvalidated(IAxis axis)
Parameters
Type | Name | Description |
---|---|---|
IAxis | axis | The axis that was invalidated. |
IDataProvider.GetData(IDataConsumer)
Returns data to a data consumer.
Declaration
IEnumerable<object> IDataProvider.GetData(IDataConsumer dataConsumer)
Parameters
Type | Name | Description |
---|---|---|
IDataConsumer | dataConsumer | The data consumer requesting the data. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | The data for a given data consumer. |
IRangeProvider.GetRange(IRangeConsumer)
Returns the data range.
Declaration
Range<IComparable> IRangeProvider.GetRange(IRangeConsumer rangeConsumer)
Parameters
Type | Name | Description |
---|---|---|
IRangeConsumer | rangeConsumer | The consumer requesting the range. |
Returns
Type | Description |
---|---|
Range<System.IComparable> | The data range. |
IValueMarginProvider.GetValueMargins(IValueMarginConsumer)
Returns the value margins for a given axis.
Declaration
IEnumerable<ValueMargin> IValueMarginProvider.GetValueMargins(IValueMarginConsumer axis)
Parameters
Type | Name | Description |
---|---|---|
IValueMarginConsumer | axis | The axis to retrieve the value margins for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ValueMargin> | A sequence of value margins. |