From 6c5d2660f210a6c1dcbb0bc6900684827dd012a8 Mon Sep 17 00:00:00 2001 From: PBI-David <86846675+PBI-David@users.noreply.github.com> Date: Mon, 19 Dec 2022 20:46:13 +0000 Subject: [PATCH] docs: fix example in window.md (#8611) * Update window.md I think this fixes although I can't test on my machine to be certain: https://github.com/vega/vega-lite/issues/8610 Also minor wording updates. * Update window.md Removed redundant example * Update window.md * Update site/docs/transform/window.md * style: prettier Co-authored-by: Dominik Moritz --- site/docs/transform/window.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/site/docs/transform/window.md b/site/docs/transform/window.md index 1ca5a4be6a..c769be0d2d 100644 --- a/site/docs/transform/window.md +++ b/site/docs/transform/window.md @@ -114,14 +114,6 @@ Here we use window transform to visualize how the average MPG for vehicles have
-## Additional Examples - -These are examples of window transforms that can be simplifies with the join aggregate transform. Please refer to the [join aggregate examples](joinaggregate.html#examples). - ### Percent of Total -You can use the window transform to compute an aggregate and attach it to all records. In this case, you can use the [join aggregate](joinaggregate.html) instead of the window transform. Please refer to the [join aggregate examples](joinaggregate.html#examples). - -Here we use the window transform to derive the global sum so that we can calculate percentage. - -
+The window transform _can_ be used to compute an aggregate and attach it to all records in order to derive a percent of total, however, a simpler approach is to use the [join aggregate](joinaggregate.html) transform instead.