Update Home.py
Browse files
Home.py
CHANGED
|
@@ -194,7 +194,7 @@ try:
|
|
| 194 |
|
| 195 |
# Horizontal bar chart with Altair
|
| 196 |
chart_aut = (
|
| 197 |
-
alt.Chart(
|
| 198 |
.mark_bar()
|
| 199 |
.encode(
|
| 200 |
x="Count:Q",
|
|
@@ -233,18 +233,19 @@ try:
|
|
| 233 |
ax.imshow(wordcloud, interpolation="bilinear")
|
| 234 |
ax.axis("off")
|
| 235 |
st.pyplot(fig)
|
|
|
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
# layout
|
| 240 |
col1, col2 = st.columns(2)
|
| 241 |
-
with col1.container():
|
| 242 |
st.bar_chart(jrnl_counts_df)
|
| 243 |
-
with col2.container():
|
| 244 |
st.bar_chart(year_counts_df)
|
| 245 |
-
with col1.container():
|
| 246 |
st.altair_chart(chart_ins, use_container_width=True)
|
| 247 |
-
with col2.container():
|
| 248 |
st.altair_chart(chart_aut, use_container_width=True)
|
| 249 |
|
| 250 |
|
|
|
|
| 194 |
|
| 195 |
# Horizontal bar chart with Altair
|
| 196 |
chart_aut = (
|
| 197 |
+
alt.Chart(aut_counts)
|
| 198 |
.mark_bar()
|
| 199 |
.encode(
|
| 200 |
x="Count:Q",
|
|
|
|
| 233 |
ax.imshow(wordcloud, interpolation="bilinear")
|
| 234 |
ax.axis("off")
|
| 235 |
st.pyplot(fig)
|
| 236 |
+
st.write(" ")
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
# layout
|
| 241 |
col1, col2 = st.columns(2)
|
| 242 |
+
with col1.container(border=True,, gap="small"):
|
| 243 |
st.bar_chart(jrnl_counts_df)
|
| 244 |
+
with col2.container(border=True, gap="small"):
|
| 245 |
st.bar_chart(year_counts_df)
|
| 246 |
+
with col1.container(border=True, gap="small"):
|
| 247 |
st.altair_chart(chart_ins, use_container_width=True)
|
| 248 |
+
with col2.container(border=True, gap="small"):
|
| 249 |
st.altair_chart(chart_aut, use_container_width=True)
|
| 250 |
|
| 251 |
|