Skip to content

A larger default marginLeft for y axes #1451

Open
@mbostock

Description

@mbostock

The current default of 40px is often too small, requiring a custom marginLeft. Since we don’t automatically increase the left margin based on the tick labels #383, we should increase the default, say to 60px. And likewise marginRight if the y axis uses the right anchor.

We should also consider an even larger default if the y scale is ordinal, since ordinal names tend to be longer than numbers. Perhaps 80px. The same applies to the fy axis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions