Skip to content

Commit

Permalink
fix facetAnchor interactive doc crashing when it receives "null" (#1974)
Browse files Browse the repository at this point in the history
closes #1972
  • Loading branch information
Fil committed Jan 15, 2024
1 parent b5366f9 commit 48b71d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/marks/axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
})
Expand Down

0 comments on commit 48b71d7

Please sign in to comment.