Skip to content

Pivot Table doesn't consider metric currency for column width #31377

Closed

Description

@Jockxtar

Screenshot

imagen
imagen

Description

When adding metrics with currency to a pivot table chart, the column width is calculated based on the size of the number, but it doesn't account for the additional character of the currency symbol, forcing the symbol to be truncated into an additional line, which increases the rows' height.

Design input

I suggest to increase columns' width if the metric that it represents has any currency at all.

Activity

  1. added
    #bug:cosmetic
    viz:charts:pivot
    on Dec 10, 2024
  2. rusackas commented on Dec 10, 2024

    @rusackas
    Member

    You might be able to fix this with a CSS one-liner of white-space: nowrap;. I don't have time to try it out right now, but a PR would be appreciated if it works.

  3. Jockxtar commented on Dec 11, 2024

    @Jockxtar
    Author

    I just checked and it works, thank you!
    I installed superset via pip, so I don’t have access to the front-end beyond the 'Edit CSS' function embedded in the dashboards.

  4. rusackas commented on Dec 11, 2024

    @rusackas
    Member

    @Vitor-Avila @sadpandajoe think any of us should open a short PR here? Not sure if anyone's been too concerned about this.

  5. sadpandajoe commented on Dec 11, 2024

    @sadpandajoe
    Member

    I don't think this is that high priority but @Vitor-Avila may have a different opinion about it.

  6. Vitor-Avila commented on Dec 12, 2024

    @Vitor-Avila
    Contributor

    @rusackas there you go: #31414

    As you know I'm not too familiar with frontend, so while I tested locally, it would be good to double check if that's the right place to add it.

  7. moved this from Done to Cherried in Apache Superset 4.1.2on Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    #bug:cosmeticviz:charts:pivot

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions