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

remove stroke width in legend + align median text labels

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -84,6 +84,7 @@ histogram = alt.Chart(video_df).mark_bar(
84
  #labelFont='Urbanist',
85
  symbolType='circle',
86
  symbolSize=200,
 
87
  orient='right',
88
  direction='vertical',
89
  fillColor='white',
@@ -148,9 +149,9 @@ vertical_lines = alt.Chart(line_data).mark_rule(
148
  )
149
 
150
  text_labels = alt.Chart(line_data).mark_text(
151
- align='left', # Align text to the left of the line
152
- dx=5, # Offset the text to the right by 5 pixels
153
- dy=-5, # Adjust vertical positioning
154
  fontSize=16,
155
  fontWeight='bold'
156
  ).encode(
 
84
  #labelFont='Urbanist',
85
  symbolType='circle',
86
  symbolSize=200,
87
+ symbolStrokeWidth=0,
88
  orient='right',
89
  direction='vertical',
90
  fillColor='white',
 
149
  )
150
 
151
  text_labels = alt.Chart(line_data).mark_text(
152
+ align='center', # Align text to the left of the line
153
+ dx=0, # Offset the text to the right by 5 pixels
154
+ dy=-10, # Adjust vertical positioning
155
  fontSize=16,
156
  fontWeight='bold'
157
  ).encode(