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: {parent.name}
textOf:function(record, caller){
// Text for the tooltip module
if(caller.type == 'chart.Tooltip'){
return '
' + 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
|
- Source: