Skip to content

Commit 48b71d7

Browse files
authored
fix facetAnchor interactive doc crashing when it receives "null" (#1974)
closes #1972
1 parent b5366f9 commit 48b71d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/marks/axis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Plot.plot({
279279
marks: [
280280
Plot.frame(),
281281
Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", fx: "sex", fy: "species"}),
282-
Plot.axisX({color: "red", anchor, facetAnchor: facetAnchor === "auto" ? undefined : facetAnchor}),
282+
Plot.axisX({color: "red", anchor, facetAnchor: facetAnchor === "auto" ? undefined : facetAnchor === "null" ? null : facetAnchor}),
283283
Plot.axisFx({color: "blue", anchor: anchor === "top" ? "bottom" : "top"}) // place fx axis opposite x
284284
]
285285
})

0 commit comments

Comments
 (0)