plotting.pages.graph package¶
Subpackages¶
Submodules¶
plotting.pages.graph.graph module¶
plotting.pages.graph.graph_callbacks module¶
- plotting.pages.graph.graph_callbacks.create_figure(data, att_values, label_values, height, graph_type)¶
Handle options for graph option dropdowns
- Parameters
data (dict) – data from stored dcc.Store component
att_values (list) – List of values returned from the attribute dropdowns
label_values (list) – List of values for various labels
height (int) – Height of graph in pixels
graph_type (String) – Type of graph
- Returns
figure – Created graph object
- Return type
plotly.graph_objects.Figure
- plotting.pages.graph.graph_callbacks.fetch_columns_from_data(data)¶
Handle options for graph option dropdowns
- Parameters
data (dict) – data from stored dcc.Store component
- Returns
options – Options for each of the dropdowns in the form of {‘label’: ‘Example’, ‘value’: ‘example’}
- Return type
list of dict
- plotting.pages.graph.graph_callbacks.handle_accordian_collapse(go_clicks, go_open)¶
Handle toggling the various accordian collapses
- Parameters
temp_clicks (int) – How many times the temp link has been clicked
temp_open (bool) – Whether the temp card is currenlty open or not
- Returns
temp_open – The reverse of what temp_open passed in
- Return type
bool