Spaces:
Build error
Build error
Kaushik Rajan
commited on
Commit
·
25146ac
1
Parent(s):
dc47fd2
Add dark theme to Plotly charts only (preserves plotting functionality)
Browse files
app.py
CHANGED
|
@@ -353,13 +353,13 @@ def create_interface():
|
|
| 353 |
return None, None, None
|
| 354 |
|
| 355 |
fig_ms = px.line(df, x="Quarter", y=["Player Market Share", "AI Market Share"], title="Market Share (%)", markers=True, color_discrete_map={"Player Market Share": "#3b82f6", "AI Market Share": "#ef4444"})
|
| 356 |
-
fig_ms.update_layout(yaxis_range=[0,100], legend_title_text='')
|
| 357 |
|
| 358 |
fig_b = px.line(df, x="Quarter", y=["Player Budget", "AI Budget"], title="Budget ($)", markers=True, color_discrete_map={"Player Budget": "#3b82f6", "AI Budget": "#ef4444"})
|
| 359 |
-
fig_b.update_layout(legend_title_text='')
|
| 360 |
|
| 361 |
fig_q = px.line(df, x="Quarter", y=["Player Product Quality", "AI Product Quality"], title="Product Quality Index", markers=True, color_discrete_map={"Player Product Quality": "#3b82f6", "AI Product Quality": "#ef4444"})
|
| 362 |
-
fig_q.update_layout(legend_title_text='')
|
| 363 |
|
| 364 |
return fig_ms, fig_b, fig_q
|
| 365 |
|
|
|
|
| 353 |
return None, None, None
|
| 354 |
|
| 355 |
fig_ms = px.line(df, x="Quarter", y=["Player Market Share", "AI Market Share"], title="Market Share (%)", markers=True, color_discrete_map={"Player Market Share": "#3b82f6", "AI Market Share": "#ef4444"})
|
| 356 |
+
fig_ms.update_layout(yaxis_range=[0,100], legend_title_text='', template="plotly_dark")
|
| 357 |
|
| 358 |
fig_b = px.line(df, x="Quarter", y=["Player Budget", "AI Budget"], title="Budget ($)", markers=True, color_discrete_map={"Player Budget": "#3b82f6", "AI Budget": "#ef4444"})
|
| 359 |
+
fig_b.update_layout(legend_title_text='', template="plotly_dark")
|
| 360 |
|
| 361 |
fig_q = px.line(df, x="Quarter", y=["Player Product Quality", "AI Product Quality"], title="Product Quality Index", markers=True, color_discrete_map={"Player Product Quality": "#3b82f6", "AI Product Quality": "#ef4444"})
|
| 362 |
+
fig_q.update_layout(legend_title_text='', template="plotly_dark")
|
| 363 |
|
| 364 |
return fig_ms, fig_b, fig_q
|
| 365 |
|