You can choose which element of the Sunburst chart should be selected when the user clicks on any region in Sunburst chart by setting the SelectionMode property. The three different options provided are as follows:
When the SelectionMode is set to Point, you can change the position of the selected sunburst slice by setting the SelectedItemPosition property. Also, you can set the SelectedItemOffset property to move the selected sunburst slice away from the center.
The image below show how the Sunburst chart appears after you set the SelectionMode property.
The following code example demonstrates how to set the SelectionMode property. This example uses the sample created in the Quick Start topic.
In CodeRazor |
Copy Code
|
---|---|
.SelectionMode(C1.Web.Mvc.Chart.SelectionMode.Point) .SelectedItemPosition(C1.Web.Mvc.Chart.Position.Top) .SelectedItemOffset(0.1f) |