Skip to content

Commit

Permalink
Chart brush integration (#361)
Browse files Browse the repository at this point in the history
* refactor(Brush): Extract `add()` util

* chore(TooltipContext): Update style order

* feat: Integrate Brush into Chart via BrushContext (`<Chart brush={...}>`), which resolving Highlight pointer events interop, tooltip={{ mode: 'voronoi' }} interop,  and simplifying canvas support

* fix(AreaChart|LineChart): Fix re-animating (tweened) lines/areas on single series point hover

* docs(BrushContext): Update styling examples

* Remove unused import

* Add more debug logging

* fix(BrushContext): Fix double clicking on edges to expand

* Organize classes

* fix(BrushContext): Fix clicking outside of range but on non-frame (such as area mark)

* fix(BrushContext): Fix handling of reactive `mode="separated"`

* Fix type error

* Fix adjustBottom

* docs(BrushContext): Add minimap example

* docs(AreaChart): Use dense random walk data for brush sync example
  • Loading branch information
techniq authored Feb 2, 2025
1 parent 679f131 commit 61dc5b0
Show file tree
Hide file tree
Showing 20 changed files with 973 additions and 706 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-olives-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': patch
---

fix: Support highlight pointer events (click/hover) when using brush
5 changes: 5 additions & 0 deletions .changeset/fifty-meals-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': minor
---

feat: Integarte Brush via BrushContext (`<Chart brush={...}>`)
5 changes: 5 additions & 0 deletions .changeset/fresh-monkeys-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': patch
---

fix(AreaChart|LineChart): Fix re-animating (tweened) lines/areas on single series point hover
5 changes: 5 additions & 0 deletions .changeset/selfish-hornets-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': minor
---

breaking: Remove `Brush` component
5 changes: 5 additions & 0 deletions .changeset/stupid-planes-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'layerchart': patch
---

fix: Support brushing when using `voronoi` tooltip mode
Loading

0 comments on commit 61dc5b0

Please sign in to comment.