Class charts.Tooltip
Defined in: Tooltip.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A base chart tooltip.
|
Method Attributes | Method Name and Description |
---|---|
Gets reference to tooltip HTML element.
|
|
hide(e)
Hides tooltip element.
|
|
parse(var_args)
Parses tooltip template content.
|
|
setOptions(options)
Sets configuration options.
|
|
show(e, opt_x, opt_y)
Shows tooltip element.
|
Method Detail
{!Node}
getTooltipElement()
Gets reference to tooltip HTML element.
- Returns:
- {!Node} Returns reference to tooltip HTML element.
hide(e)
Hides tooltip element.
- Parameters:
- {Event} e
- The mouse event.
{string}
parse(var_args)
Parses tooltip template content.
- Parameters:
- {...*} var_args
- Returns:
- {string} Returns parsed tooltip template content.
setOptions(options)
Sets configuration options.
options: { 'tooltip': { 'paddings': '5px', 'bgcolor': '#fff', 'opacity': 0.9 } }
- Parameters:
- {!Object} options
- The configuration options.
show(e, opt_x, opt_y)
Shows tooltip element.
- Parameters:
- {Event} e
- The mouse event.
- {number=} opt_x
- The optional X coord.
- {number=} opt_y
- The optional Y coord.