cboettig commited on
Commit
1fc5096
·
1 Parent(s): e82a1cf

use full width

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -150,7 +150,7 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):
150
  )
151
 
152
  plt = alt.Chart(sel.execute()).mark_bar().encode(x = "grade", y = "mean")
153
- return st.altair_chart(plt)
154
 
155
  mappinginequality = 'https://data.source.coop/cboettig/us-boundaries/mappinginequality.pmtiles'
156
 
@@ -172,7 +172,7 @@ if nunique:
172
 
173
 
174
 
175
- mapcol, chartcol = st.columns([4,1])
176
 
177
  if submitted:
178
  with mapcol:
@@ -189,8 +189,9 @@ if submitted:
189
  m.to_streamlit()
190
 
191
  with chartcol:
 
192
  bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
193
- st.markdown(f"Mean density of {count} by redline grade, count per hectre for {gdf_name}")
194
 
195
 
196
 
 
150
  )
151
 
152
  plt = alt.Chart(sel.execute()).mark_bar().encode(x = "grade", y = "mean")
153
+ return st.altair_chart(plt, use_container_width=True)
154
 
155
  mappinginequality = 'https://data.source.coop/cboettig/us-boundaries/mappinginequality.pmtiles'
156
 
 
172
 
173
 
174
 
175
+ mapcol, chartcol = st.columns([3,1])
176
 
177
  if submitted:
178
  with mapcol:
 
189
  m.to_streamlit()
190
 
191
  with chartcol:
192
+ st.markdown(f"{gdf_name}")
193
  bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
194
+ st.markdown(f"Mean density of {count} by redline grade, in counts per hectre")
195
 
196
 
197