Model Index

Types By Namespace

cdo

def

pvc

pvc.data

pvc.options

pvc.options.axes

pvc.options.charts

pvc.options.ext

pvc.options.format

pvc.options.marks

pvc.options.panels

pvc.options.plots

pvc.options.varia

pvc.options.visualRoles

pvc.visual

Class pvc.options.Tooltip

Class Summary
Constructor Attributes Constructor Name and Description
 
The options documentation class of the tooltip.
Field Summary
Field Attributes Field Name and Description
 
The duration for the tooltip move animation, in milliseconds.
 
Indicates if the tooltip shows an arrow pointing to the visual element's anchor point.
 
A custom class to mark the root tooltip element.
 
The delay for the tooltip to show, in milliseconds.
 
The delay for the tooltip to hide, in milliseconds.
 
Indicates if the tooltip is enabled.
 
Indicates if the tooltip fades in and out, after the corresponding delay has expired.
 
Indicates if the visual element's anchor point should be the current mouse position.
 
The preferred tooltip gravity.
 
Indicates if the tooltip text that the format function builds is in HTML format.
 
The distance of the closest tooltip edge or corner to the visual element's tooltip anchor point, in pixel units.
 
The opacity level of the tooltip box (range from 0, completely transparent, to 1).
 
Indicates if the collateral tooltip gravities should be aligned with corners.
Method Summary
Method Attributes Method Name and Description
 
format(scene)
A callback function that is called to build the tooltip of a visual element.
Class Detail
pvc.options.Tooltip
The options documentation class of the tooltip.
Field Detail
{number} animate
The duration for the tooltip move animation, in milliseconds.

A value of 0 disables the move animation.

The default value depends on the value of Tooltip#followMouse. When false, the default value is 400 ms. Otherwise, it is 0, resulting in no animation.


{boolean} arrowVisible
Indicates if the tooltip shows an arrow pointing to the visual element's anchor point.

Most chart types use a default value of true.


{string} className
A custom class to mark the root tooltip element.

The root tooltip element is always marked with the class tipsy. This option allows you to specify an additional class to style the tooltip differently for a single chart or group of charts.

Default Value:
''

{number} delayIn
The delay for the tooltip to show, in milliseconds.
Default Value:
200

{number} delayOut
The delay for the tooltip to hide, in milliseconds.
Default Value:
80

{boolean} enabled
Indicates if the tooltip is enabled.
Default Value:
true

{boolean} fade
Indicates if the tooltip fades in and out, after the corresponding delay has expired.
Default Value:
true

{boolean} followMouse
Indicates if the visual element's anchor point should be the current mouse position.
Default Value:
false

{pvc.options.varia.TooltipGravity} gravity
The preferred tooltip gravity.

The default value depends on the chart type. Most use the varia.TooltipGravity#South gravity, but others, like the Pie chart, calculate an adequate gravity per visual element.

When using the preferred gravity causes the tooltip to be placed off the browser window, a more suitable gravity may be automatically chosen.


{boolean} html
Indicates if the tooltip text that the format function builds is in HTML format.
Default Value:
true

{number} offset
The distance of the closest tooltip edge or corner to the visual element's tooltip anchor point, in pixel units.

The default value depends on the chart type.


{number} opacity
The opacity level of the tooltip box (range from 0, completely transparent, to 1).
Default Value:
0.9

{boolean} useCorners
Indicates if the collateral tooltip gravities should be aligned with corners.

Most chart types use a default value of false.

Method Detail
{string} format(scene)
A callback function that is called to build the tooltip of a visual element.

If #html is true, the resulting text must be valid HTML, otherwise, it is considered plain text.

Context:
{pvc.visual.Context}
Arguments:
{pvc.visual.Scene} scene
The scene whose tooltip is to be built.

Use the data contained in the scene object to build the tooltip.

Returns:
{string} The tooltip text.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 20 2018 15:47:44 GMT-0000 (WET)