Browse Source

index parameter in tooltip.format.title #2392

pull/2496/head
Wahed Mangal 6 years ago
parent
commit
ca1fee97aa
  1. 2
      src/tooltip.js

2
src/tooltip.js

@ -131,7 +131,7 @@ ChartInternal.prototype.getTooltipContent = function (d, defaultTitleFormat, def
} }
if (!text) { if (!text) {
title = sanitise(titleFormat ? titleFormat(d[i].x) : d[i].x); title = sanitise(titleFormat ? titleFormat(d[i].x, d[i].index) : d[i].x);
text = "<table class='" + $$.CLASS.tooltip + "'>" + (title || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : ""); text = "<table class='" + $$.CLASS.tooltip + "'>" + (title || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
} }

Loading…
Cancel
Save