Skip to content

Commit ad4e84b

Browse files
commit
1 parent 254272d commit ad4e84b

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

MAUI/Release-notes/v30.1.37.md

Whitespace-only changes.

MAUI/SunburstChart/DrillDown.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ documentation: ug
99

1010
# Drill Down in .NET MAUI Sunburst Chart
1111

12-
The drill-down provides better visualization of hierarchy. Large set of data can be virtualized into minimal views. Each level of the segments can be drilled down. The sunburst chart provides animation along with the drill-down support. Double tapping the segment performs the drill-down operation. Toolbar will be enabled on drill-down that helps in performing zoom back and reset operations.
12+
The drill-down provides better visualization of hierarchy. Large set of data can be virtualized into minimal views. Each level of the segments can be drilled down. The Sunburst Chart provides animation along with the drill-down support. Double tapping the segment performs the drill-down operation. Toolbar will be enabled on drill-down that helps in performing zoom back and reset operations.
1313

14-
To enable this feature, set the `EnableDrillDown` property to true:
14+
To enable this feature, set the `EnableDrillDown` property to true in SfSunburstChart.
1515

1616
{% tabs %}
1717

@@ -26,26 +26,33 @@ To enable this feature, set the `EnableDrillDown` property to true:
2626
{% highlight c# %}
2727

2828
SfSunburstChart sunburst = new SfSunburstChart();
29-
sunburst.ShowLabels = true;
29+
sunburst.EnableDrillDown = true;
3030
. . .
3131
this.Content = sunburst;
3232

3333
{% endhighlight %}
3434

3535
{% endtabs %}
3636

37-
## Positioning Toolbar
37+
## Toolbar alignment
3838

39-
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.
39+
The vertical and the horizontal alignments of the toolbar can be customized using the `VerticalAlignment` and `HorizontalAlignment` properties, respectively.
40+
41+
Both the alignment properties has the following enum types:
42+
43+
* Start: Aligns the toolbar to the top (for vertical) or left (for horizontal) of the chart plot area.
44+
* Center: Aligns the toolbar to the center of the chart plot area, either vertically or horizontally.
45+
* End: Aligns the toolbar to the bottom (for vertical) or right (for horizontal) of the chart plot area.
4046

4147
{% tabs %}
4248

4349
{% highlight xml %}
4450

4551
<sunburst:SfSunburstChart EnableDrillDown="True">
4652
. . .
47-
<chart:SfSunburstChart.ToolbarSettings >
48-
<chart:SunburstDrillDownToolbarSettings OffsetY="100" OffsetX="50"/>
53+
<chart:SfSunburstChart.ToolbarSettings>
54+
<chart:SunburstDrillDownToolbarSettings HorizontalAlignment="Center"
55+
VerticalAlignment="Center"/>
4956
</chart:SfSunburstChart.ToolbarSettings>
5057
</sunburst:SfSunburstChart>
5158

@@ -54,12 +61,12 @@ The toolbar's position within the Sunburst Chart can be adjusted both horizontal
5461
{% highlight c# %}
5562

5663
SfSunburstChart sunburst = new SfSunburstChart();
57-
sunburst.ShowLabels = true;
64+
sunburst.EnableDrillDown = true;
5865
. . .
5966
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings()
6067
{
61-
OffsetX = 100,
62-
OffsetY = 50,
68+
HorizontalAlignment = SunburstToolbarAlignment.Center,
69+
VerticalAlignment = SunburstToolbarAlignment.Center,
6370
};
6471
sunburst.ToolbarSettings = toolbarSettings;
6572
this.Content = sunburst;
@@ -68,15 +75,12 @@ this.Content = sunburst;
6875

6976
{% endtabs %}
7077

71-
## Toolbar alignment
72-
73-
The vertical and the horizontal alignments of the toolbar can be customized using the `VerticalAlignment` and `HorizontalAlignment` properties, respectively.
78+
## Toolbar customization
7479

75-
Both the alignment properties has the following enum types:
80+
The appearance of the drill-down toolbar in the Sunburst Chart can be customized using the following properties
7681

77-
* Center: Toolbar takes the specified offset value as the center of the toolbar and get positioned.
78-
* End: Toolbar takes the specified offset value as the start of the toolbar and get positioned.
79-
* Start: Toolbar takes the specified offset value as the end of the toolbar and get positioned.
82+
* `IconBrush`: Gets or sets the brush used to style the icons within the drill-down toolbar.
83+
* `Background`: Gets or sets the background brush of the drill-down toolbar.
8084

8185
{% tabs %}
8286

@@ -85,8 +89,7 @@ Both the alignment properties has the following enum types:
8589
<sunburst:SfSunburstChart EnableDrillDown="True">
8690
. . .
8791
<chart:SfSunburstChart.ToolbarSettings>
88-
<chart:SunburstDrillDownToolbarSettings HorizontalAlignment="Center"
89-
VerticalAlignment="Center"/>
92+
<chart:SunburstDrillDownToolbarSettings IconBrush="White" Background="#2989F9"/>
9093
</chart:SfSunburstChart.ToolbarSettings>
9194
</sunburst:SfSunburstChart>
9295

@@ -95,12 +98,12 @@ Both the alignment properties has the following enum types:
9598
{% highlight c# %}
9699

97100
SfSunburstChart sunburst = new SfSunburstChart();
98-
sunburst.ShowLabels = true;
101+
sunburst.EnableDrillDown = true;
99102
. . .
100103
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings()
101104
{
102-
HorizontalAlignment = SunburstToolbarAlignment.Center,
103-
VerticalAlignment = SunburstToolbarAlignment.Center,
105+
IconBrush = Colors.White,
106+
ackground = new SolidColorBrush(Color.FromArgb("#2989F9")),
104107
};
105108
sunburst.ToolbarSettings = toolbarSettings;
106109
this.Content = sunburst;
@@ -109,21 +112,18 @@ this.Content = sunburst;
109112

110113
{% endtabs %}
111114

112-
## Toolbar customization
113-
114-
The appearance of the drill-down toolbar in the Sunburst Chart can be customized using the following properties
115+
## Toolbar Positioning
115116

116-
* `IconBrush`: Gets or sets the brush used to style the icons within the drill-down toolbar.
117-
* `Background`: Gets or sets the background brush of the drill-down toolbar.
117+
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.
118118

119119
{% tabs %}
120120

121121
{% highlight xml %}
122122

123123
<sunburst:SfSunburstChart EnableDrillDown="True">
124124
. . .
125-
<chart:SfSunburstChart.ToolbarSettings>
126-
<chart:SunburstDrillDownToolbarSettings IconBrush="White" Background="#2989F9"/>
125+
<chart:SfSunburstChart.ToolbarSettings >
126+
<chart:SunburstDrillDownToolbarSettings OffsetY="100" OffsetX="50"/>
127127
</chart:SfSunburstChart.ToolbarSettings>
128128
</sunburst:SfSunburstChart>
129129

@@ -132,12 +132,12 @@ The appearance of the drill-down toolbar in the Sunburst Chart can be customized
132132
{% highlight c# %}
133133

134134
SfSunburstChart sunburst = new SfSunburstChart();
135-
sunburst.ShowLabels = true;
135+
sunburst.EnableDrillDown = true;
136136
. . .
137137
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings()
138138
{
139-
IconBrush = Colors.Wheat,
140-
ackground = new SolidColorBrush(Color.FromArgb("#2989F9")),
139+
OffsetX = 100,
140+
OffsetY = 50,
141141
};
142142
sunburst.ToolbarSettings = toolbarSettings;
143143
this.Content = sunburst;

0 commit comments

Comments
 (0)