Skip to content

Automargins in narrow spaces #4350

Closed
Closed
@nicolaskruchten

Description

@nicolaskruchten

From @chriddyp:

I’m seeing this issue in 1.51.1 - I’m assuming that the axes labels are longer than the width of the chart itself. maybe we can introduce some kind of minwidth property for the layout where the chart would shrink up to minwidth and display cut off tick labels (e.g. shrink the chart up to 100px wide)

image

a min width on one end or the other might be nice. either say - if there isn’t enough room, make the graph at least 100px wide (layout.minwidth or something) or e.g. set the min width in the tick labels - display at least 40px of tick labels
or maybe there is a more elegant solution to display the tick labels in a nicer way for compact layouts. like on top of the bars or something. or at least get the hover labels to show up on top of the bars

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions