Class AxisLabelClickEventArgs
Specifies the event arguments available for on axis label click events in the chart component.
Inheritance
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class AxisLabelClickEventArgs : BaseEventArgs
Properties
Axis
Defines the current axis.
Declaration
public ChartAxis Axis { get; }
Property Value
Remarks
This is a read-only property providing the context of the axis for the label click.
Chart
Defines the chart instance when labelClick.
Declaration
public SfChart Chart { get; }
Property Value
Remarks
This is a read-only property giving access to the chart related to the label click event.
Index
Defines axis current label index.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Accepts an integer value. |
Remarks
This property provides the index of the label within the axis labels collection.
LabelID
Defines axis current label element id.
Declaration
public string LabelID { get; }
Property Value
Type | Description |
---|---|
System.String | Accepts the string value. |
Remarks
This property provides the ID of the axis label element that was clicked.
Location
Defines the current annotation location.
Declaration
public ChartEventLocation Location { get; }
Property Value
Type | Description |
---|---|
ChartEventLocation | A ChartEventLocation object that defines the current annotation location. |
Remarks
This property provides the location details where the annotation associated with the label click is placed.
Text
Defines axis current label text.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String | Accepts the string value. |
Remarks
This property retrieves the text of the axis label that was clicked.
Value
Defines axis current label value.
Declaration
public double Value { get; }
Property Value
Type | Description |
---|---|
System.Double | A System.Double value representing the axis's label value. |
Remarks
This is a read-only property that gives the value depicted by the label on the clicked axis.