DataPointClickedEventArgs Class
Definition
Provides data for the DataPointClicked event.
public class DataPointClickedEventArgs
Constructors
| Name | Description |
|---|---|
| DataPointClickedEventArgs | Creates a new instance of DataPointClickedEventArgs. |
DataPointClickedEventArgs Constructor
Creates a new instance of DataPointClickedEventArgs.
public DataPointClickedEventArgs(Avalonia.Controls.Charts.ChartSeries series, int dataPointIndex, object category, double value, object dataItem)
Parameters
series Avalonia.Controls.Charts.ChartSeries
dataPointIndex int
category object
value double
dataItem object
Properties
| Name | Description |
|---|---|
| Category | Gets the category (X-axis value) of the clicked data point. |
| DataItem | Gets the original data item if available. |
| DataPointIndex | Gets the index of the data point within the series. |
| Series | Gets the series that contains the clicked data point. |
| Value | Gets the value (Y-axis value) of the clicked data point. |
Category Property
Gets the category (X-axis value) of the clicked data point.
public object Category { get; set; }
DataItem Property
Gets the original data item if available.
public object DataItem { get; set; }
DataPointIndex Property
Gets the index of the data point within the series.
public int DataPointIndex { get; set; }
Series Property
Gets the series that contains the clicked data point.
public Avalonia.Controls.Charts.ChartSeries Series { get; set; }
Value Property
Gets the value (Y-axis value) of the clicked data point.
public double Value { get; set; }