Plot.plot({
marks: [
Plot.line(pendantPoints, { x: "x", y: "y", stroke: strokep, strokeWidth: 12 }),
Plot.dot(pendantPoints, Plot.selectFirst({ x: "x", y: "y", r: 15, fill: "white", stroke: strokep, strokeWidth: 10 })),
Plot.dot(pendantPoints, Plot.selectLast({ x: "x", y: "y", r: 15, fill: "white", stroke: strokep, strokeWidth: 10 })),
],
x: { axis: false, type: "point" },
y: { axis: false, type: "point" },
marginLeft: 20,
marginTop: 20,
marginBottom: 20,
marginRight: 20,
width: 650,
height: 650,
style: {
strokeLinejoin: "round"
}
})