Spaces:
Sleeping
Sleeping
use full width
Browse files
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([
|
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,
|
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 |
|