Spaces:
Sleeping
Sleeping
Commit
·
9db0440
1
Parent(s):
522ea0d
plot bgcolor
Browse files
main.py
CHANGED
@@ -301,7 +301,7 @@ def get_chart_28168342():
|
|
301 |
)
|
302 |
)
|
303 |
|
304 |
-
fig.update_layout(height=500)
|
305 |
# Serialize the Plotly figure to JSON
|
306 |
fig_json = fig.to_json()
|
307 |
return fig
|
@@ -309,7 +309,9 @@ def get_chart_28168342():
|
|
309 |
|
310 |
@app.get("/curated")
|
311 |
def curated():
|
312 |
-
return Div(
|
|
|
|
|
313 |
|
314 |
|
315 |
@app.get("/common")
|
|
|
301 |
)
|
302 |
)
|
303 |
|
304 |
+
fig.update_layout(height=500, plot_bgcolor="rgba(0,0,0,0)")
|
305 |
# Serialize the Plotly figure to JSON
|
306 |
fig_json = fig.to_json()
|
307 |
return fig
|
|
|
309 |
|
310 |
@app.get("/curated")
|
311 |
def curated():
|
312 |
+
return Div(
|
313 |
+
H2("Curated Sources"), plotly2fasthtml(get_chart_28168342()), id="inner-text"
|
314 |
+
)
|
315 |
|
316 |
|
317 |
@app.get("/common")
|