julien-c's picture
julien-c HF staff
ok done
313c51c verified
raw
history blame contribute delete
270 Bytes
import * as Plot from "npm:@observablehq/plot";
export function tree(tags, {width, height} = {}) {
return Plot.plot({
axis: null,
width,
height,
margin: 10,
marginLeft: 40,
marginRight: 120,
marks: [
Plot.tree(tags, {textStroke: "white"})
]
});
}