Class SunburstLegendBorder
Configures the border settings of the Sunburst chart legend.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.Charts.dll
Syntax
public class SunburstLegendBorder : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
Remarks
The SunburstLegendBorder component provides options for customizing the appearance of the border displayed around the legend.
Use this component to control the border color and width, helping the legend stand out from the surrounding chart content.
Examples
<SfSunburstChart>
<SunburstLegendSettings Visible="true">
<SunburstLegendBorder Color="#808080" Width="1" />
</SunburstLegendSettings>
</SfSunburstChart>
Constructors
SunburstLegendBorder()
Declaration
public SunburstLegendBorder()
Properties
Color
Gets or sets the color of the legend border.
Declaration
[Parameter]
public string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string that specifies the color of the legend border.
The default value is |
Remarks
This property controls the color of the border displayed around the legend.
The color can be specified using standard CSS color formats, such as named colors, hexadecimal values, RGB values, and RGBA values.
Examples
<SfSunburstChart>
<SunburstLegendSettings>
<SunburstLegendBorder Color="red" />
</SunburstLegendSettings>
</SfSunburstChart>
Width
Gets or sets the width of the legend border.
Declaration
[Parameter]
public double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double value that specifies the width of the legend
border, in pixels. The default value is |
Remarks
This property controls the thickness of the border displayed around the legend.
Set the value to 0 to hide the legend border. Increasing the
value makes the border thicker and more prominent.
Examples
<SfSunburstChart>
<SunburstLegendSettings Visible="true">
<SunburstLegendBorder Color="#808080" Width="1" />
</SunburstLegendSettings>
</SfSunburstChart>