From 039ed1fba83c61a00079bd7a77e3166a776340a0 Mon Sep 17 00:00:00 2001 From: Kanit Wongsuphasawat Date: Thu, 6 Jul 2023 16:20:53 -0700 Subject: [PATCH] docs(example): add example --- site/docs/encoding/scale.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site/docs/encoding/scale.md b/site/docs/encoding/scale.md index 4d06cd44d2..be4587de88 100644 --- a/site/docs/encoding/scale.md +++ b/site/docs/encoding/scale.md @@ -75,7 +75,7 @@ bar, image, rect, and rule marks while `"point"` is the default scales for all o By default, a scale in Vega-Lite draws domain values directly from a channel's encoded field. Users can specify the `domain` property of a scale to customize its domain values. To sort the order of the domain of the encoded, the [`sort`](sort.html) property of a [field definition](encoding.html#field-def) can be specified. -{% include table.html props="domain,domainMax,domainMin,domainMid" source="Scale" %} +{% include table.html props="domain,domainMax,domainMin,domainMid,domainRaw" source="Scale" %} A common use case for the `domain` property is to limit, for example, the `x` range of values to include in a plot. However, setting the domain property alone is insufficient to achieve the desired effect. @@ -101,6 +101,11 @@ There are two approaches to keep the mark from being plotted outside the desired
+ +### Example: Using `domainRaw` to bind domain interactively + +
+