Skip to content

Commit be93ea8

Browse files
committed
improve comment
1 parent 14bb7e6 commit be93ea8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/htmlwidgets/plotly.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ HTMLWidgets.widget({
243243
var gd = document.getElementById(el.id);
244244
var trace = gd.data[pt.curveNumber];
245245

246-
// Add other attributes here, if desired
246+
// Heatmap z event data should derive from _z calc attribute
247+
// https://github.com/ropensci/plotly/issues/1141
247248
var z = trace.type === "heatmap" ? "_z" : "z";
248249
if (!trace._isSimpleKey) {
249250
var attrsToAttach = ["key", z];

0 commit comments

Comments
 (0)