Skip to content

The default tickFormat with a collapsed domain lacks sufficient precision #2076

Open

Description

@mbostock

untitled - 2024-06-09T163705 855

Plot.ruleX([5.5]).plot()

We should probably fallback to formatAuto when there is a collapsed domain.

Activity

  1. added
    bug
    on Jun 9, 2024
  2. mbostock commented on Jun 17, 2024

    @mbostock
    MemberAuthor

    Really a D3 bug…

    d3.scaleLinear().domain([5.5, 5.5]).tickFormat(7.5)(5.5) // "6"

    We don’t handle the tick step being zero well.

  3. Fil commented on Jun 17, 2024

    @Fil
    Contributor
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions