Skip to content

Commit

Permalink
Hide second legend label
Browse files Browse the repository at this point in the history
Co-authored-by: Theodor Isacsson <[email protected]>
  • Loading branch information
k8culver and thisac authored Jul 4, 2024
1 parent 91b012d commit 7d168c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/generate_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ def generate_gantt_chart(
trace.update({"name": label, "legendrank": i})
unique_labels.add(label)
else:
fig.update_traces({"showlegend": False}, {"name": label})
trace.update({"name": label, "legendrank": i})
trace.update({"showlegend": False})

fig.update_legends({"title": {"text": COLOR_LABEL}}) # Update legend title.

Expand Down

0 comments on commit 7d168c3

Please sign in to comment.