cassiebuhler commited on
Commit
ca93f86
1 Parent(s): 379bfa1
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -18,13 +18,10 @@ st.set_page_config(layout="wide",
18
  '''
19
  # LandVote Prototype
20
 
21
- An experimental platform for visualizing data on ballot measures for conservation, based on data from <https://landvote.org/> curated by the Trust for Public Land.
22
  '''
23
 
24
- st.caption("We visualize each voting jurisdiction with green if a conservation measure passed and orange if it failed. The intensity of green or orange reflects the level of support or opposition, with darker green representing stronger support for passed measures and darker orange representing lower support for failed measures. Areas with more balanced outcomes appear in shades of grey. Additionally, the height of county and city jurisdictions represents the amount of funding proposed by the measure.")
25
-
26
- st.caption("Political affiliation is determined by the party that received the majority vote in the most recent presidential election for each jurisdiction. For counties and states, this reflects the majority vote in that area. For cities, affiliation is based on the party of the county in which the city is located.")
27
-
28
 
29
 
30
 
@@ -288,11 +285,12 @@ party_style = {
288
  with st.sidebar:
289
  color_choice = st.radio("Color by:", ["Measure Status", "Political Party"])
290
  st.divider()
291
- with st.expander("Social Justice"):
 
 
292
 
293
- social_toggle = st.toggle("Social Vulnerability Index")
294
- justice_toggle = st.toggle("Justice 40")
295
-
296
  party_toggle = st.toggle("Political Parties")
297
 
298
  st.divider()
@@ -381,12 +379,16 @@ Authors: Cassie Buhler & Carl Boettiger, UC Berkeley License: BSD-2-clause
381
 
382
  - TPL LandVote Database by Trust for Public Land. Data: https://tpl.quickbase.com/db/bbqna2qct?a=dbpage&pageID=8. Citation: The Trust for Public Land, LandVote®, 2024, www.landvote.org., License: Public Domain
383
 
 
 
 
 
384
  - County Presidential Election Returns 2000-2020 by MIT Election Data and Science Lab. Citation: https://doi.org/10.7910/DVN/VOQCHQ. License: Public Domain.
385
 
386
  - U.S. President 1976–2020 by MIT Election Data and Science Lab. Citation: https://doi.org/10.7910/DVN/42MVDX. License: Public Domain.
387
 
388
- - Climate and Economic Justice Screening Tool, US Council on Environmental Quality, Justice40, Data: https://beta.source.coop/repositories/cboettig/justice40/description/. License: Public Domain
389
 
390
- - CDC 2020 Social Vulnerability Index by US Census Track. Data: https://source.coop/repositories/cboettig/social-vulnerability/description. License: Public Domain
391
 
392
  '''
 
 
 
18
  '''
19
  # LandVote Prototype
20
 
21
+ An experimental platform for visualizing data on ballot measures for conservation, based on data from <https://landvote.org/> curated by the Trust for Public Land.
22
  '''
23
 
24
+ st.caption("We visualize each voting jurisdiction with green if a conservation measure passed and orange if it failed. The intensity of green or orange reflects the level of support or opposition, with darker green representing stronger support for passed measures and darker orange representing lower support for failed measures. The height of county and city jurisdictions represents the amount of funding proposed by the measure.")
 
 
 
25
 
26
 
27
 
 
285
  with st.sidebar:
286
  color_choice = st.radio("Color by:", ["Measure Status", "Political Party"])
287
  st.divider()
288
+
289
+ "Data Layers:"
290
+ # with st.expander("Social Justice"):
291
 
292
+ social_toggle = st.toggle("Social Vulnerability Index")
293
+ justice_toggle = st.toggle("Climate and Economic Justice")
 
294
  party_toggle = st.toggle("Political Parties")
295
 
296
  st.divider()
 
379
 
380
  - TPL LandVote Database by Trust for Public Land. Data: https://tpl.quickbase.com/db/bbqna2qct?a=dbpage&pageID=8. Citation: The Trust for Public Land, LandVote®, 2024, www.landvote.org., License: Public Domain
381
 
382
+ - Climate and Economic Justice Screening Tool, US Council on Environmental Quality, Justice40, Data: https://beta.source.coop/repositories/cboettig/justice40/description/. License: Public Domain
383
+
384
+ - CDC 2020 Social Vulnerability Index by US Census Track. Data: https://source.coop/repositories/cboettig/social-vulnerability/description. License: Public Domain
385
+
386
  - County Presidential Election Returns 2000-2020 by MIT Election Data and Science Lab. Citation: https://doi.org/10.7910/DVN/VOQCHQ. License: Public Domain.
387
 
388
  - U.S. President 1976–2020 by MIT Election Data and Science Lab. Citation: https://doi.org/10.7910/DVN/42MVDX. License: Public Domain.
389
 
 
390
 
 
391
 
392
  '''
393
+
394
+ st.caption("***Political affiliation is determined by the party that received the majority vote in the most recent presidential election for each jurisdiction. For counties and states, this reflects the majority vote in that area. For cities, affiliation is based on the party of the county in which the city is located.")