Dynamically load dataframe and render layout based on URL request parameters

Hi Dash community,

I am building a dashboard (different bar and line charts) with a fixed layout but the data needs to loaded dynamically based on the provided URL request parameters, e.g.

In consequence, I am looking for a way to parse the URL before the layout is rendered (or update the empty bar/line charts ) with the dynamically loaded dataframe.

I hope this is possible with Dash but I was not find an example in the docs or this form.

Thanks a lot in advance for any help!


You can use the dcc.Location component for precisely this! There is also an example of routing in use here.

@benn0 thanks a lot, this was exactly what I was looking for!