observablehq / observablehq/plot

the default tip sometimes goes in the wrong direction

Open
#2,011 0 comments 0 reactions 1 assignee View on GitHub

@Fil is already working on this.

Since Mar 6, 2024.

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

Description

This example, given by @mootari, where the right-most tip should have been chosen to anchor right:

Capture d’écran 2024-03-06 à 16 38 34

Plot.rectX([1, 1, 1, 1, 1], {
  x: Plot.identity,
  fill: Plot.indexOf,
  title: () =>
    "Lorem ipsum lorem ipsum lorem ipsum Lorem ipsum lorem ipsum lorem ipsum Lorem ipsum lorem ipsum lorem ipsum",
  tip: true
}).plot({ height: 100, marginTop: 20 })

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.