ChartStyleBase.Padding Property
Gets or sets the space between the chart borders and its contents.
Namespace: DevExpress.XamarinForms.Charts
Assembly: DevExpress.XamarinForms.Charts.dll
NuGet Package: DevExpress.XamarinForms.Charts
Declaration
public Padding Padding { get; set; }
Property Value
Type | Description |
---|---|
Padding | The space between the chart borders and its contents. |
Example
This example demonstrates how to customize the appearance and layout of a chart.
<ContentPage>
<ContentPage.BindingContext>
<local:ViewModel/>
</ContentPage.BindingContext>
<dxc:ChartView>
<!--...-->
<dxc:ChartView.ChartStyle>
<dxc:ChartStyle Palette="{Binding Palette}"
BackgroundColor="#bcebf7"
Padding="100, 50, 50, 50"
BorderColor="#800404"
BorderThickness="10"/>
</dxc:ChartStyle>
</dxc:ChartView.ChartStyle>
</dxc:ChartView>
</ContentPage>
See Also