8000 Ticks of niced linear scales do not always cover the domain · Issue #209 · d3/d3-scale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Ticks of niced linear scales do not always cover the domain #209
Closed
@domoritz

Description

@domoritz
> d3
  .scaleLinear()
  .domain([70, 210])
  .nice(2)
  .ticks(2)
[0,200]

https://github.com/d3/d3-scale#continuous_nice says that "An optional tick count argument allows greater control over the step size used to extend the bounds, guaranteeing that the returned ticks will exactly cover the domain." This is not true here and the scale domain ([0, 300]) is not covered by the ticks [0,200].

This issue looks similar to #9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0