observablehq / observablehq/plot
A key channel
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
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.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating the channel and interaction implementations, then clarify the scope and acceptance criteria for a key channel, layered marks, and the proposed selection behavior before attempting work.
Written by the indexing model from the issue text.
Assessment
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100