Browse Source

Fixed bug with tooltip names not being processed with $$.getTargetSelectorSuffix, resulting in not being able to style tooltips correctly

pull/1273/head
Anton Lycklama à Nijeholt 9 years ago
parent
commit
e3fcf65943
  1. 2
      c3.js

2
c3.js

@ -3825,7 +3825,7 @@
name = nameFormat(d[i].name, d[i].ratio, d[i].id, d[i].index);
bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);
text += "<tr class='" + CLASS.tooltipName + "-" + d[i].id + "'>";
text += "<tr class='" + CLASS.tooltipName + $$.getTargetSelectorSuffix(d[i].id) + "'>";
text += "<td class='name'><span style='background-color:" + bgcolor + "'></span>" + name + "</td>";
text += "<td class='value'>" + value + "</td>";
text += "</tr>";

Loading…
Cancel
Save