tooltip.formatter
также может быть функцией. Используя это, вы полностью контролируете, что и если оно должно отображаться.
Пример:
function __handleTooltip(seriesConfiguration) {
// Your code here
// return undefined, if you don't want to show a tooltip
// return a string, if you want to show a tooltip
}
seriesConfiguration
выглядит как что:
// This is a SCATTER-Entry
// But line/bar is just similar, it just has different "data" and "value".
{
"componentType": "series",
"componentSubType": "scatter",
"seriesType": "scatter",
"seriesIndex": 0,
"seriesName": "Daten",
"name": "",
"dataIndex": 9,
"data": [
748,
2206,
2954,
"999999999",
"Some other Value",
""
],
"value": [
748,
2206,
2954,
"999999999",
"Some other Value",
""
],
"color": "rgba(79,142,206,1)",
"$vars": [
"seriesName",
"name",
"value"
]
}
Просто используйте console.log для печати объекта, остальные должны быть простыми.