We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14bb7e6 commit be93ea8Copy full SHA for be93ea8
inst/htmlwidgets/plotly.js
@@ -243,7 +243,8 @@ HTMLWidgets.widget({
243
var gd = document.getElementById(el.id);
244
var trace = gd.data[pt.curveNumber];
245
246
- // Add other attributes here, if desired
+ // Heatmap z event data should derive from _z calc attribute
247
+ // https://github.com/ropensci/plotly/issues/1141
248
var z = trace.type === "heatmap" ? "_z" : "z";
249
if (!trace._isSimpleKey) {
250
var attrsToAttach = ["key", z];
0 commit comments