From 48b71d71988bfebe0228768f701c79a31b62ac67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Mon, 15 Jan 2024 20:37:05 +0100 Subject: [PATCH] fix facetAnchor interactive doc crashing when it receives "null" (#1974) closes #1972 --- docs/marks/axis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/marks/axis.md b/docs/marks/axis.md index c792615cea..deabd9e519 100644 --- a/docs/marks/axis.md +++ b/docs/marks/axis.md @@ -279,7 +279,7 @@ Plot.plot({ marks: [ Plot.frame(), Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", fx: "sex", fy: "species"}), - Plot.axisX({color: "red", anchor, facetAnchor: facetAnchor === "auto" ? undefined : facetAnchor}), + Plot.axisX({color: "red", anchor, facetAnchor: facetAnchor === "auto" ? undefined : facetAnchor === "null" ? null : facetAnchor}), Plot.axisFx({color: "blue", anchor: anchor === "top" ? "bottom" : "top"}) // place fx axis opposite x ] })