SmeetPatel commited on
Commit
edd8b8d
·
verified ·
1 Parent(s): 67d8de5

filtered data with x-limit

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,8 @@ scatter_plot = (
55
  alt.Chart(filtered_data)
56
  .mark_circle(size=60)
57
  .encode(
58
- x=alt.X("Year Constructed:Q", title="Year Constructed"),
 
59
  y=alt.Y("Square Footage:Q", title="Square Footage"),
60
  color=alt.Color("Bldg Status:N", title="Building Status"),
61
  tooltip=["Agency Name", "Location Name", "Year Constructed", "Square Footage", "Bldg Status"]
 
55
  alt.Chart(filtered_data)
56
  .mark_circle(size=60)
57
  .encode(
58
+ x=alt.X("Year Constructed:Q", title="Year Constructed"), scale=alt.Scale(domain=[1700, filtered_data['Year Constructed'].max()])
59
+ ),
60
  y=alt.Y("Square Footage:Q", title="Square Footage"),
61
  color=alt.Color("Bldg Status:N", title="Building Status"),
62
  tooltip=["Agency Name", "Location Name", "Year Constructed", "Square Footage", "Bldg Status"]