Skip to content

Mixed Chart Displaying Numbers Incorrectly on Tooltips when using a numeric axis with a secondary y axis format #34030

@yousoph

Description

@yousoph

Bug description

Repro steps:

  1. Create a mixed chart
  2. In one of the queries, set the metric to use a number. In the other, set it to use a %
  3. In the Customize tab, set the Primary y-axis format and Secondary y-axis format. One should use something numeric and the other should use something with a %
  4. Hover over the tooltips on the chart

Image

Current behavior:
The numeric value is showing as a %. Instead of showing 4724163, it's showing 472416260.0%

Expected behavior:
The tooltip displays should match the correct formatting as the axis

Note: repro steps use a % for the secondary y axis but this can be reproduced with other formats in the secondary y axis field

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.

Metadata

Metadata

Labels

#bug:cosmeticCosmetic/layout/design tweak neededpreset:bountyIssues that have been selected by Preset and have a bounty attached.preset:bounty:bugBugs that have been selected by Preset and have a bounty attached.viz:charts:mixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions