diff --git a/src/lib/GrantChart.svelte b/src/lib/GrantChart.svelte
index f68740a..4256e7a 100644
--- a/src/lib/GrantChart.svelte
+++ b/src/lib/GrantChart.svelte
@@ -2,6 +2,8 @@
import dayjs from "dayjs";
import * as Pancake from "@sveltejs/pancake";
export let data = [];
+
+ let closest
let title = "Parole is granted in fewer than 1 in 5 hearings";
function formatDate(date) {
@@ -23,6 +25,10 @@
$: lastGranted = granted[granted.length - 1];
$: lastGrantedPercent = lastGranted?.percent;
+ $: chartData = granted.map((d) => ({
+ x: parseDate(d.month),
+ y: d.percent * 100,
+ }))
$: {
if (lastGrantedPercent > 0.2) {
@@ -49,15 +55,28 @@