mark =
plot_input==='Scatter' ?
Plot.dot(filteredShots,
{x:"locationX",
y:"locationY",
fill:`${filters.color_input}`,
title: (d) => `Shot ID #${d.idEvent} \n Event: ${d.typeEvent} \n Distance: ${d.distanceShot} ft}`,
stroke:"white",
strokeWidth:1,
r:8}) :
plot_input==='Tile' ?
[Plot.rect(filteredShots,
Plot.bin({fill: "count"}, {x: "locationX", y: "locationY", inset: 0, interval: filters.tile_bin_input})),
Plot.gridX({interval: filters.tile_bin_input, strokeOpacity: 0.05}),
Plot.gridY({interval: filters.tile_bin_input, strokeOpacity: 0.05})]:
plot_input == "Density" ?
Plot.density(filteredShots,
{x:"locationX", y:"locationY", fill:`${filters.color_input}`}) : null;