-
Notifications
You must be signed in to change notification settings - Fork 29
973017-Document-for-.NET-MAUI-Sunburst-DrillDown-support #3525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Saravanan-Madhesh
merged 8 commits into
development
from
Document-for-.NET-MAUI-Sunburst-DrillDown-support
Aug 19, 2025
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5f7e73a
commit
EzhilarasanElangovan31 254272d
Commit
EzhilarasanElangovan31 ad4e84b
commit
EzhilarasanElangovan31 076432c
commit
EzhilarasanElangovan31 d6a0c3f
commit
EzhilarasanElangovan31 52b71ec
commit
EzhilarasanElangovan31 18bdec5
Update DrillDown.md
VimalaThirumalaikumar 655ca84
Merge branch 'development' of https://github.com/syncfusion-content/m…
VimalaThirumalaikumar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
--- | ||
layout: post | ||
title: Drill down in .NET MAUI Sunburst Chart control | Syncfusion | ||
description: This section explains how to enable and customize drill down toolbar in the Syncfusion<sup>®</sup> .NET MAUI Sunburst Chart control. | ||
EzhilarasanElangovan31 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
platform: maui | ||
control: SfSunburstChart | ||
documentation: ug | ||
--- | ||
|
||
# Drill Down in .NET MAUI Sunburst Chart | ||
|
||
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. | ||
|
||
To enable this feature, set the `EnableDrillDown` property to true in [SfSunburstChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.SunburstChart.SfSunburstChart.html). | ||
EzhilarasanElangovan31 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
{% tabs %} | ||
|
||
{% highlight xaml %} | ||
|
||
<sunburst:SfSunburstChart EnableDrillDown="True" > | ||
. . . | ||
</sunburst:SfSunburstChart> | ||
|
||
{% endhighlight %} | ||
|
||
{% highlight c# %} | ||
|
||
SfSunburstChart sunburst = new SfSunburstChart(); | ||
sunburst.EnableDrillDown = true; | ||
. . . | ||
this.Content = sunburst; | ||
|
||
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
## Toolbar Alignment | ||
|
||
The vertical and the horizontal alignments of the toolbar can be customized using the `VerticalAlignment` and `HorizontalAlignment` properties, respectively. | ||
|
||
Both the alignment properties has the following enum types: | ||
|
||
* Start: Aligns the toolbar to the top (for vertical) or left (for horizontal) of the chart plot area. | ||
* Center: Aligns the toolbar to the center of the chart plot area, either vertically or horizontally. | ||
* End: Aligns the toolbar to the bottom (for vertical) or right (for horizontal) of the chart plot area. | ||
|
||
{% tabs %} | ||
|
||
{% highlight xaml %} | ||
|
||
<sunburst:SfSunburstChart EnableDrillDown="True"> | ||
. . . | ||
<chart:SfSunburstChart.ToolbarSettings> | ||
<chart:SunburstDrillDownToolbarSettings HorizontalAlignment="Center" | ||
EzhilarasanElangovan31 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
VerticalAlignment="Center"/> | ||
</chart:SfSunburstChart.ToolbarSettings> | ||
</sunburst:SfSunburstChart> | ||
|
||
{% endhighlight %} | ||
|
||
{% highlight c# %} | ||
|
||
SfSunburstChart sunburst = new SfSunburstChart(); | ||
sunburst.EnableDrillDown = true; | ||
. . . | ||
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings() | ||
{ | ||
HorizontalAlignment = SunburstToolbarAlignment.Center, | ||
VerticalAlignment = SunburstToolbarAlignment.Center, | ||
}; | ||
sunburst.ToolbarSettings = toolbarSettings; | ||
this.Content = sunburst; | ||
|
||
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
## Toolbar Positioning | ||
|
||
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. | ||
|
||
{% tabs %} | ||
|
||
{% highlight xaml %} | ||
|
||
<sunburst:SfSunburstChart EnableDrillDown="True"> | ||
. . . | ||
<chart:SfSunburstChart.ToolbarSettings > | ||
<chart:SunburstDrillDownToolbarSettings OffsetX="50" OffsetY="100"/> | ||
</chart:SfSunburstChart.ToolbarSettings> | ||
</sunburst:SfSunburstChart> | ||
|
||
{% endhighlight %} | ||
|
||
{% highlight c# %} | ||
|
||
SfSunburstChart sunburst = new SfSunburstChart(); | ||
sunburst.EnableDrillDown = true; | ||
. . . | ||
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings() | ||
{ | ||
OffsetX = 50, | ||
OffsetY = 100, | ||
}; | ||
sunburst.ToolbarSettings = toolbarSettings; | ||
this.Content = sunburst; | ||
|
||
{% endhighlight %} | ||
|
||
{% endtabs %} | ||
|
||
## Toolbar Customization | ||
|
||
The appearance of the drill-down toolbar in the Sunburst Chart can be customized using the following properties | ||
|
||
* `IconBrush`: Gets or sets the brush used to style the icons within the drill-down toolbar. | ||
* `Background`: Gets or sets the background brush of the drill-down toolbar. | ||
|
||
{% tabs %} | ||
|
||
{% highlight xaml %} | ||
|
||
<sunburst:SfSunburstChart EnableDrillDown="True"> | ||
. . . | ||
<chart:SfSunburstChart.ToolbarSettings> | ||
<chart:SunburstDrillDownToolbarSettings IconBrush="White" Background="#2989F9"/> | ||
</chart:SfSunburstChart.ToolbarSettings> | ||
</sunburst:SfSunburstChart> | ||
|
||
{% endhighlight %} | ||
|
||
{% highlight c# %} | ||
|
||
SfSunburstChart sunburst = new SfSunburstChart(); | ||
sunburst.EnableDrillDown = true; | ||
. . . | ||
SunburstDrillDownToolbarSettings toolbarSettings = new SunburstDrillDownToolbarSettings() | ||
{ | ||
IconBrush = Colors.White, | ||
ackground = new SolidColorBrush(Color.FromArgb("#2989F9")), | ||
}; | ||
sunburst.ToolbarSettings = toolbarSettings; | ||
this.Content = sunburst; | ||
|
||
{% endhighlight %} | ||
|
||
{% endtabs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.