Skip to main content

ChartStyleBase Class

The base class for all chart styles.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

Declaration

public abstract class ChartStyleBase :
    StyledElement

Remarks

The ChartStyleBase class contains appearance settings common to all types of charts. For example, you can use properties of this class to specify a chart background color, palette, or padding.

Example

This example customizes 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:ChartView.ChartStyle>
    </dxc:ChartView>
</ContentPage>

Pie Chart Style

See Also