@@ -30,14 +30,10 @@ def build_admits_chart(
30
30
.encode (x = alt .X (** x ), y = alt .Y (** y ), color = color , tooltip = tooltip )
31
31
.mark_line (point = True )
32
32
.encode (
33
- x = alt .X (** x_kwargs ),
34
- y = alt .Y ("value:Q" , title = "Daily admissions" , scale = y_scale ),
35
- color = "key:N" ,
36
- tooltip = [
37
- tooltip_dict [as_date ],
38
- alt .Tooltip ("value:Q" , format = ".0f" , title = "Admissions" ),
39
- "key:N" ,
40
- ],
33
+ x = alt .X (** x ),
34
+ y = alt .Y (** y ),
35
+ color = color ,
36
+ tooltip = tooltip ,
41
37
)
42
38
.configure_legend (orient = "bottom" )
43
39
.interactive ()
@@ -71,14 +67,10 @@ def build_census_chart(
71
67
.encode (x = alt .X (** x ), y = alt .Y (** y ), color = color , tooltip = tooltip )
72
68
.mark_line (point = True )
73
69
.encode (
74
- x = alt .X (** x_kwargs ),
75
- y = alt .Y ("value:Q" , title = "Census" , scale = y_scale ),
76
- color = "key:N" ,
77
- tooltip = [
78
- idx ,
79
- alt .Tooltip ("value:Q" , format = ".0f" , title = "Census" ),
80
- "key:N" ,
81
- ],
70
+ x = alt .X (** x ),
71
+ y = alt .Y (** y ),
72
+ color = color ,
73
+ tooltip = tooltip ,
82
74
)
83
75
.configure_legend (orient = "bottom" )
84
76
.interactive ()
@@ -112,10 +104,10 @@ def build_sim_sir_w_date_chart(
112
104
.encode (x = alt .X (** x ), y = alt .Y (** y ), color = color , tooltip = tooltip )
113
105
.mark_line ()
114
106
.encode (
115
- x = alt .X (** x_kwargs ),
116
- y = alt .Y ("value:Q" , title = "Case Volume" , scale = y_scale ),
117
- tooltip = [ "key:N" , "value:Q" ] ,
118
- color = "key:N" ,
107
+ x = alt .X (** x ),
108
+ y = alt .Y (** y ),
109
+ color = color ,
110
+ tooltip = tooltip ,
119
111
)
120
112
.configure_legend (orient = "bottom" )
121
113
.interactive ()
0 commit comments