Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,15 @@ scatter = (
|
|
42 |
.transform_filter(click)
|
43 |
)
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
# Bottom Panel: Bar Chart (Square Footage Distribution by Year Acquired)
|
46 |
bar_chart = (
|
47 |
alt.Chart(data)
|
@@ -56,7 +65,13 @@ bar_chart = (
|
|
56 |
.properties(width=550, title="Agency Name Distribution by Year Acquired")
|
57 |
.add_params(click)
|
58 |
)
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
# Combined Chart
|
61 |
chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
|
62 |
|
|
|
42 |
.transform_filter(click)
|
43 |
)
|
44 |
|
45 |
+
st.text("""
|
46 |
+
This scatter plot visualizes the distribution of building size based on their acquisition year.
|
47 |
+
Design choices:
|
48 |
+
- X-axis displays the years acquired sorted in descending order.
|
49 |
+
- Y-axis displays the square footage.
|
50 |
+
This scatter plot visualizes the relationship between Year Acquired and Square Footage of buildings,
|
51 |
+
with Total Floors encoded as the size of the points. The interactive brush tool allows users to select subsets of the data, dynamically highlighting specific ranges of years or square footage.
|
52 |
+
""")
|
53 |
+
|
54 |
# Bottom Panel: Bar Chart (Square Footage Distribution by Year Acquired)
|
55 |
bar_chart = (
|
56 |
alt.Chart(data)
|
|
|
65 |
.properties(width=550, title="Agency Name Distribution by Year Acquired")
|
66 |
.add_params(click)
|
67 |
)
|
68 |
+
st.text("""
|
69 |
+
This bar chart visualizes the distribution of Agency Name based on their acquisition year.
|
70 |
+
Design choices:
|
71 |
+
- X-axis displays the Agency Name.
|
72 |
+
- Y-axis displays the Year Acquired.
|
73 |
+
This bar chart visualizes the Which agency acquired the count of buidings in which Year. The Agency Name is taken as the ordinal value.
|
74 |
+
""")
|
75 |
# Combined Chart
|
76 |
chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
|
77 |
|