def display_page(_ts, pathname, search): """ dash callback which gets called on initial load of each dash page (main & popup) """ dash_app.config.suppress_callback_exceptions = False params = chart_url_params(search) df = DATA[get_data_id(pathname)] return charts_layout(df, **params)
def display_page(_ts, pathname): """ dash callback which gets called on initial load of each dash page (main & popup) """ dash_app.config.suppress_callback_exceptions = False if pathname.startswith('/charts/popup/'): return html.Div(dcc.Loading(html.Div(id='popup-chart-content'), type='circle'), className='charts-body') df = DATA[get_data_id(pathname)] return charts_layout(df)
def display_page(_ts, pathname, search): """ dash callback which gets called on initial load of each dash page (main & popup) """ dash_app.config.suppress_callback_exceptions = False params = chart_url_params(search) data_id = get_data_id(pathname) df = global_state.get_data(data_id) settings = global_state.get_settings(data_id) or {} return charts_layout(df, settings, **params)