Skip to main content
A newer version of this page is available. .

BarSeriesLabel Class

Stores bar series label settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public class BarSeriesLabel :
    SeriesLabel

The following members return BarSeriesLabel objects:

Remarks

The BarSeriesLabel class properties define bar series label settings:

  • TextPattern - Specifies the labels’ text format pattern.
  • Position - Specifies the position of labels relative to the corresponding bars.
  • Style - Provides access to label appearance settings (text color and size).

To configure series labels, assign a BarSeriesLabel object with the specified properties to the BarSeries.Label property.

Example

This example demonstrates how to add series labels to a bar chart, and customize their text pattern, layout and appearance.

Bar Series Label

<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>

Inheritance

Object
Xamarin.Forms.BindableObject
See Also