Skip to content

Dashboard/Stats v4/Charts: improvements when x-axis labels are long #1207

Open
@jaclync

Description

@jaclync

The localized date format on the x-axis of stats charts could potentially be of any length for any locales that we haven't tested. In #1194, we tried turning on word wrap for the label text, but it doesn't seem to show beyond one line of text.

As @kyleaparker suggested first, we could rotate the text when the total label width is greater than the chart width, but from my testing it has the same issue as word wrap - any text below the first line gets cut off exactly like in ChartsOrg/Charts#3933. I also couldn't find a good way to check the total label width. When we have more time, let's revisit this.

There are similar open issues in the Charts library, like ChartsOrg/Charts#3734. We can try reproducing in their demo app first, and if so we can time-box fixing it / report an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: statsRelated to stats, including Top Performers.type: taskAn internally driven task.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions