@antv/g2 5.0.24 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +3 -3
- package/README.zh-CN.md +2 -2
- package/dist/g2-lite.min.js +1 -10
- package/dist/g2.min.js +1 -10
- package/esm/component/axis.js +1 -1
- package/esm/component/axis.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/interaction/brushHighlight.d.ts +1 -1
- package/esm/interaction/brushHighlight.js +15 -5
- package/esm/interaction/brushHighlight.js.map +1 -1
- package/esm/interaction/tooltip.js +74 -34
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/runtime/constant.d.ts +1 -0
- package/esm/runtime/constant.js +1 -0
- package/esm/runtime/constant.js.map +1 -1
- package/esm/runtime/plot.js +10 -2
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/transform.js +9 -1
- package/esm/runtime/transform.js.map +1 -1
- package/esm/theme/light.js +12 -11
- package/esm/theme/light.js.map +1 -1
- package/lib/component/axis.js +1 -1
- package/lib/component/axis.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/interaction/brushHighlight.d.ts +1 -1
- package/lib/interaction/brushHighlight.js +15 -5
- package/lib/interaction/brushHighlight.js.map +1 -1
- package/lib/interaction/tooltip.js +74 -34
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/runtime/constant.d.ts +1 -0
- package/lib/runtime/constant.js +2 -1
- package/lib/runtime/constant.js.map +1 -1
- package/lib/runtime/plot.js +10 -2
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/transform.js +9 -1
- package/lib/runtime/transform.js.map +1 -1
- package/lib/theme/light.js +12 -11
- package/lib/theme/light.js.map +1 -1
- package/package.json +5 -5
- package/src/component/axis.ts +1 -1
- package/src/index.ts +1 -0
- package/src/interaction/brushHighlight.ts +26 -3
- package/src/interaction/tooltip.ts +80 -33
- package/src/runtime/constant.ts +1 -0
- package/src/runtime/plot.ts +16 -3
- package/src/runtime/transform.ts +12 -1
- package/src/theme/light.ts +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [5.1.1](https://github.com/antvis/g2/compare/5.1.0...5.1.1) (2023-09-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **axis:** labelAutoHide ([#5502](https://github.com/antvis/g2/issues/5502)) ([4dfdaff](https://github.com/antvis/g2/commit/4dfdaff76ee0584a1d9bb139b6fa6404145dbd22))
|
|
7
|
+
* **shape:** update group shape without animation ([#5514](https://github.com/antvis/g2/issues/5514)) ([a49624b](https://github.com/antvis/g2/commit/a49624b9a7a6503989e8e08d8dfa5937999f8a21))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **interaction:** emit more brush and tooltip events ([#5512](https://github.com/antvis/g2/issues/5512)) ([57cc841](https://github.com/antvis/g2/commit/57cc841e17969ac3e686061bf8aa821c616460c7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# [5.1.0](https://github.com/antvis/g2/compare/5.0.24...5.1.0) (2023-08-31)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **runtime:** process data ([#5494](https://github.com/antvis/g2/issues/5494)) ([b851ca3](https://github.com/antvis/g2/commit/b851ca34f585485c5855924ed92061c21f92d43f))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* update category20 ([#5495](https://github.com/antvis/g2/issues/5495)) ([83bcc17](https://github.com/antvis/g2/commit/83bcc17a0e044779268a8cb6748b043ab6efbd16))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
## [5.0.24](https://github.com/antvis/g2/compare/5.0.23...5.0.24) (2023-08-30)
|
|
2
31
|
|
|
3
32
|
|
package/README.md
CHANGED
|
@@ -38,11 +38,11 @@ G2 is named after Leland Wilkinson’s book _The Grammar of Graphics_ and was pr
|
|
|
38
38
|
G2 is usually installed via a package manager such as npm or Yarn.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
$ npm install @antv/g2
|
|
41
|
+
$ npm install @antv/g2
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
$ yarn add @antv/g2
|
|
45
|
+
$ yarn add @antv/g2
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
The Chart object then can be imported from G2.
|
|
@@ -76,7 +76,7 @@ chart
|
|
|
76
76
|
.encode('x', 'genre') // Assign genre column to x position channel.
|
|
77
77
|
.encode('y', 'sold'); // Assign sold column to y position channel.
|
|
78
78
|
|
|
79
|
-
// Render visualization
|
|
79
|
+
// Render visualization.
|
|
80
80
|
chart.render();
|
|
81
81
|
```
|
|
82
82
|
|
package/README.zh-CN.md
CHANGED
|
@@ -40,11 +40,11 @@ G2 起源于 Leland Wilkinson 的图形语法:《The Grammar of Graphics》,
|
|
|
40
40
|
可以通过 NPM 或 Yarn 等包管理器来安装。
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
$ npm install @antv/g2
|
|
43
|
+
$ npm install @antv/g2
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
$ yarn add @antv/g2
|
|
47
|
+
$ yarn add @antv/g2
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
成功安装之后,可以通过 import 导入 Chart 对象。
|