Published
Edited
Jun 23, 2022
Importers
Insert cell
Insert cell
function addVector(board, from, to, color) {
const point = board.create("point", to, {
color
});

const arrow = board.create("arrow", [from, point], {
color,
fixed: true,
lastArrow: {
type: 6,
size: 8
}
});

return [point, arrow];
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more