nanhsin commited on
Commit
9fc66c7
·
verified ·
1 Parent(s): 5b6ef4a

Revise scatterplot from average(rate) to rate

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('average(rate):Q', axis=alt.Axis(title='approve'), scale=alt.Scale(domain=[30, 60])),
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