Skip to content

BUG: [Residual] Master Branch Mixed Chart - First metric duplicated with multiple metrics + Group By #37921

Closed

Description

@Alice-608

Bug description

Bug description

Summary
This is a residual bug from the fixed issue (BUG: 6.0.0 Mixed Chart - Duplicate label rendering in tooltip/chart area #37055).

The initial fix resolved general duplicate labels, but the first metric is still duplicated when adding multiple metrics + 1+ Group By dimensions in the same Query.

How to Reproduce

  1. Deploy the latest master branch of Superset
  2. Create a Mixed Chart → Query A:
    • Metrics: score_one, score_two (unique aliases, no duplicates)
    • Group By: name (categorical dimension)
  3. Run the query and save the chart
  4. Observe the legend/tooltip: The first metric (e.g. score_one) appears twice (e.g. score_one, Jack and score_one, score_two, Jack)

Expected Results
All metrics/dimensions render only once without duplication.

Actual Results
First metric is duplicated in the same position; query data is correct, only frontend rendering is broken.

Screenshots

Image

Related Issues

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Activity

  1. dosubot commented on Feb 12, 2026

    @dosubot

    This duplication is happening in the frontend logic for Mixed Charts. The legend and tooltip labels are built by combining metric and group by names, and the deduplication function (dedupSeries) only appends a suffix if it detects duplicate IDs, which doesn't fully resolve cases where the first metric is repeated with group by dimensions. The relevant code is in transformProps.ts and series.ts—specifically, how display names are constructed and how deduplication is applied. Improving the uniqueness logic for series IDs when multiple metrics and group by fields are present should help fix this edge case. You can review and adjust the display name construction and deduplication logic in these files to ensure each legend/tooltip entry is unique and not duplicated. More details on the implementation can be found here and here.

    To reply, just mention @dosu.


    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

    Chat with Dosu Open in Cursor Join Discord Share on X

  2. Alice-608 commented on Feb 24, 2026

    @Alice-608
    Author

    @dosu This residual bug in mixed charts (first metric duplication with multiple metrics + group by) affects our usage and is an edge case not covered by the original #37055 fix.

    Could someone please triage this issue (label priority/type, confirm root cause, or suggest frontend fix direction) at your earliest convenience ?

  3. htcnokia commented on Jul 22, 2026

    @htcnokia

    Yes, it's still a bug now.not fixed.

  4. added a commit that references this issue on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions