function doAnnotations(targetSVG) {
const annotations = [
{
note: {
label: "Longer text to show text wrapping",
title: "Annotations are fun to watch and see and learn :)"
},
x: 50,
y: 50,
dy: 150,
dx: 150
}
];
const makeAnnotations = d3_annotation.annotation().annotations(annotations);
const svg = d3.select(targetSVG).append("svg");
svg.attr("style", "font: initial;text-anchor: initial;");
svg.call(makeAnnotations);
}