Class StackingColumn100Series
The StackingColumn100Series is a chart type that shows a set of vertical bars stacked on top of each other to represent a percentage of the total for each category.
Inheritance
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class StackingColumn100Series : StackingColumnSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent, IDrawCustomLegendIcon, ISBSDependent
Remarks
The cumulative portion of each stacked element always total to 100%
To render a series, create an instance of StackingColumn100Series class, and add it to the Series collection.
It provides options for Fill, PaletteBrushes, StrokeWidth, Stroke, 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 StackingColumn100Series 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 StackingColumn100Series class. To customize the chart data labels alignment, 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.
Spacing - To specify the spacing between segments using the Spacing property.
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis/>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
<chart:StackingColumn100Series
ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"/>
<chart:StackingColumn100Series
ItemsSource="{Binding Data_1}"
XBindingPath="XValue"
YBindingPath="YValue"/>
<chart:StackingColumn100Series
ItemsSource="{Binding Data_2}"
XBindingPath="XValue"
YBindingPath="YValue"/>
</chart:SfCartesianChart>
Constructors
StackingColumn100Series()
Declaration
public StackingColumn100Series()
Methods
CreateSegment()
This method used to Create the Segment for the series
Declaration
protected override ChartSegment CreateSegment()
Returns
Type |
---|
ChartSegment |