diff --git a/ts/graphs/histogram-graph.ts b/ts/graphs/histogram-graph.ts index cc8085c2b..9f2e4e409 100644 --- a/ts/graphs/histogram-graph.ts +++ b/ts/graphs/histogram-graph.ts @@ -178,8 +178,8 @@ export function histogramGraph( if (data.onClick) { hoverzone - .filter(([bin]: [Bin, number]) => bin.length > 0) + .filter(([bin]) => bin.length > 0) .attr("class", "clickable") - .on("click", data.onClick); + .on("click", (_event, [bin]) => data.onClick!(bin)); } }