From 7325231548ee8f24f1392ae4276933403d124f5e Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Mon, 17 Feb 2025 10:21:18 -0300 Subject: [PATCH] refactor(insights:flows): improve readability when there's a lot of nodes --- app/templates/insights/fragments/sankey.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/insights/fragments/sankey.html b/app/templates/insights/fragments/sankey.html index b3749ed..f7d00cb 100644 --- a/app/templates/insights/fragments/sankey.html +++ b/app/templates/insights/fragments/sankey.html @@ -7,7 +7,7 @@
{% endif %} -
@@ -64,6 +64,7 @@ alpha: 0.5, size: 'max', color: "white", + nodePadding: 30, priority: data.nodes.reduce((acc, node) => { acc[node.id] = node.priority; return acc; @@ -77,6 +78,9 @@ options: { responsive: true, maintainAspectRatio: false, + layout: { + padding: 20 + }, plugins: { tooltip: { callbacks: {