From d0837c404c7aece081c5f3aa1c7f666b917383f2 Mon Sep 17 00:00:00 2001 From: Scott Rhamy Date: Sun, 23 Nov 2025 10:02:20 -0500 Subject: [PATCH] Add Tools/Pivot --- docs/src/content/components/Pivot.md | 20 ++++++++++++++++++ docs/src/examples/Pivot/pivot-longer.svelte | 23 +++++++++++++++++++++ docs/src/examples/Pivot/pivot-wider.svelte | 17 +++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 docs/src/content/components/Pivot.md create mode 100644 docs/src/examples/Pivot/pivot-longer.svelte create mode 100644 docs/src/examples/Pivot/pivot-wider.svelte diff --git a/docs/src/content/components/Pivot.md b/docs/src/content/components/Pivot.md new file mode 100644 index 000000000..b7433c590 --- /dev/null +++ b/docs/src/content/components/Pivot.md @@ -0,0 +1,20 @@ +--- +description: Utility function to reshape and aggregate tabular data, converting between long and wide formats. +category: tools +layers: [] +related: [] +--- + + + +## Usage + +### PivotLonger (Columns to Rows) + + + +### PivotWider (Rows to Columns) + + diff --git a/docs/src/examples/Pivot/pivot-longer.svelte b/docs/src/examples/Pivot/pivot-longer.svelte new file mode 100644 index 000000000..7ed84b55c --- /dev/null +++ b/docs/src/examples/Pivot/pivot-longer.svelte @@ -0,0 +1,23 @@ + + + + +

Before

+ + + +

After

+ + diff --git a/docs/src/examples/Pivot/pivot-wider.svelte b/docs/src/examples/Pivot/pivot-wider.svelte new file mode 100644 index 000000000..f5d63071e --- /dev/null +++ b/docs/src/examples/Pivot/pivot-wider.svelte @@ -0,0 +1,17 @@ + + + + +

Before

+ + + +

After

+ +