plot
plot copied to clipboard
Add the figure element to the context
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…).
It would be useful here for example https://observablehq.com/@fil/ternary-plot#comment-5ba7a42661249bb9
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;