RealPivot Guide
Pivot tooltip

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() (opens in a new tab)

pivot.setDisplayOptions({
showTooltip:true
});
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).

pivot.setDisplayOptions({
tooltipDelay: 1000
});

Customizing tooltip content

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

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