From 4cbce8932db0b24efdf3fc371087a5d2b30b4f5b Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Sat, 18 May 2024 17:40:29 +0000 Subject: [PATCH] style: auto-formatting [CI] --- site/docs/invaliddata.md | 11 +++-------- site/docs/transform/window.md | 1 - 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/site/docs/invaliddata.md b/site/docs/invaliddata.md index 4b96c0c76d..66cd6b8df6 100644 --- a/site/docs/invaliddata.md +++ b/site/docs/invaliddata.md @@ -7,8 +7,7 @@ permalink: /docs/invalid-data.html This page discusses modes in Vega-Lite for handling invalid data (`null` and `NaN` in continuous scales). -The main configurations are [`mark.invalid`](#mark) and [`config.scale.invalid`](#scale). -In addition, you can use [other Vega-Lite features including conditional encodings, layering, or window transform to handle invalid and missing data](#other). +The main configurations are [`mark.invalid`](#mark) and [`config.scale.invalid`](#scale). In addition, you can use [other Vega-Lite features including conditional encodings, layering, or window transform to handle invalid and missing data](#other). Note: Vega-Lite does _not_ consider `null` and `NaN` in categorical scales and text encodings as invalid data: @@ -105,30 +104,26 @@ Compare this with a similar spec, but without `config.scale.invalid`:
- ## Other solutions + {:#other} -Note that `mark.invalid` and `config.scale.invalid` are options for handling invalid data *without* changing data or marks. +Note that `mark.invalid` and `config.scale.invalid` are options for handling invalid data _without_ changing data or marks. However, you may use other Vega-Lite features to encode invalid data. - ### Example: Conditional Encoding If you do not use color encoding, you may use conditional color encoding to use a specific color (e.g., gray) to encode invalid values.
- ### Example: Layering You may also use different marks (such as bars) to encode null data.
- ### Example: Using window transform to impute missing values -
diff --git a/site/docs/transform/window.md b/site/docs/transform/window.md index aafca4a556..846f8f4a06 100644 --- a/site/docs/transform/window.md +++ b/site/docs/transform/window.md @@ -118,7 +118,6 @@ Here we use window transform to visualize how the average MPG for vehicles have 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. - ### Using window transform to impute missing values