LegendStyle.ItemsHorizontalIndent Property

Gets or sets the indent between legend items when they are arranged in a row.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll


public int ItemsHorizontalIndent { get; set; }

Property Value

Type Description

The indent between legend items, in scale-independent units.


Use the ItemsHorizontalIndent property to specify the distance between items when the legend is oriented horizontally (the Legend.Orientation property is set to LeftToRight). To control the spacing between items of a vertical legend, use the ItemsVerticalIndent property.

Legend Style


This example shows how to add a legend to a pie chart and adjust the legend settings.

  1. To add a legend to the chart, assign a Legend object to the PieChartView.Legend property and use the following properties of this object to specify the legend orientation and position:

  2. Set the Legend.Style property to a LegendStyle object and specify the following properties of this object to configure the legend appearance:

  3. To exclude points of the chart’s first series from the legend, set the VisibleInLegend property of this series to false.

Chart Legend

<dxc:PieChartView x:Name="chartView">
        <dxc:DonutSeries Data="{Binding SecuritiesByTypes}" VisibleInLegend="False"/>
        <dxc:DonutSeries Data="{Binding SecuritiesByRisk}"/>
        <dxc:Legend Orientation="LeftToRight"
                <dxc:LegendStyle BorderColor="LightGray" BorderThickness="3"
                                 MarkerSize="30" TextIndent="10"
                        <dxc:TextStyle Color="White" Size="24"/>
See Also