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

    You can choose what element of the FlexChart should be selected when the user taps on any region in a FlexChart by setting the SelectionMode property and ChartSelectionModeType enumeration. This property provides three options:

    The images below shows how the FlexChart appears after these properties are set.

    When SelectionMode is set to Series

    When SelectionMode is set to Point

    The following code examples demonstrate how to set these properties in C#. These examples use the sample created in the Quick Start section.

    In Code

    C#
    Copy Code
    mChart.Selected = true;mChart.SelectionMode = ChartSelectionModeType.Series;mChart.SelectionStyle.Fill = Color.LightSeaGreen;