ComponentOne FlexChart for WinForms
Selection
Sunburst Chart > Selection

The Sunburst chart lets you select data points by clicking a Sunburst slice. You can set the SelectionMode property provided by the FlexChartBase class to either of the following values in the ChartSelectionMode enumeration:

To customize the selection, you can use the SelectedItemOffset and the SelectedItemPosition property provided by the FlexPie class. The SelectedItemOffset property enables you to specify the offset of the selected Sunburst slice from the center of the control. And the SelectedItemPosition property allows you to specify the position of the selected Sunburst slice. The SelectedItemPosition property accepts values from the Position enumeration. Setting this property to a value other than 'None' causes the pie to rotate when an item is selected.

In addition, the FlexChartBase class provides the SelectionStyle property that can be used to access the properties provided by the ChartStyle class to style the Sunburst chart.

The following image displays Sunburst chart with a data point selected.

The following code snippet sets these properties:

' set the selection mode
Sunburst1.SelectionMode = C1.Chart.ChartSelectionMode.Point

' set the selected item position
Sunburst1.SelectedItemPosition = C1.Chart.Position.Auto

' set the selected item offset
Sunburst1.SelectedItemOffset = 0.2
// set the selection mode
sunburst1.SelectionMode = C1.Chart.ChartSelectionMode.Point;

// set the selected item position
sunburst1.SelectedItemPosition = C1.Chart.Position.Auto;

// set the selected item offset
sunburst1.SelectedItemOffset = 0.2;