@pie-lib/charting 5.15.7 → 5.16.1-beta.0
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 +32 -70
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +38 -5
- package/src/__tests__/__snapshots__/axes.test.jsx.snap +564 -0
- package/src/__tests__/__snapshots__/chart-type.test.jsx.snap +14 -0
- package/src/__tests__/__snapshots__/chart.test.jsx.snap +610 -0
- package/src/__tests__/__snapshots__/grid.test.jsx.snap +28 -0
- package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +67 -0
- package/src/__tests__/axes.test.jsx +146 -0
- package/src/__tests__/chart-setup.test.jsx +47 -0
- package/src/__tests__/chart-type.test.jsx +29 -0
- package/src/__tests__/chart.test.jsx +87 -0
- package/src/__tests__/grid.test.jsx +25 -0
- package/src/__tests__/mark-label.test.jsx +31 -0
- package/src/__tests__/utils.js +30 -0
- package/src/__tests__/utils.test.js +100 -0
- package/src/axes.jsx +59 -23
- package/src/bars/__tests__/__snapshots__/bar.test.jsx.snap +43 -0
- package/src/bars/__tests__/__snapshots__/histogram.test.jsx.snap +45 -0
- package/src/bars/__tests__/bar.test.jsx +37 -0
- package/src/bars/__tests__/histogram.test.jsx +38 -0
- package/src/bars/__tests__/utils.js +30 -0
- package/src/bars/common/__tests__/__snapshots__/bars.test.jsx.snap +110 -0
- package/src/bars/common/__tests__/bars.test.jsx +69 -0
- package/src/bars/common/__tests__/utils.js +30 -0
- package/src/bars/common/bars.jsx +37 -1
- package/src/chart-type.js +7 -3
- package/src/chart-types.js +2 -2
- package/src/chart.jsx +15 -5
- package/src/common/__tests__/__snapshots__/drag-handle.test.jsx.snap +45 -0
- package/src/common/__tests__/drag-handle.test.jsx +88 -0
- package/src/common/__tests__/utils.js +30 -0
- package/src/common/drag-handle.jsx +18 -10
- package/src/common/drag-icon.jsx +6 -21
- package/src/line/__tests__/__snapshots__/line-cross.test.jsx.snap +45 -0
- package/src/line/__tests__/__snapshots__/line-dot.test.jsx.snap +45 -0
- package/src/line/__tests__/line-cross.test.jsx +38 -0
- package/src/line/__tests__/line-dot.test.jsx +38 -0
- package/src/line/__tests__/utils.js +30 -0
- package/src/line/common/__tests__/__snapshots__/drag-handle.test.jsx.snap +44 -0
- package/src/line/common/__tests__/__snapshots__/line.test.jsx.snap +141 -0
- package/src/line/common/__tests__/drag-handle.test.jsx +88 -0
- package/src/line/common/__tests__/line.test.jsx +82 -0
- package/src/line/common/__tests__/utils.js +30 -0
- package/src/line/common/drag-handle.jsx +9 -4
- package/src/line/line-cross.js +4 -1
- package/src/line/line-dot.js +17 -7
- package/src/mark-label.jsx +19 -7
- package/src/plot/__tests__/__snapshots__/dot.test.jsx.snap +45 -0
- package/src/plot/__tests__/__snapshots__/line.test.jsx.snap +45 -0
- package/src/plot/__tests__/dot.test.jsx +38 -0
- package/src/plot/__tests__/line.test.jsx +38 -0
- package/src/plot/__tests__/utils.js +30 -0
- package/src/plot/common/__tests__/__snapshots__/plot.test.jsx.snap +96 -0
- package/src/plot/common/__tests__/plot.test.jsx +70 -0
- package/src/plot/common/__tests__/utils.js +30 -0
- package/src/plot/common/plot.jsx +6 -1
- package/src/plot/dot.js +1 -1
- package/src/plot/line.js +1 -1
- package/src/tool-menu.jsx +0 -4
- package/lib/axes.js +0 -598
- package/lib/axes.js.map +0 -1
- package/lib/bars/bar.js +0 -86
- package/lib/bars/bar.js.map +0 -1
- package/lib/bars/common/bars.js +0 -267
- package/lib/bars/common/bars.js.map +0 -1
- package/lib/bars/histogram.js +0 -87
- package/lib/bars/histogram.js.map +0 -1
- package/lib/chart-setup.js +0 -458
- package/lib/chart-setup.js.map +0 -1
- package/lib/chart-type.js +0 -71
- package/lib/chart-type.js.map +0 -1
- package/lib/chart-types.js +0 -31
- package/lib/chart-types.js.map +0 -1
- package/lib/chart.js +0 -423
- package/lib/chart.js.map +0 -1
- package/lib/common/drag-handle.js +0 -169
- package/lib/common/drag-handle.js.map +0 -1
- package/lib/common/drag-icon.js +0 -69
- package/lib/common/drag-icon.js.map +0 -1
- package/lib/common/styles.js +0 -40
- package/lib/common/styles.js.map +0 -1
- package/lib/grid.js +0 -104
- package/lib/grid.js.map +0 -1
- package/lib/index.js +0 -40
- package/lib/index.js.map +0 -1
- package/lib/line/common/drag-handle.js +0 -152
- package/lib/line/common/drag-handle.js.map +0 -1
- package/lib/line/common/line.js +0 -261
- package/lib/line/common/line.js.map +0 -1
- package/lib/line/line-cross.js +0 -157
- package/lib/line/line-cross.js.map +0 -1
- package/lib/line/line-dot.js +0 -123
- package/lib/line/line-dot.js.map +0 -1
- package/lib/mark-label.js +0 -246
- package/lib/mark-label.js.map +0 -1
- package/lib/plot/common/plot.js +0 -278
- package/lib/plot/common/plot.js.map +0 -1
- package/lib/plot/dot.js +0 -123
- package/lib/plot/dot.js.map +0 -1
- package/lib/plot/line.js +0 -152
- package/lib/plot/line.js.map +0 -1
- package/lib/tool-menu.js +0 -146
- package/lib/tool-menu.js.map +0 -1
- package/lib/utils.js +0 -244
- package/lib/utils.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [5.
|
|
6
|
+
## [5.16.1-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.6...@pie-lib/charting@5.16.1-beta.0) (2025-07-20)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/charting
|
|
9
9
|
|
|
@@ -11,136 +11,98 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# [5.16.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.6...@pie-lib/charting@5.16.0-beta.0) (2025-07-20)
|
|
15
15
|
|
|
16
|
+
**Note:** Version bump only for package @pie-lib/charting
|
|
16
17
|
|
|
17
|
-
### Bug Fixes
|
|
18
18
|
|
|
19
|
-
* **charting:** add sanity check for data PD-3223 ([f573866](https://github.com/pie-framework/pie-lib/commit/f57386626933cdb5b8b6a1c0f91b45b6ea1b9ca7))
|
|
20
|
-
* **charting:** address overlap of drag handle with category labels in charts PD-3223 ([ebe212e](https://github.com/pie-framework/pie-lib/commit/ebe212ecd315d6445b1d676568482fa47b40ebdb))
|
|
21
|
-
* **charting:** limit number of categories in Define Correct Response Chart to 20 ([0b0e8ab](https://github.com/pie-framework/pie-lib/commit/0b0e8ab339126e00703c1ae5218c714bbcdb6dbf))
|
|
22
|
-
* **charting:** refine error message display to prevent overlapping with other elements and other messages PD-3121 ([f2de1ad](https://github.com/pie-framework/pie-lib/commit/f2de1adb4d19a44e403beb3d88cbb333e3c5adb9))
|
|
23
|
-
* **charting:** use red boxes only and for all duplicated category names, reorder CSS selectors to resolve styling conflicts, only display the validation message a single time for duplicate categories and for empty labels PD-3121 ([7cae40b](https://github.com/pie-framework/pie-lib/commit/7cae40b48a1da661d7d7c97780098a07e5b1d336))
|
|
24
19
|
|
|
25
20
|
|
|
26
21
|
|
|
22
|
+
# [5.17.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.6...@pie-lib/charting@5.17.0-beta.0) (2025-07-15)
|
|
27
23
|
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/charting
|
|
28
25
|
|
|
29
|
-
|
|
26
|
+
# [5.16.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.6...@pie-lib/charting@5.16.0-beta.0) (2025-07-15)
|
|
30
27
|
|
|
28
|
+
**Note:** Version bump only for package @pie-lib/charting
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
## [5.15.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.5...@pie-lib/charting@5.15.6) (2023-10-16)
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
### Bug Fixes
|
|
35
33
|
|
|
34
|
+
- **charting:** add sanity check for data PD-3223 ([f573866](https://github.com/pie-framework/pie-lib/commit/f57386626933cdb5b8b6a1c0f91b45b6ea1b9ca7))
|
|
35
|
+
- **charting:** address overlap of drag handle with category labels in charts PD-3223 ([ebe212e](https://github.com/pie-framework/pie-lib/commit/ebe212ecd315d6445b1d676568482fa47b40ebdb))
|
|
36
|
+
- **charting:** limit number of categories in Define Correct Response Chart to 20 ([0b0e8ab](https://github.com/pie-framework/pie-lib/commit/0b0e8ab339126e00703c1ae5218c714bbcdb6dbf))
|
|
37
|
+
- **charting:** refine error message display to prevent overlapping with other elements and other messages PD-3121 ([f2de1ad](https://github.com/pie-framework/pie-lib/commit/f2de1adb4d19a44e403beb3d88cbb333e3c5adb9))
|
|
38
|
+
- **charting:** use red boxes only and for all duplicated category names, reorder CSS selectors to resolve styling conflicts, only display the validation message a single time for duplicate categories and for empty labels PD-3121 ([7cae40b](https://github.com/pie-framework/pie-lib/commit/7cae40b48a1da661d7d7c97780098a07e5b1d336))
|
|
36
39
|
|
|
40
|
+
## [5.15.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.4...@pie-lib/charting@5.15.5) (2023-09-28)
|
|
37
41
|
|
|
42
|
+
### Bug Fixes
|
|
38
43
|
|
|
44
|
+
- **charting:** add drop shadow to evaluate bars PD-2790 ([328c730](https://github.com/pie-framework/pie-lib/commit/328c7308d026ca6e00575d47bdfaf1d9e4779d16))
|
|
39
45
|
|
|
40
46
|
## [5.15.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.3...@pie-lib/charting@5.15.4) (2023-09-28)
|
|
41
47
|
|
|
42
|
-
|
|
43
48
|
### Bug Fixes
|
|
44
49
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
- **charting:** fix modal warnings ([34dbf3b](https://github.com/pie-framework/pie-lib/commit/34dbf3b04845773d23aa7c91a80fab57e1e78cd0))
|
|
51
|
+
- **charting:** limit number of categories in Define Initial Chart Attributes to 20 PD-3128 ([b0da731](https://github.com/pie-framework/pie-lib/commit/b0da731a619c9d13a8b12e16a6e81dc924261396))
|
|
51
52
|
|
|
52
53
|
## [5.15.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.2...@pie-lib/charting@5.15.3) (2023-09-26)
|
|
53
54
|
|
|
54
|
-
|
|
55
55
|
### Bug Fixes
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
- **charting:** adjust icon for the drag handle PD-2790 ([fe670d7](https://github.com/pie-framework/pie-lib/commit/fe670d7a04f44da5c93dadbeec41b753ce50f9f6))
|
|
62
58
|
|
|
63
59
|
## [5.15.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.1...@pie-lib/charting@5.15.2) (2023-09-25)
|
|
64
60
|
|
|
65
|
-
|
|
66
61
|
### Bug Fixes
|
|
67
62
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
- add required packages for charting to work ([c7af164](https://github.com/pie-framework/pie-lib/commit/c7af16427245d0c0c5c041e296a1cfdf034b7b64))
|
|
73
64
|
|
|
74
65
|
## [5.15.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.15.0...@pie-lib/charting@5.15.1) (2023-09-25)
|
|
75
66
|
|
|
76
|
-
|
|
77
67
|
### Bug Fixes
|
|
78
68
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
- **charting:** add @mui/icons-material to package json PD-2790 ([0262857](https://github.com/pie-framework/pie-lib/commit/026285728f998e3fe31ec43c77e99f2311f9ad22))
|
|
84
70
|
|
|
85
71
|
# [5.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.14.3...@pie-lib/charting@5.15.0) (2023-09-25)
|
|
86
72
|
|
|
87
|
-
|
|
88
73
|
### Bug Fixes
|
|
89
74
|
|
|
90
|
-
|
|
91
|
-
|
|
75
|
+
- **charting:** set labelWidth to prevent outline from intersecting InputLabel for the ChartType menu PD-3166 ([ff9ca2b](https://github.com/pie-framework/pie-lib/commit/ff9ca2b9812d0afd209edccac2feecac396111cc))
|
|
92
76
|
|
|
93
77
|
### Features
|
|
94
78
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
- **charting:** add hover effect for plot and bars PD-2790 ([af0d9ba](https://github.com/pie-framework/pie-lib/commit/af0d9bab03fa8146299bf0a1947dbe418e306f85))
|
|
80
|
+
- **charting:** adjust y-coordinate in maskSize for better chart fitting after adding new design, tweaks in design PD-2790 ([0edf288](https://github.com/pie-framework/pie-lib/commit/0edf2880c8c8c0e0e51df080aa582d071f0f1e52))
|
|
81
|
+
- **charting:** make style dynamic for drag icon PD-2790 ([aed8c81](https://github.com/pie-framework/pie-lib/commit/aed8c818cbc70910a7e31566c94dd731d068efa1))
|
|
82
|
+
- **charting:** Replace drag-enabled horizontal bars with widget for author and gather mode PD-2790, refactor RawDragHandle component ([e0a369a](https://github.com/pie-framework/pie-lib/commit/e0a369ad2aaf9cf5d3aa3ac061c23316443b35fb))
|
|
103
83
|
|
|
104
84
|
## [5.14.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.14.2...@pie-lib/charting@5.14.3) (2023-09-18)
|
|
105
85
|
|
|
106
|
-
|
|
107
86
|
### Bug Fixes
|
|
108
87
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
88
|
+
- **charting:** add tests for resetValues PD-3105 ([972a3cd](https://github.com/pie-framework/pie-lib/commit/972a3cd4b3787352ffe4073085cbd22f91895b43))
|
|
89
|
+
- **charting:** wip PD-3105 ([9e21836](https://github.com/pie-framework/pie-lib/commit/9e21836ad8c89c7c839c6561db5edc0329a6a6af))
|
|
90
|
+
- **charting:** wip PD-3105 ([f2f8234](https://github.com/pie-framework/pie-lib/commit/f2f82343a373ae1a8f669754a061963cbfdbeb08))
|
|
91
|
+
- **charting:** wip PD-3105 revert push in develop ([6cce5e2](https://github.com/pie-framework/pie-lib/commit/6cce5e2d25d079c1c3eb195425dc2cf016fcd36e))
|
|
117
92
|
|
|
118
93
|
## [5.14.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.14.1...@pie-lib/charting@5.14.2) (2023-08-07)
|
|
119
94
|
|
|
120
95
|
**Note:** Version bump only for package @pie-lib/charting
|
|
121
96
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
97
|
## [5.14.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.14.0...@pie-lib/charting@5.14.1) (2023-06-24)
|
|
127
98
|
|
|
128
99
|
**Note:** Version bump only for package @pie-lib/charting
|
|
129
100
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
101
|
# [5.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.13.0...@pie-lib/charting@5.14.0) (2023-06-13)
|
|
135
102
|
|
|
136
|
-
|
|
137
103
|
### Features
|
|
138
104
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
105
|
+
- **charting, translator:** add translator to charting. add missing text in translator ([2c722a2](https://github.com/pie-framework/pie-lib/commit/2c722a241deb1ad4b51aa22c6eba74a0ec8a5ec0))
|
|
144
106
|
|
|
145
107
|
# [5.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.12.0...@pie-lib/charting@5.13.0) (2023-06-12)
|
|
146
108
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.16.1-beta.0",
|
|
7
7
|
"description": "charting",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -19,8 +19,20 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@mapbox/point-geometry": "^0.1.0",
|
|
21
21
|
"@material-ui/core": "^3.8.3",
|
|
22
|
-
"@
|
|
23
|
-
"@pie-
|
|
22
|
+
"@material-ui/icons": "^3.0.2",
|
|
23
|
+
"@pie-framework/mathml-to-latex": "1.4.4",
|
|
24
|
+
"@pie-framework/mathquill": "1.1.4",
|
|
25
|
+
"@pie-lib/config-ui": "beta",
|
|
26
|
+
"@pie-lib/drag": "beta",
|
|
27
|
+
"@pie-lib/editable-html": "beta",
|
|
28
|
+
"@pie-lib/icons": "beta",
|
|
29
|
+
"@pie-lib/math-input": "beta",
|
|
30
|
+
"@pie-lib/math-rendering": "beta",
|
|
31
|
+
"@pie-lib/math-toolbar": "beta",
|
|
32
|
+
"@pie-lib/plot": "^2.8.1-beta.0",
|
|
33
|
+
"@pie-lib/render-ui": "beta",
|
|
34
|
+
"@pie-lib/test-utils": "beta",
|
|
35
|
+
"@pie-lib/translator": "^2.4.1-beta.0",
|
|
24
36
|
"@vx/axis": "^0.0.183",
|
|
25
37
|
"@vx/event": "^0.0.182",
|
|
26
38
|
"@vx/grid": "^0.0.183",
|
|
@@ -32,17 +44,38 @@
|
|
|
32
44
|
"d3-scale": "^2.1.2",
|
|
33
45
|
"d3-selection": "^1.3.2",
|
|
34
46
|
"debug": "^4.1.1",
|
|
47
|
+
"immutable": "^4.0.0-rc.12",
|
|
35
48
|
"invariant": "^2.2.4",
|
|
36
49
|
"lodash": "^4.17.11",
|
|
50
|
+
"mathjax-full": "3.2.2",
|
|
51
|
+
"mathjs": "^7.0.1",
|
|
52
|
+
"prop-types": "^15.7.2",
|
|
37
53
|
"react": "^16.8.1",
|
|
54
|
+
"react-attr-converter": "^0.3.1",
|
|
55
|
+
"react-dnd": "^14.0.5",
|
|
56
|
+
"react-dnd-html5-backend": "^14.0.2",
|
|
57
|
+
"react-dnd-multi-backend": "^6.0.2",
|
|
58
|
+
"react-dnd-touch-backend": "^12.0.0",
|
|
59
|
+
"react-dom": "^16.9.0",
|
|
38
60
|
"react-draggable": "^3.1.1",
|
|
39
61
|
"react-input-autosize": "^2.2.1",
|
|
62
|
+
"react-measure": "^2.2.2",
|
|
40
63
|
"react-redux": "^6.0.0",
|
|
64
|
+
"react-transition-group": "^2.5.2",
|
|
41
65
|
"redux": "^4.0.1",
|
|
42
|
-
"redux-undo": "beta"
|
|
66
|
+
"redux-undo": "beta",
|
|
67
|
+
"slate": "^0.36.2",
|
|
68
|
+
"slate-edit-list": "^0.12.1",
|
|
69
|
+
"slate-edit-table": "^0.17.0",
|
|
70
|
+
"slate-html-serializer": "^0.6.12",
|
|
71
|
+
"slate-plain-serializer": "^0.5.26",
|
|
72
|
+
"slate-prop-types": "^0.4.38",
|
|
73
|
+
"slate-react": "^0.14.3",
|
|
74
|
+
"slate-soft-break": "^0.8.1",
|
|
75
|
+
"to-style": "^1.3.3"
|
|
43
76
|
},
|
|
44
77
|
"peerDependencies": {
|
|
45
78
|
"react": "^16.8.1"
|
|
46
79
|
},
|
|
47
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453"
|
|
48
81
|
}
|