layerchart icon indicating copy to clipboard operation
layerchart copied to clipboard

Label positioning

Open techniq opened this issue 3 years ago • 1 comments

  • [ ] Voronoi placement
    • https://observablehq.com/@harrystevens/directly-labelling-lines
    • https://observablehq.com/@d3/voronoi-labels
    • https://observablehq.com/@fil/plot-voronoi-labels
    • https://observablehq.com/@d3/voronoi-labels
    • https://observablehq.com/@john-guerra/smart-labels
    • Also only consider showing labels which have enough room in voronoi container
  • [ ] Hide if covered / occlusion
    • https://observablehq.com/@fil/occlusion
  • [x] End of line
    • https://observablehq.com/@observablehq/plot-select
    • https://www.layerchart.com/docs/components/Spline#label-using-start/end-slots
    • https://www.layerchart.com/docs/components/Points
    • https://observablehq.com/d/09bc6dde0874a6ce
  • [ ] Force based (related: #58)
    • https://observablehq.com/@benoldenburg/nyc-transit-fare-increase-history
    • https://observablehq.com/@benoldenburg/force-labels-method
  • [ ] Stretched polylabel
    • https://observablehq.com/@mourner/labeling-with-stretched-polylabel

See also:

  • https://github.com/observablehq/plot/issues/27

techniq avatar Apr 06 '22 03:04 techniq

see d3-milestones example

techniq avatar Aug 01 '23 14:08 techniq