Skip to content

If y is ordinal, chose a smarter default height based on the domain’s cardinality? #323

@mbostock

Description

@mbostock

Currently the height of a chart with a y-scale defaults to 396. It’d be nice if y were ordinal that we chose a height that’s appropriate based on the cardinality of the domain. E.g., perhaps ensuring a nice round bandwidth of exactly 19px pixels (with the default padding of 0.1). We’d probably want a minimum and maximum default height if we do this.

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