# PivotGrid Local Data Binding

The PivotGrid component allows you to use local data.

## Basic Usage

To get the PivotGrid running using local data, pass the following configuration settings to the [`usePivotLocalDataService`](https://www.telerik.com/kendo-vue-ui/components/pivotgrid/api/usepivotlocaldataservice) composable:

* `dimensions`
* `measures`
* `defaultRowAxes`
* `defaultColumnAxes`
* `defaultMeasureAxes`

The following demo shows how to configure the PivotGrid component. Each field in the `dimensions` object points to a field in the local data.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/pivotgrid/localdata/basic/source.txt)

## Custom Dimensions

In the following example, the dimensions do not follow the local data strictly. From the `Date` field in the local data are created `Years`, `Quarters`, `Months`, and `Days` dimensions. Rendering and sorting by these fields is adjusted using `displayValue` and `sortValue` dimension configuration callbacks.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/pivotgrid/localdata/custom-dimensions/source.txt)

## Suggested Links

* [PivotGrid Sorting](https://www.telerik.com/kendo-vue-ui/components/pivotgrid/sorting)
* [API Reference of the Kendo UI for Vue usePivotLocalDataService composable](https://www.telerik.com/kendo-vue-ui/components/pivotgrid/api/usepivotlocaldataservice)
* [API Reference of the Kendo UI for Vue PivotLocalDataService component](https://www.telerik.com/kendo-vue-ui/components/pivotgrid/api/pivotlocaldataservice)
