tri = (labels = ["a","b","c"]) => Plot.plot({
width: 320,
margin: 30,
projection: { type: ternary.projection, inset: 25, angle: 10 },
marks: [
Plot.sphere({stroke: "lightgray", strokeDasharray: 7}),
ternary.slider({r: 10, fill: "green"}),
ternary.labels(labels, {fontSize: "12", fontWeight: 900})
]
})