Revise scatterplot from average(rate) to rate
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def create_plot(subgroup, date_range, moving_av_window):
|
|
37 |
# Scatter plot with individual polls
|
38 |
rate_scatter = alt.Chart(df3).mark_point(color='grey', size=2, opacity=0.7).encode(
|
39 |
x=alt.X('timestamp:T', axis=alt.Axis(title=None)),
|
40 |
-
y=alt.Y('
|
41 |
)
|
42 |
|
43 |
# Put them together
|
|
|
37 |
# Scatter plot with individual polls
|
38 |
rate_scatter = alt.Chart(df3).mark_point(color='grey', size=2, opacity=0.7).encode(
|
39 |
x=alt.X('timestamp:T', axis=alt.Axis(title=None)),
|
40 |
+
y=alt.Y('rate:Q', axis=alt.Axis(title='approve'), scale=alt.Scale(domain=[30, 60])),
|
41 |
)
|
42 |
|
43 |
# Put them together
|