# Data Point

The chart data points are defined by the **DataPoint** class and more specifically its inheritors. The different chart series types work with different class that derives from DataPoint. Each class contains common information about the data point - its layout slot, the related view model, label, selection state, parent series and more.

The chart series expose a DataPoints collection where the data point objects are placed. For more information on this, see the [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/introduction) and [Create Chart With Static Data](https://www.telerik.com/products/wpf/documentation/controls/radchartview/populating-with-data/static-data) help articles.

This article contains a brief information about the data point types and a reference sheet showing the DataPoint implementation used by each chart series.

The **DataContext** of most chart templates and styles, as [ToolTipTemplate](https://www.telerik.com/products/wpf/documentation/controls/radchartview/features/behaviors/tooltip), [DefaultVisualStyle, PointTemplate](https://www.telerik.com/products/wpf/documentation/controls/radchartview/styles-and-templates/customizing-cartesianchart-series), etc., is an object of type **DataPoint** which you can use to access the view model or other information related to the data point.

* [Series DataPoint Types](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#series-datapoint-types)
* [Sampling and DataItem](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#sampling-and-dataitem)
* [DataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#datapoint)

## Series DataPoint Types

The following table groups data point types and their series by chart type. “Not applicable” means that no additional data point type is listed for that chart type in the row.

<table>
	<thead>
		<tr>
			<th scope="col">Cartesian Chart Data Points</th>
			<th scope="col">Pie Chart Data Points</th>
			<th scope="col">Polar Chart Data Points</th>
			<th scope="col">Funnel Chart Data Point</th>
		</tr>
	</thead>
	<tbody>
		<tr style="vertical-align:top;">
			<td>
				<strong>CategoricalDataPoint</strong>
				<ul>
					<li>LineSeries</li>
					<li>StepLineSeries</li>
					<li>SplineSeries</li>
					<li>BarSeries</li>
					<li>AreaSeries</li>
					<li>SplineAreaSeries</li>
					<li>StepAreaSeries</li>
					<li>PointSeries</li>
				</ul> 
			</td>
			<td>
				<strong>PieDataPoint</strong>
				<ul>
					<li>PieSeries</li>
					<li>DoughnutSeries</li>
				</ul>
			</td>
			<td>
				<strong>PolarDataPoint</strong>
				<ul>
					<li>PolarLineSeries</li>
					<li>PolarAreaSeries</li>
					<li>PolarPointSeries</li>
					<li>RadarLineSeries</li>
					<li>RadarAreaSeries</li>
					<li>RadarPointSeries</li>
				</ul> 
			</td>
			<td>
				<strong>FunnelDataPoint</strong>
				<ul>
					<li>FunnelSeries</li>
				</ul>
			</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>ScatterDataPoint</strong>
				<ul>
					<li>ScatterLineSeries</li>
					<li>ScatterSplineSeries</li>
					<li>ScatterAreaSeries</li>
					<li>ScatterSplineAreaSeries</li>
					<li>ScatterPointSeries</li>
				</ul> 
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>RangeDataPoint</strong>
				<ul>
					<li>RangeSeries</li>
					<li>RangeBarSeries</li>
				</ul>
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>ScatterRangeDataPoint</strong>
				<ul>
					<li>ScatterRangeBarSeries</li>
				</ul> 
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>OhlcDataPoint</strong>
				<ul>
					<li>OhlcSeries</li>
					<li>CandlestickSeries</li>
				</ul>
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>BubbleDataPoint</strong>
				<ul>
					<li>BubbleSeries</li>
				</ul> 
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>ScatterBubbleDataPoint</strong>
				<ul>
					<li>ScatterBubbleSeries</li>
				</ul>
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>BoxPlotDataPoint</strong>
				<ul>
					<li>BoxPlotSeries</li>
				</ul>
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
		<tr style="vertical-align:top;">
			<td>
				<strong>ErrorBarDataPoint</strong>
				<ul>
					<li>ErrorBarSeries</li>
				</ul>
			</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
			<td>Not applicable</td>
		</tr>
	</tbody>
</table>

## DataPoint

DataPoint is an abstract class used as a base by the concrete data point implementations. The class contains information related to the element plotted in the chart. There are several classes that derive from DataPoint and they all share some common properties.

* **Presenter**: A property of type **IChartElementPresenter** that holds a reference to the parent series where the data point is visualized.

* **LayoutSlot**: A property of type **RadRect** that holds the rectangle where the data point is visualized. You can use it to get the size and the screen coordinates of the visual element representing the point.

* **DataItem**: A property of type **object** that holds a reference to the view model of the data point. This property is valid only in a [data-bound](https://www.telerik.com/products/wpf/documentation/controls/radchartview/populating-with-data/chartdatasource) scenario. In a sampling scenario the property holds an object of type [DataPointSamplingInfo](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#sampling-and-dataitem) instead of the view model (the data item).

* **IsSelected**: A property of type **bool** that indicates if the data point is selected. For more information, see the [Selection](https://www.telerik.com/products/wpf/documentation/controls/radchartview/features/behaviors/selection) help article.

* **IsInPlotRange**: A property of type **bool** that indicates whether the data point's visual is in the plot area range. This is the actual range of the axes.

* **Label**: A property of type **object** that contains the label associated with the data point.

Each different DataPoint inheritor implements properties that define the values used to plot it in the chart.

* [CategoricalDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#categoricaldatapoint)
* [BubbleDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#bubbledatapoint)
* [RangeDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#rangedatapoint)
* [OhlcDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#ohlcdatapoint)
* [ScatterDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#scatterdatapoint)
* [ScatterRangePoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#scatterrangedatapoint)
* [ScatterBubbleDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#scatterbubbledatapoint)
* [PieDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#piedatapoint)
* [PolarDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#polardatapoint)
* [FunnelDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#funneldatapoint)
* [BoxPlotDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#boxplotdatapoint)
* [ErrorBarDataPoint](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/data-point#errorbardatapoint)

## CategoricalDataPoint

The **CategoricalDataPoint** class is used by the Cartesian chart series and it exposes two additional properties that define the position of the data point in the Cartesian coordinate system.

The **Category** property defines the category of the data point on the categorical or date-time axis. And the **Value** property defines the value of the data point on the numeric axis.

## BubbleDataPoint

The **BubbleDataPoint** derives from the **CategoricalDataPoint** and extends it with an additional **BubbleSize** property. The property defines the size of the bubble.

## RangeDataPoint

The **RangeDataPoint** is a type of categorical data point, so it has a **Category** property. But, instead of a single value it works with two values - high and low. The values could be get/set via the **High** and **Low** properties and they define the range in which the data point visual will be drawn.

## OhlcDataPoint

The **OhlcDataPoint** is a type of categorical data point, so it has a **Category** property. But, instead of a single value it works with few additional values accessed via the following properties: **High**, **Low**, **Open** and **Close**. This type of data point is used in the financial series of the chart (ohlc and candlestick).

Additionally, the class exposes two properties that indicate whether the data point follows raising (bullish) or falling (bearish) trend. The properties are **IsRising** and **IsFalling**.

## ScatterDataPoint

This data point model is used by the Cartesian chart series and it exposes two additional properties that define the position of the data point in the Cartesian coordinate system.

The **XValue** property defines the value of the data point on the horizontal axis. And the **YValue** property defines the value of the data point on the vertical axis.

## ScatterRangeDataPoint

This data point model is used by the ScatterRangeBarSeries and it exposes few properties that define the position size span of the data point in the Cartesian coordinate system.

The **HorizontalLow** and **HorizontalHigh** properties define the span of the data point on the horizontal axis. The **VerticalLow** and **VerticalHigh** properties define the span of the data point on the vertical axis.

## ScatterBubbleDataPoint

The **ScatterBubbleDataPoint** derives from the **ScatterDataPoint** and extends it with an additional **BubbleSize** property. The property defines the size of the bubble.

## PieDataPoint

This data point model is used in pie and doughnut series. It is a single value data point and it exposes a **Value** property.

The pie data point also allows you to define its offset from the center of the pie. You can do that via the **OffsetFromCenter** property. Note that the property works with relative units between 0 and 1.

## PolarDataPoint

This data point model is used in polar chart series and it exposes two properties defining the position of the data point in the polar coordinate system.

The **Angle** property defines the angle of the data point on the radial (circular) axis. And the **Value** property defines the value of the data point on the polar (linear) axis.

## FunnelDataPoint

This data point model is used in funnel chart series. To define the value of the data point the **Value** property of the **FunnelDataPoint** needs to be set. The funnel series data points also expose a **Label** property which contains the associated label.

## BoxPlotDataPoint

The **BoxPlotDataPoint** is a type of categorical data point, so it has a **Category** property. But, instead of a single value it works with few additional values accessed via the following properties: **Minimum**, **Maximum**, **LowerQuartile**, **UpperQuartile** and **Median**. This type of data point is used to describe a box plot element in the BoxPlotSeries.

## ErrorBarDataPoint

The **ErrorBarDataPoint** is a type of categorical data point, so it has a **Category** property. But, instead of a single value it works with few additional values accessed via the following properties: **Low**, **High** and **Value**. This type of data point is used to describe an error bar visual in the ErrorBarSeries.

## Sampling and DataItem

In a sampling scenario the **DataItem** property of the DataPoint object doesn't contain a data object from the view models collection. This is because in this case a number data items are aggregated into a single DataPoint object. In this scenario the DataItem property will contain an object of type **DataPointSamplingInfo**. See more about this in the [ChartDataSource](https://www.telerik.com/products/wpf/documentation/controls/radchartview/populating-with-data/chartdatasource) help article.

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/introduction)
* [Series and Axes](https://www.telerik.com/products/wpf/documentation/controls/radchartview/series-and-axes)
* [ChartDataSource Sampling](https://www.telerik.com/products/wpf/documentation/controls/radchartview/populating-with-data/chartdatasource)
