observablehq/plot

the default tip sometimes goes in the wrong direction

Fil opened this issue · 0 comments

Fil commented

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 })