plotting.utils package

Submodules

plotting.utils.color module

plotting.utils.constants module

plotting.utils.functions module

plotting.utils.functions.fetch_columns_options(data, table=False)

Handle creating column options based on the data

Parameters
  • data (dict) – data from stored dcc.Store component

  • table (bool (def. False)) – Flag for returning table list

Returns

options – Options for each of the dropdowns in the form of {‘label’: ‘Example’, ‘value’: ‘example’}

Return type

list of dict

plotting.utils.functions.validate_store_data(data)
Parameters

data (dict) – data from stored dcc.Store component

Returns

data_in – Determine if there is dataframe data in the data diction

Return type

bool

plotting.utils.routes module

plotting.utils.routes.handle_routes(pathname)

Handle routing the application from page to page

Parameters

pathname (str) – Current url

Returns

layout – Content of page to return to the view

Return type

dash.html.Div

plotting.utils.routes.navbar_toggle(clicks, is_open)

Handle the collapsible function of the navbar

Parameters
  • clicks (int) – How many times the toggler has been clicked

  • is_open (bool) – State of the collapsible unit

Returns

is_open – Oppositie of inputed state

Return type

bool

Module contents