Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,13 +58,13 @@ bar_chart = (
|
|
58 |
.properties(width=550, title="Agency Name Distribution by Year Acquired")
|
59 |
.add_params(click)
|
60 |
)
|
61 |
-
st.
|
62 |
-
|
63 |
Design choices:
|
64 |
- X-axis displays the Agency Name.
|
65 |
- Y-axis displays the Year Acquired.
|
66 |
This bar chart visualizes which agency acquired the count of buildings in which Year.
|
67 |
-
The Agency Name is taken as the ordinal value
|
68 |
""")
|
69 |
# Combined Chart
|
70 |
chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
|
@@ -73,14 +73,15 @@ chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
|
|
73 |
tab1, tab2 = st.tabs(["Streamlit Theme", "Altair Native Theme"])
|
74 |
|
75 |
with tab1:
|
76 |
-
st.altair_chart(chart, theme="streamlit", use_container_width=True)
|
77 |
st.caption("""
|
78 |
-
This scatter plot visualizes the distribution of building size based on their acquisition year.
|
79 |
-
Design choices:
|
80 |
-
- X-axis displays the years acquired sorted in descending order.
|
81 |
-
- Y-axis displays the square footage.
|
82 |
-
This scatter plot visualizes the relationship between year-acquired and Square Footage of buildings,
|
83 |
-
with Total Floors encoded as the size of the points.
|
84 |
-
""")
|
|
|
|
|
85 |
with tab2:
|
86 |
st.altair_chart(chart, theme=None, use_container_width=True)
|
|
|
58 |
.properties(width=550, title="Agency Name Distribution by Year Acquired")
|
59 |
.add_params(click)
|
60 |
)
|
61 |
+
st.caption("""
|
62 |
+
This bar chart visualizes the distribution of Agency Name based on their acquisition year.
|
63 |
Design choices:
|
64 |
- X-axis displays the Agency Name.
|
65 |
- Y-axis displays the Year Acquired.
|
66 |
This bar chart visualizes which agency acquired the count of buildings in which Year.
|
67 |
+
The Agency Name is taken as the ordinal value.
|
68 |
""")
|
69 |
# Combined Chart
|
70 |
chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
|
|
|
73 |
tab1, tab2 = st.tabs(["Streamlit Theme", "Altair Native Theme"])
|
74 |
|
75 |
with tab1:
|
|
|
76 |
st.caption("""
|
77 |
+
This scatter plot visualizes the distribution of building size based on their acquisition year.
|
78 |
+
Design choices:
|
79 |
+
- X-axis displays the years acquired sorted in descending order.
|
80 |
+
- Y-axis displays the square footage.
|
81 |
+
This scatter plot visualizes the relationship between year-acquired and Square Footage of buildings,
|
82 |
+
with Total Floors encoded as the size of the points.
|
83 |
+
""")
|
84 |
+
st.altair_chart(chart, theme="streamlit", use_container_width=True)
|
85 |
+
|
86 |
with tab2:
|
87 |
st.altair_chart(chart, theme=None, use_container_width=True)
|