Skip to content

Commit dc29b3a

Browse files
committed
chore(charts): changeset
1 parent d86fc93 commit dc29b3a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
'@lg-charts/core': major
3+
---
4+
5+
#### Breaking Changes
6+
7+
- Replaced `groupId`/`enableGroupTooltipSync` props on `Chart` component with new `ChartGroup` component. This fixes an existing `ChartTooltip` bug: when unhovering a grouped chart instance with synced tooltips, tooltips continued to render.
8+
9+
#### Migration Guide
10+
11+
##### Grouped charts
12+
13+
```diff
14+
+ import { ChartGroup } from '@lg-charts/core';
15+
16+
- <Chart groupId="group1" enableGroupTooltipSync>
17+
- <ChartTooltip />
18+
- <Line ... />
19+
- </Chart>
20+
- <Chart groupId="group1" enableGroupTooltipSync>
21+
- <ChartTooltip />
22+
- <Line ... />
23+
- </Chart>
24+
25+
+ // unstyled container, use className (recommended) or wrap existing container
26+
+ <ChartGroup groupId="group1" enableTooltipSync>
27+
+ <Chart>
28+
+ <ChartTooltip />
29+
+ <Line ... />
30+
+ </Chart>
31+
+ <Chart>
32+
+ <ChartTooltip />
33+
+ <Line ... />
34+
+ </Chart>
35+
+ </ChartGroup>
36+
```
37+
38+
##### Ungrouped charts
39+
40+
No changes required. `Chart` without a `ChartGroup` container continues to work as before.

0 commit comments

Comments
 (0)