AppleSwing commited on
Commit
2decc9c
·
verified ·
1 Parent(s): c36571d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -165,13 +165,27 @@ def generate_radar_plot(selected_rows_data: List[dict]) -> go.Figure:
165
  fig.update_layout(
166
  title=dict(text=f"CAP Radar Plot: {dataset_name}", x=0.5, xanchor='center', font=dict(size=20, color="black")),
167
  polar=dict(
168
- radialaxis=dict(visible=True, range=[0, 100], tickfont=dict(size=12, color="black")),
169
- angularaxis=dict(tickfont=dict(size=14, color="black"), rotation=90, direction='clockwise'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  bgcolor="white"
171
  ),
172
  legend=dict(orientation='h', yanchor='bottom', y=-0.15, xanchor='center', x=0.5, font=dict(size=13, color="black")),
173
  **layout_settings
174
- )
175
 
176
  return fig
177
 
 
165
  fig.update_layout(
166
  title=dict(text=f"CAP Radar Plot: {dataset_name}", x=0.5, xanchor='center', font=dict(size=20, color="black")),
167
  polar=dict(
168
+ radialaxis=dict(
169
+ visible=True,
170
+ range=[0, 100],
171
+ tickfont=dict(size=12, color="black"),
172
+ gridcolor='lightgray', # Add this
173
+ linecolor='gray', # Add this
174
+ showline=True # Add this
175
+ ),
176
+ angularaxis=dict(
177
+ tickfont=dict(size=14, color="black"),
178
+ rotation=90,
179
+ direction='clockwise',
180
+ gridcolor='lightgray', # Add this
181
+ linecolor='gray', # Add this
182
+ showline=True # Add this
183
+ ),
184
  bgcolor="white"
185
  ),
186
  legend=dict(orientation='h', yanchor='bottom', y=-0.15, xanchor='center', x=0.5, font=dict(size=13, color="black")),
187
  **layout_settings
188
+ )
189
 
190
  return fig
191