ChartBaseView.Theme Property
Specifies the chart’s current theme.
Namespace: DevExpress.XamarinForms.Charts
Assembly: DevExpress.XamarinForms.Charts.dll
NuGet Package: DevExpress.XamarinForms.Charts
Declaration
public ChartTheme Theme { get; set; }
Property Value
Type | Description |
---|---|
ChartTheme | The value that specifies the chart’s theme. |
Available values:
Name | Description |
---|---|
Light | The chart’s light theme. |
Dark | The chart’s dark theme. |
Remarks
You can also use the ChartView.ChartStyle and PieChartView.ChartStyle properties to customize the chart view appearance (for example, change the border color and thickness, background color and colors used to draw a chart’s series).
Example
This example shows how to apply the dark theme to the chart view.
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ChartThemeExample.MainPage"
xmlns:dxc="http://schemas.devexpress.com/xamarin/2014/forms/charts">
<dxc:ChartView Theme="Dark">
<!--...-->
</dxc:ChartView>
</ContentPage>
See Also