Skip to content

Shorthand descending sort #1458

Closed
Closed
@mbostock

Description

@mbostock

It’d be nice to have a shorthand for descending sort such as:

Plot.barY(alphabet, {x: "letter", y: "frequency", sort: {x: "-y"}}).plot()

This would be equivalent to:

Plot.barY(alphabet, {x: "letter", y: "frequency", sort: {x: "y", reverse: true}}).plot()

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