Skip to content

Commit f8cf5e4

Browse files
committed
include bbox from plotly.js events
1 parent 900a706 commit f8cf5e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/dash-core-components/src/fragments/Graph.react.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ const filterEventData = (gd, eventData, event) => {
7474
const pointData = filter(function (o) {
7575
return !includes(type(o), ['Object', 'Array']);
7676
}, fullPoint);
77+
78+
// permit a bounding box to pass through, if present
79+
if (has('bbox', fullPoint)) {
80+
pointData.bbox = fullPoint.bbox;
81+
}
82+
7783
if (
7884
has('curveNumber', fullPoint) &&
7985
has('pointNumber', fullPoint) &&

0 commit comments

Comments
 (0)