joshdavham commited on
Commit
8e3eaee
·
1 Parent(s): f02bde6

remove urbanist font due to streamlit css rendering issues

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -4,14 +4,15 @@ import altair as alt
4
 
5
  #st.set_page_config(layout="wide")
6
 
7
- st.markdown("""
8
- <link href="https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&display=swap" rel="stylesheet">
9
- <style>
10
- .vega-embed * {
11
- font-family: 'Urbanist', sans-serif;
12
- }
13
- </style>
14
- """, unsafe_allow_html=True)
 
15
 
16
  st.title("CIJ by the numbers")
17
 
@@ -48,7 +49,7 @@ histogram = alt.Chart(video_df).mark_bar(
48
  axis=alt.Axis(
49
  labelFontSize=14,
50
  titleFontSize=18,
51
- titleFont='Urbanist',
52
  titleColor='black',
53
  titleFontWeight='normal',
54
  #titleFontStyle='italic',
@@ -61,7 +62,7 @@ histogram = alt.Chart(video_df).mark_bar(
61
  axis=alt.Axis(
62
  labelFontSize=14,
63
  titleFontSize=18,
64
- titleFont='Urbanist',
65
  titleColor='black',
66
  titleFontWeight='normal',
67
  #titleFontStyle='italic',
@@ -76,11 +77,11 @@ histogram = alt.Chart(video_df).mark_bar(
76
  sort=['Complete Beginner', 'Beginner', 'Intermediate', 'Advanced'],
77
  legend=alt.Legend(
78
  title='CIJ Level',
79
- titleFont='Urbanist',
80
  titleFontSize=18,
81
  titleFontWeight='bolder',
82
  labelFontSize=16,
83
- labelFont='Urbanist',
84
  symbolType='circle',
85
  symbolSize=200,
86
  orient='right',
@@ -108,7 +109,7 @@ histogram = alt.Chart(video_df).mark_bar(
108
  text='Rate of speech in words per minute (WPM)',
109
  offset=20,
110
  #subtitle='(clickable)',
111
- font='Urbanist',
112
  fontSize=24,
113
  fontWeight='normal',
114
  anchor='middle',
 
4
 
5
  #st.set_page_config(layout="wide")
6
 
7
+
8
+ #st.markdown("""
9
+ #<link href="https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&display=swap" rel="stylesheet">
10
+ #<style>
11
+ # .vega-embed * {
12
+ # font-family: 'Urbanist', sans-serif;
13
+ # }
14
+ #</style>
15
+ #""", unsafe_allow_html=True)
16
 
17
  st.title("CIJ by the numbers")
18
 
 
49
  axis=alt.Axis(
50
  labelFontSize=14,
51
  titleFontSize=18,
52
+ #titleFont='Urbanist',
53
  titleColor='black',
54
  titleFontWeight='normal',
55
  #titleFontStyle='italic',
 
62
  axis=alt.Axis(
63
  labelFontSize=14,
64
  titleFontSize=18,
65
+ #titleFont='Urbanist',
66
  titleColor='black',
67
  titleFontWeight='normal',
68
  #titleFontStyle='italic',
 
77
  sort=['Complete Beginner', 'Beginner', 'Intermediate', 'Advanced'],
78
  legend=alt.Legend(
79
  title='CIJ Level',
80
+ #titleFont='Urbanist',
81
  titleFontSize=18,
82
  titleFontWeight='bolder',
83
  labelFontSize=16,
84
+ #labelFont='Urbanist',
85
  symbolType='circle',
86
  symbolSize=200,
87
  orient='right',
 
109
  text='Rate of speech in words per minute (WPM)',
110
  offset=20,
111
  #subtitle='(clickable)',
112
+ #font='Urbanist',
113
  fontSize=24,
114
  fontWeight='normal',
115
  anchor='middle',