

Must implement at minimum a function that can be passed to (opens new window). # Sort CallbackĪllows sorting of tooltip items. Color boxes are always aligned to the left edge. These options are only applied to text lines. The titleAlign, bodyAlign and footerAlign options define the horizontal position of the text lines with respect to the tooltip box. The following values for the yAlign setting are supported. The following values for the xAlign setting are supported. If these parameters are unset, the optimal caret position is determined. The xAlign and yAlign options define the position of the tooltip caret. You can also define custom position modes. 'nearest' will place the tooltip at the position of the element closest to the event position. 'average' mode will place the tooltip at the average position of the items displayed in the tooltip. If you need more visual customizations, please use an HTML tooltip. Position of the tooltip caret in the Y direction. Position of the tooltip caret in the X direction. This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas True for rendering the tooltip from right to left. (size is based on the minimum value between boxWidth and boxHeight).

Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. Padding between the color box and the text. Height of the color box if displa圜olors is true. Width of the color box if displa圜olors is true. If true, color boxes are shown in the tooltip. Spacing to add to top and bottom of each footer line.Įxtra distance to move the end of the tooltip arrow away from the tooltip point.Ĭolor to draw behind the colored boxes when multiple items are in the tooltip. Horizontal alignment of the footer text lines. Spacing to add to top and bottom of each tooltip item. Horizontal alignment of the body text lines.

Margin to add on bottom of title section. Spacing to add to top and bottom of each title line. Horizontal alignment of the title text lines. If false, the mode will be applied at all times. If true, the tooltip mode applies only when the mouse position intersects with an element. Sets which elements appear in the tooltip. Namespace:, the global options for the chart tooltips is defined in.
