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 68c12fd commit 50230e0Copy full SHA for 50230e0
inst/htmlwidgets/plotly.js
@@ -50,7 +50,7 @@ HTMLWidgets.widget({
50
var tr = x.data[pt.curveNumber];
51
// add on additional trace info, if it exists
52
attachKey = function(keyName) {
53
- if (tr.hasOwnProperty(keyName)) {
+ if (tr.hasOwnProperty(keyName) && tr[keyName] !== null) {
54
if (typeof pt.pointNumber === "number") {
55
obj[keyName] = tr[keyName][pt.pointNumber];
56
} else {
0 commit comments