Class StackingArea100Series
The StackingArea100Series is a collection of data points, where the areas are stacked on top of each other to represent a percentage of the total for each category.
Inheritance
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class StackingArea100Series : StackingAreaSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent, IDrawCustomLegendIcon, IMarkerDependent
Remarks
The cumulative portion of each stacked element always total to 100%
To render a series, create an instance of StackingArea100Series class, and add it to the Series collection.
It provides options for Fill, PaletteBrushes, StrokeWidth, Stroke, StrokeDashArray and Opacity to customize the appearance.
EnableTooltip - A tooltip displays information while tapping or mouse hovering above a segment. To display the tooltip on a chart, you need to set the EnableTooltip property as true in StackingArea100Series class, and also refer TooltipBehavior property.
Data Label - Data labels are used to display values related to a chart segment. To render the data labels, you need to set the ShowDataLabels property as true in StackingArea100Series class. To customize the chart data labels placement, and label styles, you need to create an instance of CartesianDataLabelSettings and set to the DataLabelSettings property.
Animation - To animate the series, set True to the EnableAnimation property.
LegendIcon - To customize the legend icon using the LegendIcon property.
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis/>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
<chart:StackingArea100Series
ItemsSource = "{Binding MedalDetails}"
XBindingPath = "CountryName"
YBindingPath = "GoldMedals"/>
<chart:StackingArea100Series
ItemsSource = "{Binding MedalDetails}"
XBindingPath = "CountryName"
YBindingPath = "SilverMedals"/>
<chart:StackingArea100Series
ItemsSource = "{Binding MedalDetails}"
XBindingPath = "CountryName"
YBindingPath = "BronzeMedals"/>
</chart:SfCartesianChart>
Constructors
StackingArea100Series()
Declaration
public StackingArea100Series()
Methods
CreateSegment()
Creates and initializes a new chart segment for the chart.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type |
---|
ChartSegment |