Skip to main content

DataPointClickedEventArgs Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Provides data for the DataPointClicked event.

public class DataPointClickedEventArgs

Inheritance: EventArgs -> DataPointClickedEventArgs

Constructors​

NameDescription
DataPointClickedEventArgsCreates 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​

NameDescription
CategoryGets the category (X-axis value) of the clicked data point.
DataItemGets the original data item if available.
DataPointIndexGets the index of the data point within the series.
SeriesGets the series that contains the clicked data point.
ValueGets 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; }