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

+ +