Skip to content

The auto mark could be smarter and choose lineY #1547

Closed
@mbostock

Description

@mbostock

Currently the auto mark tends to prefer line over lineX and lineY. There is no visible difference, but there is a difference in interaction behavior if we enable the default tip option as in #1546: with line, we get the two-dimensional pointer, but with lineY (the common choice for x = time and y = value) we would get the one-dimensional pointerX. Using the isMonotonic heuristic we should be able to prefer lineY or lineX in some cases and perhaps the same for areaY and areaX (we already prefer areaY).

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