harishB97 commited on
Commit
6a6be82
·
verified ·
1 Parent(s): 71318fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -47,7 +47,14 @@ def create_plotly_tree():
47
 
48
  return fig
49
 
 
 
 
 
50
  PLOTLY_TREE = create_plotly_tree()
 
 
 
51
 
52
  print('PLOTLY_TREE', PLOTLY_TREE)
53
 
 
47
 
48
  return fig
49
 
50
+ def print_on_click(trace, points, selector):
51
+ print('Clicked')
52
+
53
+
54
  PLOTLY_TREE = create_plotly_tree()
55
+ node_trace = PLOTLY_TREE.data[1]
56
+ print(node_trace)
57
+ node_trace.on_click(print_on_click)
58
 
59
  print('PLOTLY_TREE', PLOTLY_TREE)
60