Spaces:
Runtime error
Runtime error
Update visualization.py
Browse files- visualization.py +11 -3
visualization.py
CHANGED
@@ -58,16 +58,24 @@ def create_charts(results):
|
|
58 |
fig = go.Figure(data=go.Scatterpolar(
|
59 |
r=values,
|
60 |
theta=labels,
|
61 |
-
fill='toself'
|
|
|
|
|
62 |
))
|
|
|
63 |
fig.update_layout(
|
64 |
polar=dict(
|
65 |
-
radialaxis=dict(visible=True, range=[0, 10])
|
|
|
|
|
66 |
),
|
67 |
showlegend=False,
|
68 |
-
title=f'{speaker_id}: Attachment Dimensions'
|
|
|
69 |
)
|
|
|
70 |
charts[speaker_id]['dimensions'] = fig
|
|
|
71 |
|
72 |
return charts, explanations, general_impressions
|
73 |
|
|
|
58 |
fig = go.Figure(data=go.Scatterpolar(
|
59 |
r=values,
|
60 |
theta=labels,
|
61 |
+
fill='toself',
|
62 |
+
marker=dict(color='black'), # Set the color to black
|
63 |
+
line=dict(color='black') # Set the line color to black
|
64 |
))
|
65 |
+
|
66 |
fig.update_layout(
|
67 |
polar=dict(
|
68 |
+
radialaxis=dict(visible=True, range=[0, 10]),
|
69 |
+
angularaxis=dict(linecolor='black', gridcolor='black'), # Set angular axis line color to black
|
70 |
+
bgcolor='white' # Ensure background is white for contrast
|
71 |
),
|
72 |
showlegend=False,
|
73 |
+
title=f'{speaker_id}: Attachment Dimensions',
|
74 |
+
font=dict(color='black') # Set the font color to black
|
75 |
)
|
76 |
+
|
77 |
charts[speaker_id]['dimensions'] = fig
|
78 |
+
|
79 |
|
80 |
return charts, explanations, general_impressions
|
81 |
|