Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)