
# Pivot tooltip

When you hover the mouse over the pivot cell, related information is displayed as a tooltip.

#### Tooltip display settings

In a pivot, you can display tooltips in each value cell and label cell.
[setDisplayOptions()](http://help.realgrid.com/pivotApi/types/DisplayOptions/)

<GridView demo='pivotguides/06-pivotTooltip/01' height={700}/>

```js
pivot.setDisplayOptions({
showTooltip:true
});
```


```js
pivot.setDisplayOptions({
showLabelTooltip:true
});
```

Tooltips are displayed when the mouse pointer stays in a cell for a certain period of time. The default is 200 (millisecond).

```js
pivot.setDisplayOptions({
tooltipDelay: 1000
});
```

#### Customizing tooltip content

In Pivot, the value cell's [onTooltip](http://help.realgrid.com/pivotApi/RealPivot/onTooltip/) callback and the label cell's [onLabelTooltip](http://help. realgrid.com/pivotApi/RealPivot/onLabelTooltip/) provides a callback.

<GridView demo='pivotguides/06-pivotTooltip/02' height={700}/>

```js
pivot.onTooltip = function (view, index, s) {
     return "This is a custom tooltip.";
}
pivot.onLabelTooltip = function (view, index, s) {
     return "Custom label tooltip."
}
```