Skip to content

A key channel #1436

Open
Open
@mbostock

Description

@mbostock

I think for interaction (and perhaps even for tooltips) we’ll want a concept of a key channel: an ordinal channel that defines the identity of each instance. This way we can unambiguously say whether a given instance (a given data point) should appear selected/highlighted during interaction, similar to how the fx and fy channels unambiguously say in which facet the instance should appear.

We can have some default too, of course, say based on the strict identity of the data and the zero-based index. But we’ll want this concept to better support interaction with layered marks.

(And then the next thing we want is a way to set the selection interactively, to override mark options when an instance is selected, and to re-render marks incrementally when the selection changes.)

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