Spaces:
Sleeping
Sleeping
cassiebuhler
commited on
Commit
·
d328343
1
Parent(s):
2219c29
added themes
Browse files
app.py
CHANGED
@@ -106,6 +106,8 @@ def get_passes(party):
|
|
106 |
|
107 |
|
108 |
def percent_chart(df_passes):
|
|
|
|
|
109 |
chart = alt.Chart(df_passes).mark_line(strokeWidth=3).encode(
|
110 |
x=alt.X('year:N', title='Year'),
|
111 |
y=alt.Y('percent_passed:Q', title='Percent Passed'),
|
|
|
106 |
|
107 |
|
108 |
def percent_chart(df_passes):
|
109 |
+
alt.themes.enable('fivethirtyeight')
|
110 |
+
|
111 |
chart = alt.Chart(df_passes).mark_line(strokeWidth=3).encode(
|
112 |
x=alt.X('year:N', title='Year'),
|
113 |
y=alt.Y('percent_passed:Q', title='Percent Passed'),
|