(value)
| 92 | |
| 93 | @app.callback(Output('graph-1', 'figure'), Input('signal', 'data')) |
| 94 | def update_graph_1(value): |
| 95 | # generate_figure gets data from `global_store`. |
| 96 | # the data in `global_store` has already been computed |
| 97 | # by the `compute_value` callback and the result is stored |
| 98 | # in the global redis cached |
| 99 | return generate_figure( |
| 100 | value, { |
| 101 | 'data': [{ |
| 102 | 'type': 'scatter', |
| 103 | 'mode': 'markers', |
| 104 | 'marker': { |
| 105 | 'opacity': 0.5, |
| 106 | 'size': 14, |
| 107 | 'line': { |
| 108 | 'border': 'thin darkgrey solid' |
| 109 | } |
| 110 | } |
| 111 | }] |
| 112 | }) |
| 113 | |
| 114 | |
| 115 | @app.callback(Output('graph-2', 'figure'), Input('signal', 'data')) |
nothing calls this directly
no test coverage detected