Class Index | File Index

Classes


Class charts.Tooltip


Defined in: Tooltip.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
A base chart tooltip.
Method Summary
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.
Class Detail
charts.Tooltip()
A base chart tooltip.
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.
See:
charts.BaseChart#getOptions

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.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Mar 03 2021 22:29:43 GMT-0800 (PST)