Class PieSeries
Represents a control that contains a data series to be rendered in pie format.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
[StyleTypedProperty(Property = "DataPointStyle", StyleTargetType = typeof(PieDataPoint))]
[StyleTypedProperty(Property = "LegendItemStyle", StyleTargetType = typeof(LegendItem))]
[TemplatePart(Name = "PlotArea", Type = typeof(Canvas))]
public class PieSeries : DataPointSeries, IControl, IFrameworkElement, IUIElement, IDependencyObject, ISeries, IRequireSeriesHost, IResourceDictionaryDispenser, IRequireGlobalSeriesIndex
Constructors
| Improve this Doc View SourcePieSeries()
Initializes a new instance of the PieSeries class.
Declaration
public PieSeries()
Fields
| Improve this Doc View SourcePaletteProperty
Identifies the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
| Improve this Doc View SourcePalette
Gets or sets a palette of ResourceDictionaries used by the series.
Declaration
public Collection<ResourceDictionary> Palette { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.Collection<ResourceDictionary> |
Methods
| Improve this Doc View SourceAddDataPoint(DataPoint)
Creates a legend item for each data point.
Declaration
protected override void AddDataPoint(DataPoint dataPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| DataPoint | dataPoint | The data point added. |
Overrides
| Improve this Doc View SourceAttachEventHandlersToDataPoint(DataPoint)
Attach event handlers to a data point.
Declaration
protected override void AttachEventHandlersToDataPoint(DataPoint dataPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| DataPoint | dataPoint | The data point. |
Overrides
| Improve this Doc View SourceCreateDataPoint()
Creates a data point.
Declaration
protected override DataPoint CreateDataPoint()
Returns
| Type | Description |
|---|---|
| DataPoint | A data point. |
Overrides
| Improve this Doc View SourceCreatePieLegendItem(DataPoint, Int32)
Creates a legend item from a data point.
Declaration
protected virtual LegendItem CreatePieLegendItem(DataPoint dataPoint, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| DataPoint | dataPoint | The data point to use to create the legend item. |
| System.Int32 | index | The 1-based index of the Control. |
Returns
| Type | Description |
|---|---|
| LegendItem | The series host legend item. |
DetachEventHandlersFromDataPoint(DataPoint)
Detaches event handlers from a data point.
Declaration
protected override void DetachEventHandlersFromDataPoint(DataPoint dataPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| DataPoint | dataPoint | The data point. |
Overrides
| Improve this Doc View SourceGetResourceDictionariesWhere(Func<ResourceDictionary, Boolean>)
Returns a rotating enumerator of ResourceDictionary objects that coordinates with the dispenser object to ensure that no two enumerators are on the same item. If the dispenser is reset or its collection is changed then the enumerators are also reset.
Declaration
public IEnumerator<ResourceDictionary> GetResourceDictionariesWhere(Func<ResourceDictionary, bool> predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<ResourceDictionary, System.Boolean> | predicate | A predicate that returns a value indicating whether to return an item. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<ResourceDictionary> | An enumerator of ResourceDictionaries. |
GlobalSeriesIndexChanged(Nullable<Int32>)
This method updates the global series index property.
Declaration
public void GlobalSeriesIndexChanged(int? globalIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int32> | globalIndex | The global index of the series. |
OnBeforeUpdateDataPoints()
Updates all ratios before data points are updated.
Declaration
protected override void OnBeforeUpdateDataPoints()
Overrides
| Improve this Doc View SourceOnDataPointDependentValueChanged(DataPoint, IComparable, IComparable)
Updates the data point when the dependent value is changed.
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)
Updates the data point when the independent value is changed.
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 SourceOnDataPointStylePropertyChanged(Style, Style)
DataPointStyleProperty property changed handler.
Declaration
protected override void OnDataPointStylePropertyChanged(Style oldValue, Style newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| Style | oldValue | Old value. |
| Style | newValue | New value. |
Overrides
| Improve this Doc View SourceOnLegendItemStylePropertyChanged(Style, Style)
Called when the value of the LegendItemStyle property changes.
Declaration
protected override void OnLegendItemStylePropertyChanged(Style oldValue, Style newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| Style | oldValue | Old value. |
| Style | newValue | New value. |
Overrides
| Improve this Doc View SourceOnResourceDictionariesChanged(EventArgs)
Invokes the ResourceDictionariesChanged event.
Declaration
protected virtual void OnResourceDictionariesChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | Event arguments. |
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 SourceRemoveDataPoint(DataPoint)
Removes data point's legend item when the data point is removed.
Declaration
protected override void RemoveDataPoint(DataPoint dataPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| DataPoint | dataPoint | The data point to remove. |
Overrides
| Improve this Doc View SourceUpdateDataPoint(DataPoint)
Updates a data point.
Declaration
protected override void UpdateDataPoint(DataPoint dataPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| DataPoint | dataPoint | The data point to update. |
Overrides
Events
| Improve this Doc View SourceResourceDictionariesChanged
Event that is invoked when the ResourceDictionaryDispenser's collection has changed.
Declaration
public event EventHandler ResourceDictionariesChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler |