AnnMarieW / dash-app-gallery

Dash Examples Index
https://dash-example-index.herokuapp.com/
MIT License
59 stars 24 forks source link

EU indicators app with simple chained and clientside callbacks #129

Closed tuopouk closed 1 year ago

tuopouk commented 1 year ago

This is a simple app that visualizes certain EU indicators' timeseries. Not each indicator is avaible for each country so this app uses chained callbacks to filter out countries from the countries selection dropdown based on selected indicators. It also uses clientside callback to print the page.

tuopouk commented 1 year ago

Thanks @Coding-with-Adam

It was actually unnessary to have the dcc.Store in between since chaining can be already demonstrated between dropdowns. The title_text is there in case there is data for only one year and it wouln't look nice to have, say, "2018 - 2018". I tried without headers and the code did not work on my laptop. The headers are there to mimic the user and to show the target server that the one who is trying to access the file, is a person and not a bot. This is actually a file download link which requires some nitty-gritty data wrangling to get the data to pandas. The web-url actually goes to the page where the file can be downloaded. Unfortunately you can't use the web_url to read the data because it will read it incorrectly. If we need to omit the headers, then I guess the file needs to be put on Github for public access. I thought it would be nice to demonstrate reading content from download files as well. Anyways I updated the code for now if you wish to check.

tuopouk commented 1 year ago

@Coding-with-Adam If this app is ok for a use case, I can go through the checklist to see that the code corresponds to it. Is there a way to access it in a readable format? I wonder if I accidentally deleted it during the finland app commit. Also what do you think should I try to replace graphical objects (e.g. go.Scatter) with plotly express (px.line)?

Coding-with-Adam commented 1 year ago

hi @AnnMarieW Tuomas and I just had a chat via google meet and ironed a few things out. Tuomas is reviewing the contributor's check list for this app this week.