Skip to content

[Bug]: Scatter chart x axis label is truncated (below the line height) #1095

@joaoaguiam

Description

@joaoaguiam

Tremor Version

3.17.2

Link to minimal reproduction

https://gist.github.com/joaoaguiam/bd5b464221b7887e273a90f5c96e04c9

Steps to reproduce

Copy paste that gist to your project. This is the default example of scatter with a xAxis label.
As the axis has a y, the part that is below the line is truncated. Check image.
CleanShot 2024-06-29 at 15 06 29@2x

By inspecting the code, the dy property is set to 0em. if I change to -0.5em, the word becomes fully visible.
CleanShot 2024-06-29 at 15 07 36@2x

What is expected?

The word should be fully visible and not only partially

What is actually happening?

The part of the word below the line is not visible

What browsers are you seeing the problem on?

Chrome

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Need more infoThe issue still hasn't been fully clarifiedType: BugConfirmed bug, something is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions