Skip to content

Gauge chart interval bounds and colors not working properly when added to a dashboard #28766

Open
@rodrigo-l-santos-alb

Description

@rodrigo-l-santos-alb

Bug description

I have created a gauge chart with interval bounds and interval colors defined as the following picture, the color scheme defined is the Superset Colors color scheme.

image

When I add the chart to a dashboard, and access that dashboard, sometimes the colors and interval bounds aren't correctly displayed (see screenshot bellow).

image

Note: the dashboard is also set to use the Superset Colors scheme.

How to reproduce the bug

  1. Create a gauge chart.
  2. Define interval bounds and interval colors.
  3. Add chart to a dashboard.
  4. Go to the dashboard.
  5. Sometimes colors are correct when accessing the dashboard and sometimes they are not correct, however try to refresh the page and the colors change after refresh.

Screenshots/recordings

No response

Superset version

3.1.3

Python version

3.9

Node version

Not applicable

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.

Metadata

Metadata

Assignees

Labels

dashboardNamespace | Anything related to the Dashboardrequires:validationA committer should validate the issueviz:charts:gaugeRelated to the Gauge chart

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions