clickEvent = (plotObject, value, columns) => {
const xScale = plotObject.scale("x");
const yScale = plotObject.scale("y");
const circle = document.createElementNS(
"http://www.w3.org/2000/svg",
"circle"
);
circle.setAttribute(
"cx",
xScale.apply(value[columns.x]) + xScale.bandwidth / 2
);
circle.setAttribute("cy", yScale.apply(value[columns.y]));
circle.setAttribute("r", 5);
circle.setAttribute("fill", "red");
plotObject.appendChild(circle);
}