@@ -35,16 +35,18 @@ def build_admits_chart(
35
35
color = color ,
36
36
tooltip = tooltip ,
37
37
)
38
- .configure_legend (orient = "bottom" )
39
- .interactive ()
40
38
)
41
39
bar = (
42
40
alt .Chart ()
43
41
.encode (x = alt .X (** x ))
44
42
.transform_filter (alt .datum .day == 0 )
45
43
.mark_rule (color = "black" , opacity = 0.35 , size = 2 )
46
44
)
47
- return alt .layer (points , bar , data = admits_floor_df )
45
+ return (
46
+ alt .layer (points , bar , data = admits_floor_df )
47
+ .configure_legend (orient = "bottom" )
48
+ .interactive ()
49
+ )
48
50
49
51
50
52
def build_census_chart (
@@ -72,16 +74,18 @@ def build_census_chart(
72
74
color = color ,
73
75
tooltip = tooltip ,
74
76
)
75
- .configure_legend (orient = "bottom" )
76
- .interactive ()
77
77
)
78
78
bar = (
79
79
alt .Chart ()
80
80
.encode (x = alt .X (** x ))
81
81
.transform_filter (alt .datum .day == 0 )
82
82
.mark_rule (color = "black" , opacity = 0.35 , size = 2 )
83
83
)
84
- return alt .layer (points , bar , data = census_floor_df )
84
+ return (
85
+ alt .layer (points , bar , data = census_floor_df )
86
+ .configure_legend (orient = "bottom" )
87
+ .interactive ()
88
+ )
85
89
86
90
87
91
def build_sim_sir_w_date_chart (
@@ -109,16 +113,18 @@ def build_sim_sir_w_date_chart(
109
113
color = color ,
110
114
tooltip = tooltip ,
111
115
)
112
- .configure_legend (orient = "bottom" )
113
- .interactive ()
114
116
)
115
117
bar = (
116
118
alt .Chart ()
117
119
.encode (x = alt .X (** x ))
118
120
.transform_filter (alt .datum .day == 0 )
119
121
.mark_rule (color = "black" , opacity = 0.35 , size = 2 )
120
122
)
121
- return alt .layer (points , bar , data = sim_sir_w_date_floor_df )
123
+ return (
124
+ alt .layer (points , bar , data = sim_sir_w_date_floor_df )
125
+ .configure_legend (orient = "bottom" )
126
+ .interactive ()
127
+ )
122
128
123
129
124
130
def build_descriptions (
0 commit comments