# Data Binding

The KendoReact OrgChart allows you to bind its data to either flat data or tree data. In both cases, it is required to set the [`titleField`](https://www.telerik.com/kendo-react-ui/components/orgchart/api/orgchartprops#titleField) property.

## Tree Data

The following approach demonstrates how to bind the OrgChart data to tree data.

[Demo Source](https://demos.telerik.com/kendo-react-ui/orgchart/data-binding/tree-data/source.txt)

## Flat Data

This is demonstrated in the below example that uses the [`createDataTree`](https://www.telerik.com/kendo-react-ui/components/treelist/api/createdatatree) method in order transform the flat data to tree data.

[Demo Source](https://demos.telerik.com/kendo-react-ui/orgchart/data-binding/flat-data/source.txt)

## Suggested Links

* [Getting Started with KendoReact](https://www.telerik.com/try/kendo-react-ui)
* [API Reference of the KendoReact OrgChart](https://www.telerik.com/kendo-react-ui/components/orgchart/api)
* [KendoReact End User License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact)
