plot icon indicating copy to clipboard operation
plot copied to clipboard

Add the figure element to the context

Open Fil opened this issue 2 years ago • 2 comments

Currently context contains the ownerSVGElement property (the chart's svg), but not the main element (figure or svg), making it a bit difficult e.g. to listen to the chart's own "input" events (and more…).

Fil avatar Sep 28 '23 15:09 Fil

It would be useful here for example https://observablehq.com/@fil/ternary-plot#comment-5ba7a42661249bb9

Fil avatar Mar 13 '25 11:03 Fil

Thanks for your reply. Too bad that title and caption are not supported yet.

I’m trying to use ternary plots like SenseMaker does: https://observablehq.com/@martien/making-sense-with-ternary-plots.

P.S. I’d also like more control of labels, e.g.

  • auto wrap long labels;
  • auto set text-anchor start or end, depending on apex position right or left from middle of sphere;
  • a bit more space between label and apex;

Martien avatar Mar 13 '25 13:03 Martien