From 2fa3e067afb444c4ab20d62bdd3cd615d9ee09e2 Mon Sep 17 00:00:00 2001 From: limina1 Date: Sat, 21 Dec 2024 19:19:53 -0500 Subject: [PATCH] Reactive graph & legend without default scroll bar --- src/lib/components/EventNetwork.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/components/EventNetwork.svelte b/src/lib/components/EventNetwork.svelte index 1834dbb..0563348 100644 --- a/src/lib/components/EventNetwork.svelte +++ b/src/lib/components/EventNetwork.svelte @@ -20,7 +20,7 @@ $: graphHeight = windowHeight ? Math.max(windowHeight * 0.2, 400) : 400; $: if (container) { - width = container.clientWidth || 800; + width = container.clientWidth || 1000; height = container.clientHeight || 600; } interface NetworkNode extends d3.SimulationNodeDatum { @@ -447,14 +447,15 @@ } -
-
+
+
-

Legend