Tooltip
configurationThe chart series tooltip configuration options.
The chart series tooltip is displayed when the tooltip.visible option is set to
true.
tooltip
Objecttooltip.autoHide
BooleanSpecifies if the tooltip will be hidden when the mouse leaves the target element. If set to false, a Close button will be shown within tooltip.
Default: true
tooltip.background
StringThe background color of the tooltip. Accepts a valid CSS color string, including hex and rgb.
tooltip.border
ObjectThe border configuration options.
tooltip.color
StringThe text color of the tooltip. Accepts a valid CSS color string, including hex and rgb.
tooltip.font
StringThe tooltip font.
Default: "12px Arial,Helvetica,sans-serif"
tooltip.format
StringThe format of the labels. Uses kendo.format.
Format placeholders:
- Area, bar, column, funnel, pyramid, line and pie
- {0} - value
- Bubble
- {0} - x value
- {1} - y value
- {2} - size value
- {3} - category name
- Bullet
- {0} - value
- {1} - target value
- Scatter and scatterLine
- {0} - x value
- {1} - y value
- Candlestick and OHLC
- {0} - open value
- {1} - high value
- {2} - low value
- {3} - close value
- {4} - category name
- RangeArea, rangeBar, rangeColumn
- {0} - from value
- {1} - to value
tooltip.opacity
NumberThe opacity of the tooltip.
Default: 1
tooltip.padding
Number|ObjectThe padding of the tooltip. A numeric value will set all paddings.
tooltip.shared
BooleanIf set to true the chart will display a single tooltip for every category.
Default: false
tooltip.sharedTemplate
String|FunctionThe template which renders the shared tooltip.
The fields which can be used in the template are:
- points - the category points
- category - the category name
tooltip.template
String|FunctionThe template which renders the tooltip.
The fields which can be used in the template are:
- category - the category name
- dataItem - the original data item used to construct the point. Will be null if binding to array.
- series - the data series
- value - the point value (either a number or an object)
- runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series.
- total - the sum of all previous series values. Available for waterfall series.
tooltip.visible
BooleanIf set to true the chart will display the series tooltip. By default the series tooltip is not displayed.
Default: false