Skip to content

Commit 10098d5

Browse files
committed
remove trace data from events
1 parent 0144370 commit 10098d5

File tree

2 files changed

+14
-39
lines changed

2 files changed

+14
-39
lines changed

plotly/widgets/graphWidget.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specs/GraphWidgetSpec.md

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ g.on_click(callback, remove=False)
1919
of the graph widget that this callback is assigned to.
2020

2121
click_obj (dict): a nested dict that describes
22-
which point(s) were clicked on and also
23-
contains the full trace ('data') that the
24-
points belong to.
22+
which point(s) were clicked on.
2523

2624
click_obj example:
2725
{
@@ -33,23 +31,7 @@ g.on_click(callback, remove=False)
3331
'curveNumber': 1,
3432
'pointNumber': 2,
3533
'x': 4,
36-
'y': 14,
37-
'data': {
38-
'line': {
39-
'color': 'rgb(31, 138, 112)',
40-
'width': 3
41-
},
42-
'marker': {
43-
'color': 'rgb(31, 138, 112)',
44-
'size': 10,
45-
'symbol': 'hexagon-open'
46-
},
47-
'name': 'Experiment',
48-
'type': 'scatter',
49-
'uid': '346c6b',
50-
'x': [1, 2, 4],
51-
'y': [5, 8, 14]
52-
}
34+
'y': 14
5335
}
5436
],
5537
'type': 'hover'
@@ -93,8 +75,7 @@ g.on_hover(callback, remove=False)
9375
of the graph widget that this callback is assigned to.
9476

9577
hover_obj (dict): a nested dict that describes
96-
which point(s) was hovered over and also
97-
contains the full trace ('data') that the
78+
which point(s) was hovered over that the
9879
points belong to.
9980

10081
hover_obj example:
@@ -107,23 +88,7 @@ g.on_hover(callback, remove=False)
10788
'curveNumber': 1,
10889
'pointNumber': 2,
10990
'x': 4,
110-
'y': 14,
111-
'data': {
112-
'line': {
113-
'color': 'rgb(31, 138, 112)',
114-
'width': 3
115-
},
116-
'marker': {
117-
'color': 'rgb(31, 138, 112)',
118-
'size': 10,
119-
'symbol': 'hexagon-open'
120-
},
121-
'name': 'Experiment',
122-
'type': 'scatter',
123-
'uid': '346c6b',
124-
'x': [1, 2, 4],
125-
'y': [5, 8, 14]
126-
}
91+
'y': 14
12792
}
12893
],
12994
'type': 'hover'

0 commit comments

Comments
 (0)