Skip to content

Commit

Permalink
docs(Brush): Fix "Separate chart (filter data)" example
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jan 30, 2025
1 parent 20b124b commit 5f3e046
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@
data={data.appleStock.filter(
(d) =>
// @ts-expect-error
(xDomain[0] == null || d.date >= xDomain[0]) &&
(xDomain?.[0] == null || d.date >= xDomain?.[0]) &&
// @ts-expect-error
(xDomain[1] == null || d.date <= xDomain[1])
(xDomain?.[1] == null || d.date <= xDomain?.[1])
)}
x="date"
xScale={scaleTime()}
Expand Down

0 comments on commit 5f3e046

Please sign in to comment.