From 365e9e29111ed29abcd6a3b9950e99dfeda96c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Eizedev?= <6794362+eizedev@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:12:18 +0100 Subject: [PATCH 1/2] docs: the start page's Pivot command builds the weather report in the picture The command loaded release data from endoflife.date while the picture shows the weather report. It now shows the call behind the picture and links the example with the data call. Co-Authored-By: Claude Opus 5.5 --- docs/index.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 6390ce8..03ec7ac 100644 --- a/docs/index.md +++ b/docs/index.md @@ -69,9 +69,18 @@ filters and get a table or a chart. ```powershell Install-PSResource -Name PowerShellUniversal.Component.Pivot -New-UDPivotReport -Id 'python' -Data (Invoke-RestMethod 'https://endoflife.date/api/python.json') + +# $days: one row per city and day with City, Date and Temperature +New-UDPivotReport -Id 'weather' -Data $days -View @{ + derived = @(@{ name = 'Month'; field = 'Date'; by = 'month' }) + rows = @('Month'); cols = @('City') + values = @(@{ field = 'Temperature'; agg = 'average'; format = 'number:1' + conditional = @{ type = 'colorScale'; colors = @('#2a78d6', '#f2f2f2', '#eb6834') } }) +} ``` +The report above, with the call that loads the weather data: [Weather of six cities](pivot/index.md#weather-of-six-cities). + [PowerShell Gallery](https://www.powershellgallery.com/packages/PowerShellUniversal.Component.Pivot) · [pivotkit docs](https://pivotkit.eize.dev/) · [Live demo](https://pivotkit.eize.dev/demo/) · [How readers use the report](https://pivotkit.eize.dev/use/) · [Module versioning](versioning.md) From edfa8e9017b31c25825440673238ceb1e8ba9d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Eizedev?= <6794362+eizedev@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:13:14 +0100 Subject: [PATCH 2/2] docs: start page command - say where the picture's layout comes from, shorter lines Co-Authored-By: Claude Opus 5.5 --- docs/index.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 03ec7ac..4ffde61 100644 --- a/docs/index.md +++ b/docs/index.md @@ -74,12 +74,15 @@ Install-PSResource -Name PowerShellUniversal.Component.Pivot New-UDPivotReport -Id 'weather' -Data $days -View @{ derived = @(@{ name = 'Month'; field = 'Date'; by = 'month' }) rows = @('Month'); cols = @('City') - values = @(@{ field = 'Temperature'; agg = 'average'; format = 'number:1' - conditional = @{ type = 'colorScale'; colors = @('#2a78d6', '#f2f2f2', '#eb6834') } }) + values = @(@{ + field = 'Temperature'; agg = 'average'; format = 'number:1' + conditional = @{ type = 'colorScale'; colors = @('#2a78d6', '#f2f2f2', '#eb6834') } + }) } ``` -The report above, with the call that loads the weather data: [Weather of six cities](pivot/index.md#weather-of-six-cities). +The full example, with the call that loads the weather data and the layout of the picture: +[Weather of six cities](pivot/index.md#weather-of-six-cities). [PowerShell Gallery](https://www.powershellgallery.com/packages/PowerShellUniversal.Component.Pivot) · [pivotkit docs](https://pivotkit.eize.dev/) · [Live demo](https://pivotkit.eize.dev/demo/) ·