Skip to content

Improve syntax for argmin/max #1642

@kanitw

Description

@kanitw

Right now we need something like

alt.Y(aggregate=alt.ArgmaxDef(argmax=<f>), field=..., type=...)

to make the following in Vega-Lite:

{aggregate: {argmax: <f>}, field: ..., type: ...}

It would be more natural to allow:

alt.Y(aggregate=alt.Argmax(<f>), field=..., type=...)

Same for argmin. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions