observablehq / observablehq/plot

Plot.tip should support textOverflow

Open
#2,321 0 comments 1 reaction 1 assignee View on GitHub

@Fil is already working on this.

Since May 13, 2025.

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

Description

Currently, textOverflow is ignored in tips that use key/value pairs formatting. (It's appied only in the case where the tip is specified with the title channel).

Image
Plot.tip(
  [
    {
      what: "A long long long long long long long long long long long long way home",
      textOverflow: "ellipsis-middle"
    }
  ],
  { x: "what" }
).plot()

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.