Class ColumnBarBaseSeries<T>
This series serves as the base class for the column and bar series.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public abstract class ColumnBarBaseSeries<T> : DataPointSingleSeriesWithAxes, ISeries, IRequireSeriesHost, IDataProvider, IRangeProvider, IAxisListener, IValueMarginProvider, IRequireGlobalSeriesIndex, IAnchoredToOrigin where T : DataPoint, new()
Type Parameters
Name | Description |
---|---|
T | The type of the data point. |
Constructors
| Improve this Doc View SourceColumnBarBaseSeries()
Initializes a new instance of the ColumnBarBaseSeries class.
Declaration
protected ColumnBarBaseSeries()
Fields
| Improve this Doc View SourceDependentRangeAxisProperty
Identifies the DependentRangeAxis dependency property.
Declaration
public static readonly DependencyProperty DependentRangeAxisProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IndependentAxisProperty
Identifies the IndependentAxis dependency property.
Declaration
public static readonly DependencyProperty IndependentAxisProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceActualDependentRangeAxis
Gets the dependent axis as a range axis.
Declaration
public IRangeAxis ActualDependentRangeAxis { get; }
Property Value
Type | Description |
---|---|
IRangeAxis |
ActualIndependentAxis
Gets the independent axis as a category axis.
Declaration
public IAxis ActualIndependentAxis { get; }
Property Value
Type | Description |
---|---|
IAxis |
DependentRangeAxis
Gets or sets the dependent range axis.
Declaration
public IRangeAxis DependentRangeAxis { get; set; }
Property Value
Type | Description |
---|---|
IRangeAxis |
IndependentAxis
Gets or sets the independent category axis.
Declaration
public IAxis IndependentAxis { get; set; }
Property Value
Type | Description |
---|---|
IAxis |
Methods
| Improve this Doc View SourceCalculateDataPointLength()
Calculates the length of the data points.
Declaration
protected void CalculateDataPointLength()
CreateDataPoint()
Creates the bar data point.
Declaration
protected override DataPoint CreateDataPoint()
Returns
Type | Description |
---|---|
DataPoint | A bar data point. |
Overrides
| Improve this Doc View SourceGetCategoryRange(Object)
Gets a range in which to render a data point.
Declaration
protected Range<UnitValue> GetCategoryRange(object category)
Parameters
Type | Name | Description |
---|---|---|
System.Object | category | The category to retrieve the range for. |
Returns
Type | Description |
---|---|
Range<UnitValue> | The range in which to render a data point. |
GetDataPointGroup(Object)
Returns the group of data points in a given category.
Declaration
protected IGrouping<object, DataPoint> GetDataPointGroup(object category)
Parameters
Type | Name | Description |
---|---|---|
System.Object | category | The category for which to return the data point group. |
Returns
Type | Description |
---|---|
IGrouping<System.Object, DataPoint> | The group of data points in a given category. |
GetIsDataPointGrouped(Object)
Returns a value indicating whether a data point corresponding to a category is grouped.
Declaration
protected bool GetIsDataPointGrouped(object category)
Parameters
Type | Name | Description |
---|---|---|
System.Object | category | The category. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether a data point corresponding to a category is grouped. |
GetResourceDictionaryEnumeratorFromHost()
Returns the custom ResourceDictionary to use for necessary resources.
Declaration
protected override IEnumerator<ResourceDictionary> GetResourceDictionaryEnumeratorFromHost()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ResourceDictionary> | ResourceDictionary to use for necessary resources. |
Overrides
| Improve this Doc View SourceGetValueMargins(IValueMarginConsumer)
Returns the value margins for a given axis.
Declaration
protected override 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. |
Overrides
| Improve this Doc View SourceOnBeforeUpdateDataPoints()
Method run before DataPoints are updated.
Declaration
protected override void OnBeforeUpdateDataPoints()
Overrides
| Improve this Doc View SourceOnDataPointActualDependentValueChanged(DataPoint, IComparable, IComparable)
Updates a data point when its actual dependent value has changed.
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 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 SourceOnSeriesHostPropertyChanged(ISeriesHost, ISeriesHost)
Redraw other column series when removed from a series host.
Declaration
protected override void OnSeriesHostPropertyChanged(ISeriesHost oldValue, ISeriesHost newValue)
Parameters
Type | Name | Description |
---|---|---|
ISeriesHost | oldValue | The old value of the series host property. |
ISeriesHost | newValue | The new value of the series host property. |
Overrides
| Improve this Doc View SourceRedrawOtherSeries(ISeriesHost)
Redraws other column series to assure they allocate the right amount of space for their columns.
Declaration
protected void RedrawOtherSeries(ISeriesHost seriesHost)
Parameters
Type | Name | Description |
---|---|---|
ISeriesHost | seriesHost | The series host to update. |
Explicit Interface Implementations
| Improve this Doc View SourceIAnchoredToOrigin.AnchoredAxis
Gets the axis to which the data is anchored.
Declaration
IRangeAxis IAnchoredToOrigin.AnchoredAxis { get; }
Returns
Type | Description |
---|---|
IRangeAxis |