diff --git a/src/tooltip.js b/src/tooltip.js index b420ff5..6f1a8a7 100644 --- a/src/tooltip.js +++ b/src/tooltip.js @@ -38,7 +38,7 @@ c3_chart_internal_fn.getTooltipContent = function (d, defaultTitleFormat, defaul text = "" + (title || title === 0 ? "" : ""); } - name = nameFormat(d[i].name); + name = nameFormat(d[i].name, d[i].ratio, d[i].id, d[i].index); value = valueFormat(d[i].value, d[i].ratio, d[i].id, d[i].index); bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);
" + title + "