maui-devexpress-dot-maui-dot-charts-61344946.md
Stores bar series label settings.
Namespace : DevExpress.Maui.Charts
Assembly : DevExpress.Maui.Charts.dll
NuGet Package : DevExpress.Maui.Charts
public class BarSeriesLabel :
BarSeriesLabelBase
The following members return BarSeriesLabel objects:
The BarSeriesLabel class properties define bar series label settings:
To configure series labels, assign a BarSeriesLabel object with the specified properties to the BarSeries.Label property.
This example adds series labels to a bar chart, and customize their text pattern, layout and appearance.
<dxc:ChartView>
<dxc:ChartView.Series>
<dxc:BarSeries>
<dxc:BarSeries.Label>
<dxc:BarSeriesLabel Position="InsideTop"
Indent="50"
TextPattern="{}{V$.###}">
<dxc:BarSeriesLabel.Style>
<dxc:SeriesLabelStyle>
<dxc:SeriesLabelStyle.TextStyle>
<dxc:TextStyle Color="White" Size="24"/>
</dxc:SeriesLabelStyle.TextStyle>
</dxc:SeriesLabelStyle>
</dxc:BarSeriesLabel.Style>
</dxc:BarSeriesLabel>
</dxc:BarSeries.Label>
</dxc:BarSeries>
</dxc:ChartView.Series>
</dxc:ChartView>
barSeries.Label = new BarSeriesLabel {
Position = BarSeriesLabelPosition.InsideTop,
Indent = 50,
TextPattern = "{V$.###}",
Style = new SeriesLabelStyle {
TextStyle = new TextStyle {Color = Color.White, Size = 24}
}
};
System.Object BindableObject Element ChartElementBase ChartElement StyledElement SeriesLabel BarSeriesLabelBase BarSeriesLabel StackedBarSeriesLabel
YieldIfNotNull<BarSeriesLabel>()
See Also