Class SunburstLegendClickEventArgs<TItem>
Provides data for the OnLegendClick event, which is raised when a legend item is clicked. Cancellation prevents the represented branch visibility change.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.Charts.dll
Syntax
public class SunburstLegendClickEventArgs<TItem>
Type Parameters
| Name | Description |
|---|---|
| TItem | The type of the data item bound to the chart. |
Constructors
SunburstLegendClickEventArgs()
Declaration
public SunburstLegendClickEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the legend item click should be canceled, preventing the represented branch visibility change.
Declaration
public bool Cancel { get; set; }
Property Value
| Type |
|---|
| bool |
EventName
Gets the canonical name of the event.
Declaration
public string EventName { get; }
Property Value
| Type |
|---|
| string |
LegendIndex
Gets or sets the index of the legend item being clicked.
Declaration
public int LegendIndex { get; set; }
Property Value
| Type |
|---|
| int |
ShapeColor
Gets or sets the shape color of the clicked legend item.
Declaration
public string ShapeColor { get; set; }
Property Value
| Type |
|---|
| string |
Source
Gets the original source data item represented by the legend item.
Declaration
public TItem? Source { get; }
Property Value
| Type |
|---|
| TItem |
Text
Gets or sets the text of the clicked legend item.
Declaration
public string Text { get; set; }
Property Value
| Type |
|---|
| string |