From 53897209aec532376c15e0e6bc1e8e9dee5896ba Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Thu, 12 Aug 2021 13:11:17 +0200 Subject: [PATCH] feat(Stats View): :sparkles: Progress on new stats view --- src/Components/Stats.svelte | 172 ++++++++++++++++++++++++++++-------- 1 file changed, 133 insertions(+), 39 deletions(-) diff --git a/src/Components/Stats.svelte b/src/Components/Stats.svelte index 88e26b94..8efde06c 100644 --- a/src/Components/Stats.svelte +++ b/src/Components/Stats.svelte @@ -1,52 +1,142 @@ + + + + + + + + + + + + + + + + + {#each userHierarchies as hier, i} + + + + {#each ["up", "same", "down"] as dir} + + {/each} + + + + {#each ["up", "same", "down"] as dir} + + {/each} + + {/each} +
HierarchyCount
+ MeasureUpSameDownTotal
+ {hierStrs[i]} + Nodes + {Math.max( + ...Object.values(hierGs[i][dir]).map((g) => g.nodes().length) + )} +
Edges + {sum(Object.values(hierGs[i][dir]).map((g) => g.edges().length))} +
+ +