Skip to content

Commit 9dcd1b8

Browse files
Merge pull request #3536 from syncfusion-content/UG-Document-for-.NET-MAUI-Sunburst-Selection-support
973016-Added images for .NET MAUI Sunburst Selection and drill down support
2 parents 254d4f8 + 21ae851 commit 9dcd1b8

13 files changed

+28
-6
lines changed

MAUI/SunburstChart/DrillDown.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ this.Content = sunburst;
3434

3535
{% endtabs %}
3636

37+
![Drill Down in MAUI Sunburst Chart.](drill_down_images/maui_drill_down.gif)
38+
3739
## Toolbar Alignment
3840

3941
The vertical and the horizontal alignments of the toolbar can be customized using the `VerticalAlignment` and `HorizontalAlignment` properties, respectively.
@@ -52,7 +54,7 @@ Both the alignment properties has the following enum types:
5254
. . .
5355
<chart:SfSunburstChart.ToolbarSettings>
5456
<chart:SunburstToolbarSettings HorizontalAlignment="Center"
55-
VerticalAlignment="Center"/>
57+
VerticalAlignment="Center"/>
5658
</chart:SfSunburstChart.ToolbarSettings>
5759
</sunburst:SfSunburstChart>
5860

@@ -75,6 +77,8 @@ this.Content = sunburst;
7577

7678
{% endtabs %}
7779

80+
![Drill Down Toolbar Alignment.](drill_down_images/maui_toolbar_alignment.png)
81+
7882
## Toolbar Positioning
7983

8084
The toolbar's position within the Sunburst Chart can be adjusted both horizontally and vertically using the `OffsetX` and `OffsetY` properties of the `SunburstToolbarSettings` class.
@@ -86,7 +90,7 @@ The toolbar's position within the Sunburst Chart can be adjusted both horizontal
8690
<sunburst:SfSunburstChart EnableDrillDown="True">
8791
. . .
8892
<chart:SfSunburstChart.ToolbarSettings >
89-
<chart:SunburstToolbarSettings OffsetX="50" OffsetY="100"/>
93+
<chart:SunburstToolbarSettings OffsetX="-50" OffsetY="200"/>
9094
</chart:SfSunburstChart.ToolbarSettings>
9195
</sunburst:SfSunburstChart>
9296

@@ -99,8 +103,8 @@ sunburst.EnableDrillDown = true;
99103
. . .
100104
SunburstToolbarSettings toolbarSettings = new SunburstToolbarSettings()
101105
{
102-
OffsetX = 50,
103-
OffsetY = 100,
106+
OffsetX = -50,
107+
OffsetY = 200,
104108
};
105109
sunburst.ToolbarSettings = toolbarSettings;
106110
this.Content = sunburst;
@@ -109,6 +113,8 @@ this.Content = sunburst;
109113

110114
{% endtabs %}
111115

116+
![Drill Down Toolbar Positioning.](drill_down_images/maui_toolbar_positioning.png)
117+
112118
## Toolbar Customization
113119

114120
The appearance of the drill-down toolbar in the Sunburst Chart can be customized using the following properties
@@ -145,3 +151,5 @@ this.Content = sunburst;
145151
{% endhighlight %}
146152

147153
{% endtabs %}
154+
155+
![Drill Down TToolbar Customization.](drill_down_images/maui_toolbar_customization.png)
479 KB
Loading
15.2 KB
Loading
9.99 KB
Loading
12.2 KB
Loading

MAUI/SunburstChart/Selection.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ this.Content = sunburst;
5050

5151
{% endtabs %}
5252

53+
![Child selection in MAUI Sunburst Chart.](Selection_images/maui_selection_type_child.png)
54+
5355
The following code shows the `Group` selection type.
5456

5557
{% tabs %}
@@ -80,6 +82,8 @@ this.Content = sunburst;
8082

8183
{% endtabs %}
8284

85+
![Group selection in MAUI Sunburst Chart.](Selection_images/maui_selection_type_group.png)
86+
8387
The following code shows the `Parent` selection type.
8488

8589
{% tabs %}
@@ -110,6 +114,8 @@ this.Content = sunburst;
110114

111115
{% endtabs %}
112116

117+
![Parent selection in MAUI Sunburst Chart.](Selection_images/maui_selection_type_parent.png)
118+
113119
The following code shows the `Single` selection type.
114120

115121
{% tabs %}
@@ -140,6 +146,8 @@ this.Content = sunburst;
140146

141147
{% endtabs %}
142148

149+
![Single selection in MAUI Sunburst Chart.](Selection_images/maui_selection_type_single.png)
150+
143151
## DisplayMode
144152

145153
The `DisplayMode` property provides the following selection options to highlight the segments:
@@ -161,7 +169,7 @@ This mode highlights the selected segment using the brush defined in the `Fill`
161169
<chart:SfSunburstChart>
162170
. . .
163171
<chart:SfSunburstChart.SelectionSettings>
164-
<chart:SunburstSelectionSettings Fill="Pink" DisplayMode="HighlightByBrush" Type="Child"/>
172+
<chart:SunburstSelectionSettings Fill="DarkRed" DisplayMode="HighlightByBrush" Type="Child"/>
165173
</chart:SfSunburstChart.SelectionSettings>
166174
</chart:SfSunburstChart>
167175

@@ -173,7 +181,7 @@ SfSunburstChart sunburstChart = new SfSunburstChart();
173181
. . .
174182
SunburstSelectionSettings selectionSettings = new SunburstSelectionSettings
175183
{
176-
Fill = Colors.Pink,
184+
Fill = Colors.DarkRed,
177185
DisplayMode = SunburstSelectionDisplayMode.HighlightByBrush,
178186
Type = SunburstSelectionType.Child,
179187
};
@@ -184,6 +192,8 @@ this.Content = sunburst;
184192

185193
{% endtabs %}
186194

195+
![ DisplayMode HighlightByBrush.](Selection_images/maui_selection_highlight_by_brush.png)
196+
187197
### Opacity
188198

189199
This mode highlights the selected segment with full opacity as 1, while unselected segments use the opacity value defined in the `Opacity` property.
@@ -218,6 +228,8 @@ this.Content = sunburst;
218228

219229
{% endtabs %}
220230

231+
![ DisplayMode HighlightByOpacity.](Selection_images/maui_selection_highlight_by_opacity.png)
232+
221233
### Stoke
222234

223235
This mode highlights the selected segment by applying stroke to it. The color and thickness of the stroke can be customized using the `Stroke` and `StrokeWidth` properties.
@@ -253,6 +265,8 @@ this.Content = sunburst;
253265

254266
{% endtabs %}
255267

268+
![ DisplayMode HighlightByOpacity.](Selection_images/maui_selection_highlight_by_stroke.png)
269+
256270
## Events
257271

258272
### SelectionChanging
90.3 KB
Loading
21.9 KB
Loading
31.3 KB
Loading
30 KB
Loading

0 commit comments

Comments
 (0)