observablehq / observablehq/plot

`Mark` type definitions are missing public (?) API

Open Beginner friendly
#2,453 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
5.4k
Forks
244
PR merge metrics
No merged PRs in 30d

Description

According to https://observablehq.com/@observablehq/read-channels-initialized-by-a-plot-mark we can access the plotted data as transformed by Plot. (I hope this API hasn’t become internal since.)

The initialize function, however, is missing from the type definitions:

https://github.com/observablehq/plot/blob/356f579b1d947ee05a914420eddff0f29cee300a/src/mark.d.ts#L483-L492

I also couldn’t find this in the documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/mark.d.ts around lines 483–492 and compare the available Mark type definitions with the initialize API described in the linked Observable example. Confirm whether initialize is public, then update the type definitions and documentation so the API is represented consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.