Skip to content

"Truncate Metric" has no effect in Mixed Chart #38190

@archtur

Description

@archtur

Bug description

If I used a mixed chart with query A and B, the "Truncate Metric" checkbox is not working.

I activated both, but the metric is still shown on all data lines.

If I used area chart e.g., the checkbox works as intended and hides the metric in front of the data linen description in the tooltips and in the legend.

Superset version

6.0.0

Browser

Firefox

Additional context

I`m using a superset container....

Here my compose yaml

services:
  superset:
    build: .
    container_name: superset
    ports:
      - "8088:8088"
    environment:
      SUPERSET_ENV: production
      SUPERSET_CONFIG_PATH: /app/superset_home/superset_config.py
    volumes:
      - ./superset_home:/app/superset_home
    depends_on:
      - db

  db:
    image: postgres:16
    container_name: superset-db
    environment:
      POSTGRES_DB: superset
      POSTGRES_USER: superset
      POSTGRES_PASSWORD: superset
    volumes:
      - superset_db:/var/lib/postgresql/data

volumes:
  superset_db:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions