communitymaplab / awp_socialatlas

Shiny code for the Athens Social Atlas application, part of the Athens Wellbeing Project.
1 stars 3 forks source link

Dynamic menu loading #1

Closed jshannon75 closed 6 years ago

jshannon75 commented 6 years ago

We need code that loads the menu drop downs dynamically from the metadata file.

momiji15 commented 6 years ago

I think I have solved this issue. I was able to both filter the data by category and get the data to dynamically load based on that. I sorted the descriptions so they are in ABC order as well. I will make a commit if you think everything looks good after our meeting on Monday. Or I could just do it before.

jshannon75 commented 6 years ago

Just go ahead and come in and push now. Good versioning is half of what GitHub is for.

On Sat, Apr 21, 2018, 11:49 PM D notifications@github.com wrote:

I think I have solved this issue. I was able to both filter the data by category and get the data to dynamically load based on that. I sorted the descriptions so they are in ABC order as well. I will make a commit if you think everything looks good after our meeting on Monday. Or I could just do it before.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jshannon75/awp_shiny_april2018/issues/1#issuecomment-383353284, or mute the thread https://github.com/notifications/unsubscribe-auth/ANNYmDlnZ4RkxUhfogrgjCmPUC4Emrm3ks5tq_21gaJpZM4TIUOA .

jshannon75 commented 6 years ago

Current work flow: Load dropdown menu with plain text choices from the metadata Convert dropdown choice to variable code name via lookup table/metadata Reactive: filter the atlasdata based on the selected variable Reactive: Join the filtered data to the spatial boundaries Map this dataset

momiji15 commented 6 years ago

I was able to get the leaflet map working with the dynamic dropdown menu. However there are some variables with missing data or are producing an error message. Here are problem domains and variables:

I did filter the atlasdata with the missing variables to see if I overlooked something and they weren't there. I could see if there's some way in which those variables aren't loaded if your want. As for the 'breaks' issue, I'm going to have to take a further look into that.