(selection1, selection2, selection3)
| 95 | Output('g3', 'figure'), Input('g1', 'selectedData'), |
| 96 | Input('g2', 'selectedData'), Input('g3', 'selectedData')) |
| 97 | def callback(selection1, selection2, selection3): |
| 98 | selectedpoints = df.index |
| 99 | for selected_data in [selection1, selection2, selection3]: |
| 100 | if selected_data and selected_data['points']: |
| 101 | selectedpoints = np.intersect1d( |
| 102 | selectedpoints, |
| 103 | [p['customdata'] for p in selected_data['points']]) |
| 104 | |
| 105 | return [ |
| 106 | get_figure(df, "Col 1", "Col 2", selectedpoints, selection1), |
| 107 | get_figure(df, "Col 3", "Col 4", selectedpoints, selection2), |
| 108 | get_figure(df, "Col 5", "Col 6", selectedpoints, selection3) |
| 109 | ] |
| 110 | |
| 111 | |
| 112 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected