Linked Ternary Inputs
Working on a port of Fil's Linked ternary inputs to Framework.
// view here is giving me problems...
const plot = Plot.plot({
width: 350,
projection: { type: ternary.projection, inset: 25 },
marks: [
Plot.sphere(),
ternary.graticule(),
ternary.slider({ value: [55, 30, 15] }),
ternary.labels(["a", "b", "c"])
]
});
display(plot)
display(z);
// VALUE VIEW (read-only display that stays in sync)
const z = Generators.input(plot); // <- dynamic {a,b,c}
const x = view(Inputs.bind(ternary.combo(), plot))
display(x)