Xamarin.Android | ComponentOne
Controls / FlexChart / Features / Themes
In This Topic
    Themes
    In This Topic

    An easy way to enhance the appearance of the FlexChart control is to use pre-defined themes instead of customizing each element. The Palette property is used to specify the theme to be applied on the control.

    Note: Remove the Palette property from code to revert to the default theme.

    The image below shows how the FlexChart control appears when the Palette property is set to Modern.

    FlexChart with theme cocoa

    The following code example demonstrates how to set a theme in C#.

    In Code

    C#
    Copy Code
    mChart.Palette = Palette.Modern;

    FlexChart comes with pre-defined templates that can be applied for quick customization. Here are the 17 pre-defined templates available in the Palette enumeration.

    See Also