ludo.chart.Tooltip

ludo.chart.


new ludo.chart.Tooltip(config)

Chart tooltip module
You create a tooltip module by adding it as plugins to one
of your chart views.

The text of the tooltip is populated from the textOf method of
ludo.chart.DataSource.

Example:

textOf:function(record, caller){
// Text for the tooltip module
if(caller.type == 'chart.Tooltip'){
return '

{parent.name}
' + record.date + '
Share Price: {record.price}

';
}
// Text for all others.
return record.date;
},

textOf is a function returning text to chart views. Many views ask this method
for data, so a test on caller.type or caller.id is usually required.

Simple HTML tags like <b>, <strong> <i>, <em> and <br>
in the returned text is allowed.

Parameters:
Name Type Description
config Object
Properties
Name Type Description
type Object

Always set to chart.Tooltip

textStyles Object

Text styling

boxStyles Object

Styling of tooltip box

animationDuration Number

Animation duration in ms, default: 200

Source: