JavaScript/jQuery Funnel - Overview

A tooltip is a small pop-up rectangle that displays information about a funnel item if it is pressed or the mouse pointer hovers over it. The information is the item's argument and value by default, but it is possible to display anything in a tooltip.

Funnel Tooltip

All properties configuring tooltips are collected in the tooltip object. For example, to enable tooltips, assign true to this object's enabled property.

JavaScript
  • $(function() {
  • $("#funnelContainer").dxFunnel({
  • // ...
  • tooltip: {
  • enabled: true
  • }
  • });
  • });

Properties declared in the tooltip object apply to all tooltips in the Funnel. If you want to customize a specific tooltip, assign a function to the customizeTooltip property. This function must return an object with properties for the tooltip you want to customize.

JavaScript
  • $(function() {
  • $("#funnelContainer").dxFunnel({
  • // ...
  • tooltip: {
  • enabled: true,
  • color: 'yellow',
  • // Tooltips of all items with the value more than 100 turn red
  • // Other tooltips remain yellow
  • customizeTooltip: function (itemInfo) {
  • return itemInfo.value > 100 ? { color: 'red' } : { }
  • }
  • }
  • });
  • });
See Also