Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 86a436c

Browse files
committed
add support for new histogram event data
1 parent f1add73 commit 86a436c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/Graph.react.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ const filterEventData = (gd, eventData, event) => {
3434
].customdata[fullPoint.pointNumber];
3535
}
3636

37+
// specific to histogram. see https://github.com/plotly/plotly.js/pull/2113/
38+
if (has('pointNumbers', fullPoint)) {
39+
pointData.pointNumbers = fullPoint.pointNumbers;
40+
}
41+
if (has('binNumber', fullPoint)) {
42+
pointData.binNumber = fullPoint.binNumber;
43+
}
44+
3745
points[i] = pointData;
3846

3947
}

0 commit comments

Comments
 (0)