Skip to main content

TooltipDataContext Class

Definition​

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

Data context passed to custom tooltip templates.

public class TooltipDataContext

Inheritance: object -> TooltipDataContext

Constructors​

NameDescription
TooltipDataContextNo summary available.

TooltipDataContext Constructor​

public TooltipDataContext()

Properties​

NameDescription
CategoryGets the category (X-axis value) of the data point.
DataItemGets the original data item from the ItemsSource.
DataPointIndexGets the index of the data point within the series.
SeriesGets the series that contains the data point.
ValueGets the value (Y-axis value) of the data point.

Category Property​

Gets the category (X-axis value) of the data point.

public object Category { get; set; }

DataItem Property​

Gets the original data item from the ItemsSource.

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 data point.

public Avalonia.Controls.Charts.ChartSeries Series { get; set; }

Value Property​

Gets the value (Y-axis value) of the data point.

public double Value { get; set; }