Skip to content

Commit d2cbc63

Browse files
Version Packages
1 parent 92c02fe commit d2cbc63

File tree

5 files changed

+56
-48
lines changed

5 files changed

+56
-48
lines changed

.changeset/chartgroup-provider-refactor.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

charts/core/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# @lg-charts/core
22

3+
## 3.0.0
4+
5+
### Major Changes
6+
7+
- 92c02fe: Fixes existing `ChartTooltip` bug: when unhovering a grouped chart instance with synced tooltips, tooltips continued to render
8+
9+
#### Breaking Changes
10+
11+
- Replaced `groupId`/`enableGroupTooltipSync` props on `Chart` component with new `ChartGroupProvider` context provider
12+
- `ChartGroupProvider` is a pure context provider without any rendered DOM elements (you must provide your own container)
13+
- Renamed `enableGroupTooltipSync` prop to `enableTooltipSync`
14+
15+
#### Migration Guide
16+
17+
##### Grouped charts
18+
19+
```diff
20+
- import { Chart, ChartTooltip, Line } from '@lg-charts/core';
21+
+ import { Chart, ChartGroupProvider, ChartTooltip, Line } from '@lg-charts/core';
22+
23+
- <Chart groupId="group1" enableGroupTooltipSync>
24+
- <ChartTooltip />
25+
- <Line ... />
26+
- </Chart>
27+
- <Chart groupId="group1" enableGroupTooltipSync>
28+
- <ChartTooltip />
29+
- <Line ... />
30+
- </Chart>
31+
32+
+ <ChartGroupProvider groupId="group1" enableTooltipSync>
33+
+ <div className="my-charts-container">
34+
+ <Chart>
35+
+ <ChartTooltip />
36+
+ <Line ... />
37+
+ </Chart>
38+
+ <Chart>
39+
+ <ChartTooltip />
40+
+ <Line ... />
41+
+ </Chart>
42+
+ </div>
43+
+ </ChartGroupProvider>
44+
```
45+
46+
##### Ungrouped charts
47+
48+
No changes required. `Chart` without a `ChartGroupProvider` container continues to work as before.
49+
350
## 2.5.2
451

552
### Patch Changes

charts/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lg-charts/core",
3-
"version": "2.5.2",
3+
"version": "3.0.0",
44
"description": "lg-charts Core Chart Components",
55
"main": "./dist/umd/index.js",
66
"module": "./dist/esm/index.js",

charts/drag-provider/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @lg-charts/drag-provider
22

3+
## 1.0.11
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [92c02fe]
8+
- @lg-charts/core@3.0.0
9+
310
## 1.0.10
411

512
### Patch Changes

charts/drag-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lg-charts/drag-provider",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"description": "lg-charts DragProvider Component",
55
"main": "./dist/umd/index.js",
66
"module": "./dist/esm/index.js",

0 commit comments

Comments
 (0)