Hi,I drew a scatter plot using plot. js and added a prompt box function, but I found that the trigger method for the prompt box is to automatically adsorb to the nearest point.
Now I want to change it to mouse touch a certain point and display a prompt box. What should I do?
Thank you for providing assistance in advance.
Plot.dot(data, {clip: true,
x: "vae_x",
y: "vae_y",
log2R: "log2R",
cell: "cell",
lib: "lib",
cell_designed: "cell_designed",
index: "index",
source: "source",
source_type: "source_type",
fill: this.colored,
fillOpacity: 0.5,
r: 3,
channels: {
x: "vae_x",
y: "vae_y",
log2R: "log2R",
cell: "cell",
source: "source",
source_type: "source_type",
lib: "lib",
cell_designed: "cell_designed",
index: "index",
},
tip: { lineHeight: 1.3 },
}),