diff --git a/ts/graphs/ButtonsGraph.svelte b/ts/graphs/ButtonsGraph.svelte
index 2c9eafddf..d84194125 100644
--- a/ts/graphs/ButtonsGraph.svelte
+++ b/ts/graphs/ButtonsGraph.svelte
@@ -6,6 +6,7 @@
import type { I18n } from "anki/i18n";
import NoDataOverlay from "./NoDataOverlay.svelte";
import GraphRangeRadios from "./GraphRangeRadios.svelte";
+ import HoverColumns from "./HoverColumns.svelte";
export let sourceData: pb.BackendProto.GraphsOut | null = null;
export let i18n: I18n;
@@ -36,7 +37,7 @@
diff --git a/ts/graphs/HistogramGraph.svelte b/ts/graphs/HistogramGraph.svelte
index 479e6a807..e8b11894d 100644
--- a/ts/graphs/HistogramGraph.svelte
+++ b/ts/graphs/HistogramGraph.svelte
@@ -5,6 +5,8 @@
import { defaultGraphBounds } from "./graph-helpers";
import NoDataOverlay from "./NoDataOverlay.svelte";
import CumulativeOverlay from "./CumulativeOverlay.svelte";
+ import HoverColumns from "./HoverColumns.svelte";
+
import type { I18n } from "anki/i18n";
export let data: HistogramData | null = null;
@@ -18,7 +20,7 @@
diff --git a/ts/graphs/buttons.ts b/ts/graphs/buttons.ts
index 88d9a734c..07408fdcf 100644
--- a/ts/graphs/buttons.ts
+++ b/ts/graphs/buttons.ts
@@ -248,7 +248,7 @@ export function renderButtons(
return `${button}: ${d.buttonNum}
${timesPressed}: ${d.count}
${correctStr}`;
}
- svg.select("g.hoverzone")
+ svg.select("g.hover-columns")
.selectAll("rect")
.data(data)
.join("rect")
diff --git a/ts/graphs/graphs_shared.scss b/ts/graphs/graphs_shared.scss
index 65d9143d4..c81a61966 100644
--- a/ts/graphs/graphs_shared.scss
+++ b/ts/graphs/graphs_shared.scss
@@ -104,16 +104,6 @@
padding-right: 0.5em;
}
-.hoverzone rect {
- fill: none;
- pointer-events: all;
-}
-
-.hoverzone rect:hover {
- fill: grey;
- opacity: 0.05;
-}
-
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
diff --git a/ts/graphs/histogram-graph.ts b/ts/graphs/histogram-graph.ts
index fa8ee1b14..ff2dc6bcf 100644
--- a/ts/graphs/histogram-graph.ts
+++ b/ts/graphs/histogram-graph.ts
@@ -161,7 +161,7 @@ export function histogramGraph(
// hover/tooltip
const hoverzone = svg
- .select("g.hoverzone")
+ .select("g.hover-columns")
.selectAll("rect")
.data(hoverData)
.join("rect")
diff --git a/ts/graphs/hours.ts b/ts/graphs/hours.ts
index 9d4903c1a..c8918f66b 100644
--- a/ts/graphs/hours.ts
+++ b/ts/graphs/hours.ts
@@ -202,7 +202,7 @@ export function renderHours(
}
// hover/tooltip
- svg.select("g.hoverzone")
+ svg.select("g.hover-columns")
.selectAll("rect")
.data(data)
.join("rect")
diff --git a/ts/graphs/reviews.ts b/ts/graphs/reviews.ts
index 0a5df12cd..353a700d2 100644
--- a/ts/graphs/reviews.ts
+++ b/ts/graphs/reviews.ts
@@ -367,7 +367,7 @@ export function renderReviews(
]);
// hover/tooltip
- svg.select("g.hoverzone")
+ svg.select("g.hover-columns")
.selectAll("rect")
.data(hoverData)
.join("rect")