d3-ternary has been rewritten from the ground up in TypeScript. See the d3-ternary introductory notebook on Observable. This version takes more of a headless approach then the previous, it generates the data needed to draw the ternary plot. You can find examples of how to render the ternary plot using D3 and React in src/render
folder.
New features
New features include
- Partial domains, support zooming & panning
- Configuration option for
- Ticks
- Labels
- Grid
- Vertices