# Overview

In order to display a chart, you have to populate **RadChart** control with some data. You can do that in two ways:

* Manually, by adding chart points - **DataPoints**.

* With data binding by using **SeriesMapping/ItemMapping**.

In this section you will find:

* [Creating a Chart Declaratively](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/creating-chart-declaratively) and  [Creating a Chart in Code-behind](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/creating-chart-in-code-behind) - explains how to create a chart in XAML and in the code-behind with some static data.

* Data binding [overview](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-support-overview) - here you will find information about the supported data sources and **RadChart**'s data binding basics.

* [Data Binding with Automatic Series Mappings](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-with-automatic-series-binding) and [Data Binding with Manual Series Mapping](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-with-manual-series-mapping)

* [Data Binding to Nested Collections](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-to-nested-collections)

* [Data Binding to Many Chart Areas](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-to-many-chart-areas)

## Understanding DataPoint

**DataPoint** class represents a single piece of data that is visualized in a chart series. Each **DataPoint** has various properties that allow you to define every chart piece, such as: **XValue**, **YValue**, **BubbleSize**, etc. Notice that depending on the selected chart type only a subset of them will be applied to the distinct chart series e.g. **DataPoint.BubbleSize** is applicable only to **Bubble** / **Bubble3D** series types, while the **Open**, **Close**, **High**, **Low** values are applicable only to **Stick** / **CandleStick** charts.

However, even if some of the **DataPoint** properties are not required for the selected chart type, you can still bind or set them in order to use their values to format the item labels and/or tooltips. See [Format Expressions](https://www.telerik.com/products/wpf/documentation/controls/radchart/features/format-expressions).

Usually, data points are used when you want to show a chart with static data. For more information take a look at the [Creating a Chart Declaratively](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/creating-chart-declaratively) topic and the [Creating a Chart in Code-behind](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/creating-chart-in-code-behind) topic.

## Understanding SeriesMapping/ItemMapping

Data binding is one of the most powerful features provided by the .Net platform, that makes it easier to bind UI with the business logic. **RadChart** control supports data binding via **SeriesMapping** / **ItemMapping.**

**SeriesMapping** is used to define a single chart series. You need to add a separate **SeriesMapping** for each chart series that you would like to create from the data bound to the chart control. Each **SeriesMapping** holds a collection of **ItemMapping** instances which define the relation between individual data fields (in the context of the **RadChart.ItemsSource**) and the chart series fields (in the context of **DataPointMember** values) i.e. if you would like to bind the **XValue** and **YValue** of a **Bar** chart series items, you need to add a single **SeriesMapping** instance with two **ItemMapping** instances for the **DataPointMember.XValue** and the **DataPointMember.YValue** relations respectively.

**DataPointMember** and **DataPoint** classes are related. For each data item of the underlying data source, **RadChart** will create an instance of **DataPoint** and depending on the value of **ItemMapping.DataPointMember** will set the value of the corresponding property. What happens if you have **SeriesMapping** with two **ItemMapping** instances for the **DataPointMember.XValue** and the **DataPointMember.YValue**. **RadChart** will create one **DataPoint** where **DataPoint.XValue** will be set to the value of the data field specified for **DataPointMember.XValue** and **DataPoint.YValue** with the value of the data field specified for the **DataPointMember.YValue**.

More about data binding and supported data types you can see [here](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-support-overview).

## See Also

* [Creating a Chart Declaratively](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/creating-chart-declaratively)

* [Creating a Chart in Code-behind](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/creating-chart-in-code-behind)

* [Data Binding Support Overview](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-support-overview)

* [Data Binding to Nested Collections](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-to-nested-collections)

* [Data Binding to Many Chart Areas](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/data-binding-to-many-chart-areas)

* [Data Binding to WCF Service](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/binding-to-wcf)

* [Data Binding to ADO.NET Data Service](https://www.telerik.com/products/wpf/documentation/controls/radchart/populating-with-data/binding-to-adonet-service)
