Skip to content

d3 formatting not working #7650

@duffar12

Description

@duffar12

Expected results

Number formatting on dashboard should change according to d3 format specified in metrics

Actual results

Specifying a d3 format works on the COUNT(*) metric. But has no affect on any other metric as far as I can tell

Screenshots

image

In the image above COUNT(*) and SUM(count) have the same d3 format configured. However, the configuration is not being applied to SUM(count)

How to reproduce the bug

  1. Change the d3 format of COUNT(*) and any other metric for one of your tables
  2. Create a table view of these two metrics.
  3. Notice that d3 formatting is only applied to the COUNT(*) metric

Environment

*superset version: 0.33.0
*python version: 3.6.8

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

I have seen a number of other Issues raised around d3 formatting dating back to 2017. As far as I can tell those issues were fixed in this PR #2598
So I believe this must be a new bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    !deprecated-label:bugDeprecated label - Use #bug insteadinactiveInactive for >= 30 days

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions