8000 Log scales may generate no ticks for small domains. · Issue #44 · d3/d3-scale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Log scales may generate no ticks for small domains. #44
Closed
@mbostock

Description

@mbostock

If the difference between the smallest and largest values in the domain is small relative to their absolute value, then log.ticks can return the empty array. For example:

d3_scale.log().domain([42, 43]).ticks(); // []

In this case, it’d probably be best for the log scale to fallback to the behavior of a standard linear scale. Although, it’s probably appropriate to continue to use an exponential tick format?

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