From 7d168c37e0db709b9bc2337cc94893969393dbb6 Mon Sep 17 00:00:00 2001 From: Kate Culver Date: Thu, 4 Jul 2024 10:20:21 -0700 Subject: [PATCH] Hide second legend label Co-authored-by: Theodor Isacsson --- src/generate_charts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generate_charts.py b/src/generate_charts.py index 7809ff6..91ae12d 100644 --- a/src/generate_charts.py +++ b/src/generate_charts.py @@ -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.