Closed cmkimber closed 2 months ago
To address this, the handling of popups was moved into a new observer that responds to any change in either the selected year or district. This means that the popup will now refresh if either dropdown is changed. As a result, the filtering of the dataset to show only the winning candidates is now moved into server()
and the factor levels of winning parties for colouration are hardcoded.
In the map_2018_data dev branch, the map popup displaying the winning candidate in a district does not change when the
selectInput()
for year is changed but the `selectizeInput()' for district remains unchanged. The DataTable showing results changes to reflect the new year correctly.