Skip to content

waffle unit: auto #2214

Open
Open
@Fil

Description

@Fil
Contributor

When a waffle mark depicts large values, it might become invisible because the area for each "dot" becomes infinitesimal. This suggests that the default unit should be "auto" instead of 1, and adapt to the available area.

To avoid unwanted surprises, this should not be too progressive (we don't want this to kick in for values such as 0.001 or 1000), but only happen only if the base dot is infinitesimal or super-extra-huge. It should also only work with powers of 10 (or maybe powers of 1000).

It should also be shared between all waffle marks (but that should be OK given that it will be based on the available area = bandwidth × bar length). We might want a way to surface it to the user (something like an internal scale, maybe?).

Image

Activity

added a commit that references this issue on Oct 30, 2024
1533c86
linked a pull request that will close this issue on Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Fil

      Issue actions

        waffle unit: auto · Issue #2214 · observablehq/plot