Skip to content

Commit

Permalink
fix: white background labels
Browse files Browse the repository at this point in the history
  • Loading branch information
gmguarino committed Apr 25, 2024
1 parent 5cefcb8 commit 75f702b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pinkbombs/router/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ async def generate_graphs(graph_name, connection: bool = Depends(verify_token)):
"data/" + MAPPING[graph_name]["filename"],
)
chart_obj = MAPPING[graph_name]["function"](df, *MAPPING[graph_name]["arguments"])
chart_obj.update_layout(
hoverlabel=dict(
bgcolor="white",
)
)

return {
"graph_name": graph_name,
"graph": chart_obj.to_json(),
Expand Down

0 comments on commit 75f702b

Please sign in to comment.