mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
No clicking on empty bins in the Histogram
This commit is contained in:
parent
322788133b
commit
cef92ad554
1 changed files with 4 additions and 1 deletions
|
|
@ -162,6 +162,9 @@ export function histogramGraph(
|
||||||
.on("mouseout", hideTooltip);
|
.on("mouseout", hideTooltip);
|
||||||
|
|
||||||
if (data.onClick) {
|
if (data.onClick) {
|
||||||
hoverzone.attr("class", "clickable").on("click", data.onClick);
|
hoverzone
|
||||||
|
.filter((d: Bin<number, number>) => d.length > 0)
|
||||||
|
.attr("class", "clickable")
|
||||||
|
.on("click", data.onClick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue