File size: 307 Bytes
2dfc950 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import * as Plot from "https://cdn.jsdelivr.net/npm/@observablehq/plot@0.6.13/+esm";
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"})
]
});
}
|