Nirmal16 commited on
Commit
37b1388
·
verified ·
1 Parent(s): 50a4bdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -2,9 +2,6 @@ import streamlit as st
2
  import altair as alt
3
  import pandas as pd
4
 
5
- # Title
6
- st.title("Building Inventory Interactive Visualization")
7
-
8
  # Load Dataset
9
  @st.cache_data
10
  def load_data():
@@ -58,14 +55,7 @@ bar_chart = (
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")
71
 
@@ -84,4 +74,12 @@ with tab1:
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)
 
2
  import altair as alt
3
  import pandas as pd
4
 
 
 
 
5
  # Load Dataset
6
  @st.cache_data
7
  def load_data():
 
55
  .properties(width=550, title="Agency Name Distribution by Year Acquired")
56
  .add_params(click)
57
  )
58
+
 
 
 
 
 
 
 
59
  # Combined Chart
60
  chart = alt.vconcat(scatter, bar_chart, title="Building Inventory Insights")
61
 
 
74
  st.altair_chart(chart, theme="streamlit", use_container_width=True)
75
 
76
  with tab2:
77
+ st.caption("""
78
+ This bar chart visualizes the distribution of Agency Name based on their acquisition year.
79
+ Design choices:
80
+ - X-axis displays the Agency Name.
81
+ - Y-axis displays the Year Acquired.
82
+ This bar chart visualizes which agency acquired the count of buildings in which Year.
83
+ The Agency Name is taken as the ordinal value.
84
+ """)
85
  st.altair_chart(chart, theme=None, use_container_width=True)