MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / generate_figure

Function generate_figure

sagemaker-dash/tutorials/app17.py:77–83  ·  view source on GitHub ↗
(value, figure)

Source from the content-addressed store, hash-verified

75
76
77def generate_figure(value, figure):
78 fig = copy.deepcopy(figure)
79 filtered_dataframe = global_store(value)
80 fig['data'][0]['x'] = filtered_dataframe['x']
81 fig['data'][0]['y'] = filtered_dataframe['y']
82 fig['layout'] = {'margin': {'l': 20, 'r': 10, 'b': 20, 't': 10}}
83 return fig
84
85
86@app.callback(Output('signal', 'data'), Input('dropdown', 'value'))

Callers 4

update_graph_1Function · 0.85
update_graph_2Function · 0.85
update_graph_3Function · 0.85
update_graph_4Function · 0.85

Calls 1

global_storeFunction · 0.85

Tested by

no test coverage detected