Class SunburstHierarchicalLevel
Represents the sunburst hierarchical levels.
Namespace: Syncfusion.Maui.SunburstChart
Assembly: Syncfusion.Maui.SunburstChart.dll
Syntax
public class SunburstHierarchicalLevel : BindableObject
Constructors
SunburstHierarchicalLevel()
Initializes a new instance of the SunburstHierarchicalLevel class.
Declaration
public SunburstHierarchicalLevel()
Fields
FillProperty
Identifies the Fill bindable property.
Declaration
public static readonly BindableProperty FillProperty
Field Value
| Type |
|---|
| BindableProperty |
GroupMemberPathProperty
Identifies the GroupMemberPath bindable property.
Declaration
public static readonly BindableProperty GroupMemberPathProperty
Field Value
| Type |
|---|
| BindableProperty |
Properties
Fill
Gets or sets the brush applied to all segments generated from this hierarchy level.
Declaration
public Brush Fill { get; set; }
Property Value
| Type | Description |
|---|---|
| Brush | The default value is |
Remarks
When set, every segment of this level is painted with this brush. When null, the segments are colored by the chart PaletteBrushes.
An explicit Microsoft.Maui.Controls.Brush.Transparent is honored as a real fill.
Selection with HighlightByBrush overrides this value. The legend icons follow the Fill of the first level (level 0). A Fill on any other level does not affect the legend, which keeps using the chart PaletteBrushes.
Examples
<sunburst:SfSunburstChart.Levels>
<sunburst:SunburstHierarchicalLevel GroupMemberPath="Country" Fill="Navy"/>
<sunburst:SunburstHierarchicalLevel GroupMemberPath="JobDescription"/>
</sunburst:SfSunburstChart.Levels>
chart.Levels[0].Fill = Brush.Navy;
GroupMemberPath
Gets or sets the GroupMemberPath property. This property is used to set the path of the value data in ItemsSource.
Declaration
public string GroupMemberPath { get; set; }
Property Value
| Type |
|---|
| string |