Skip to content

Commit

Permalink
use full width
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 12, 2024
1 parent e82a1cf commit 1fc5096
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):
)

plt = alt.Chart(sel.execute()).mark_bar().encode(x = "grade", y = "mean")
return st.altair_chart(plt)
return st.altair_chart(plt, use_container_width=True)

mappinginequality = 'https://data.source.coop/cboettig/us-boundaries/mappinginequality.pmtiles'

Expand All @@ -172,7 +172,7 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):



mapcol, chartcol = st.columns([4,1])
mapcol, chartcol = st.columns([3,1])

if submitted:
with mapcol:
Expand All @@ -189,8 +189,9 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):
m.to_streamlit()

with chartcol:
st.markdown(f"{gdf_name}")
bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
st.markdown(f"Mean density of {count} by redline grade, count per hectre for {gdf_name}")
st.markdown(f"Mean density of {count} by redline grade, in counts per hectre")



Expand Down

0 comments on commit 1fc5096

Please sign in to comment.