observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.25k stars 173 forks source link

the default tip sometimes goes in the wrong direction #2011

Open Fil opened 6 months ago

Fil commented 6 months ago

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