I had the same problem. The solution is "hacky", however will get you what you want. You need to find heatmapcore.js file within the d3heatmap library: d3heatmap/htmlwidgets/lib/d3heatmapcore/heatmapcore.js
Find the following lines:
var tip = d3.tip()
.attr('class', 'd3heatmap-tip')
.html(function(d, i) {
return "<table>" +
"<tr><th align=\"right\">Row</th><td>" + htmlEscape(data.rows[d.row]) + "</td></tr>" +
"<tr><th align=\"right\">Column</th><td>" + htmlEscape(data.cols[d.col]) + "</td></tr>" +
"<tr><th align=\"right\">Value</th><td>" + htmlEscape(d.label) + "</td></tr>" +
"</table>";
})
.direction("se")
.style("position", "fixed");
You can replace "Row", "Column" and "Value" with the text you want.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.