qua605 commited on
Commit
11ca482
·
1 Parent(s): fc5b4e3
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -19,3 +19,19 @@ viz1 = (
19
  )
20
 
21
  st.altair_chart(viz1, use_container_width=False)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  )
20
 
21
  st.altair_chart(viz1, use_container_width=False)
22
+
23
+ st.header("Visualization 2: Issued Time")
24
+ data["Issue Date"] = pd.to_datetime(data["Issue Date"],errors="coerce")
25
+ data["YearMonth"] = data["Issue Date"].dt.to_period("M")
26
+
27
+ viz2 = (
28
+ alt.Chart(data)
29
+ .mark_line(point=True)
30
+ .encode(
31
+ x=alt.X("YearMonth:T", title = "Issue Date(Month)"),
32
+ y = alt.Y("count():Q", title="Number of License"),
33
+ color = alt.Color("License Type:N", legend=True)
34
+ )
35
+ .properties(width = 900, height=500)
36
+ )
37
+ st.altair_chart(viz2, use_container_width=False)