victory-stack 36.5.1 → 36.6.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 +15 -0
- package/dist/victory-stack.js +1949 -1780
- package/dist/victory-stack.min.js +1 -1
- package/es/helper-methods.js +17 -16
- package/lib/helper-methods.js +17 -16
- package/package.json +251 -8
- package/src/helper-methods.js +9 -11
package/es/helper-methods.js
CHANGED
|
@@ -39,7 +39,7 @@ function fillData(props, datasets) {
|
|
|
39
39
|
}, {});
|
|
40
40
|
|
|
41
41
|
var xKeys = _keys(xMap).map(function (k) {
|
|
42
|
-
return
|
|
42
|
+
return Number(k);
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
var xArr = _orderBy(xKeys);
|
|
@@ -48,7 +48,7 @@ function fillData(props, datasets) {
|
|
|
48
48
|
var indexOffset = 0;
|
|
49
49
|
var isDate = dataset[0] && dataset[0]._x instanceof Date;
|
|
50
50
|
var filledInData = xArr.map(function (x, index) {
|
|
51
|
-
x =
|
|
51
|
+
x = Number(x);
|
|
52
52
|
var datum = dataset[index - indexOffset];
|
|
53
53
|
|
|
54
54
|
if (datum) {
|
|
@@ -56,18 +56,10 @@ function fillData(props, datasets) {
|
|
|
56
56
|
|
|
57
57
|
if (x1 === x) {
|
|
58
58
|
return datum;
|
|
59
|
-
} else {
|
|
60
|
-
indexOffset++;
|
|
61
|
-
var y = fillInMissingData ? 0 : null;
|
|
62
|
-
x = isDate ? new Date(x) : x;
|
|
63
|
-
return {
|
|
64
|
-
x: x,
|
|
65
|
-
y: y,
|
|
66
|
-
_x: x,
|
|
67
|
-
_y: y
|
|
68
|
-
};
|
|
69
59
|
}
|
|
70
|
-
|
|
60
|
+
|
|
61
|
+
indexOffset++;
|
|
62
|
+
|
|
71
63
|
var _y = fillInMissingData ? 0 : null;
|
|
72
64
|
|
|
73
65
|
x = isDate ? new Date(x) : x;
|
|
@@ -78,6 +70,15 @@ function fillData(props, datasets) {
|
|
|
78
70
|
_y: _y
|
|
79
71
|
};
|
|
80
72
|
}
|
|
73
|
+
|
|
74
|
+
var y = fillInMissingData ? 0 : null;
|
|
75
|
+
x = isDate ? new Date(x) : x;
|
|
76
|
+
return {
|
|
77
|
+
x: x,
|
|
78
|
+
y: y,
|
|
79
|
+
_x: x,
|
|
80
|
+
_y: y
|
|
81
|
+
};
|
|
81
82
|
});
|
|
82
83
|
return filledInData;
|
|
83
84
|
});
|
|
@@ -103,7 +104,7 @@ function getY0(datum, index, datasets) {
|
|
|
103
104
|
}, []);
|
|
104
105
|
var y0 = previousPoints.length && previousPoints.reduce(function (memo, value) {
|
|
105
106
|
var sameSign = y < 0 && value < 0 || y >= 0 && value >= 0;
|
|
106
|
-
return sameSign ?
|
|
107
|
+
return sameSign ? Number(value) + memo : memo;
|
|
107
108
|
}, firstDatasetBaseline[group] || 0);
|
|
108
109
|
return previousPoints.some(function (point) {
|
|
109
110
|
return point instanceof Date;
|
|
@@ -118,8 +119,8 @@ function addLayoutData(props, datasets, index) {
|
|
|
118
119
|
var yOffset = getY0(datum, index, datasets) || 0;
|
|
119
120
|
return _assign({}, datum, {
|
|
120
121
|
_y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y,
|
|
121
|
-
_y1: datum._y === null ? null : datum._y instanceof Date ? new Date(
|
|
122
|
-
_x1: datum._x === null ? null : datum._x instanceof Date ? new Date(
|
|
122
|
+
_y1: datum._y === null ? null : datum._y instanceof Date ? new Date(Number(datum._y) + Number(yOffset)) : datum._y + yOffset,
|
|
123
|
+
_x1: datum._x === null ? null : datum._x instanceof Date ? new Date(Number(datum._x) + Number(xOffset)) : datum._x + xOffset
|
|
123
124
|
});
|
|
124
125
|
});
|
|
125
126
|
}
|
package/lib/helper-methods.js
CHANGED
|
@@ -55,14 +55,14 @@ function fillData(props, datasets) {
|
|
|
55
55
|
return prev;
|
|
56
56
|
}, {});
|
|
57
57
|
var xKeys = (0, _keys2.default)(xMap).map(function (k) {
|
|
58
|
-
return
|
|
58
|
+
return Number(k);
|
|
59
59
|
});
|
|
60
60
|
var xArr = (0, _orderBy2.default)(xKeys);
|
|
61
61
|
return datasets.map(function (dataset) {
|
|
62
62
|
var indexOffset = 0;
|
|
63
63
|
var isDate = dataset[0] && dataset[0]._x instanceof Date;
|
|
64
64
|
var filledInData = xArr.map(function (x, index) {
|
|
65
|
-
x =
|
|
65
|
+
x = Number(x);
|
|
66
66
|
var datum = dataset[index - indexOffset];
|
|
67
67
|
|
|
68
68
|
if (datum) {
|
|
@@ -70,18 +70,10 @@ function fillData(props, datasets) {
|
|
|
70
70
|
|
|
71
71
|
if (x1 === x) {
|
|
72
72
|
return datum;
|
|
73
|
-
} else {
|
|
74
|
-
indexOffset++;
|
|
75
|
-
var y = fillInMissingData ? 0 : null;
|
|
76
|
-
x = isDate ? new Date(x) : x;
|
|
77
|
-
return {
|
|
78
|
-
x: x,
|
|
79
|
-
y: y,
|
|
80
|
-
_x: x,
|
|
81
|
-
_y: y
|
|
82
|
-
};
|
|
83
73
|
}
|
|
84
|
-
|
|
74
|
+
|
|
75
|
+
indexOffset++;
|
|
76
|
+
|
|
85
77
|
var _y = fillInMissingData ? 0 : null;
|
|
86
78
|
|
|
87
79
|
x = isDate ? new Date(x) : x;
|
|
@@ -92,6 +84,15 @@ function fillData(props, datasets) {
|
|
|
92
84
|
_y: _y
|
|
93
85
|
};
|
|
94
86
|
}
|
|
87
|
+
|
|
88
|
+
var y = fillInMissingData ? 0 : null;
|
|
89
|
+
x = isDate ? new Date(x) : x;
|
|
90
|
+
return {
|
|
91
|
+
x: x,
|
|
92
|
+
y: y,
|
|
93
|
+
_x: x,
|
|
94
|
+
_y: y
|
|
95
|
+
};
|
|
95
96
|
});
|
|
96
97
|
return filledInData;
|
|
97
98
|
});
|
|
@@ -117,7 +118,7 @@ function getY0(datum, index, datasets) {
|
|
|
117
118
|
}, []);
|
|
118
119
|
var y0 = previousPoints.length && previousPoints.reduce(function (memo, value) {
|
|
119
120
|
var sameSign = y < 0 && value < 0 || y >= 0 && value >= 0;
|
|
120
|
-
return sameSign ?
|
|
121
|
+
return sameSign ? Number(value) + memo : memo;
|
|
121
122
|
}, firstDatasetBaseline[group] || 0);
|
|
122
123
|
return previousPoints.some(function (point) {
|
|
123
124
|
return point instanceof Date;
|
|
@@ -132,8 +133,8 @@ function addLayoutData(props, datasets, index) {
|
|
|
132
133
|
var yOffset = getY0(datum, index, datasets) || 0;
|
|
133
134
|
return (0, _assign2.default)({}, datum, {
|
|
134
135
|
_y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y,
|
|
135
|
-
_y1: datum._y === null ? null : datum._y instanceof Date ? new Date(
|
|
136
|
-
_x1: datum._x === null ? null : datum._x instanceof Date ? new Date(
|
|
136
|
+
_y1: datum._y === null ? null : datum._y instanceof Date ? new Date(Number(datum._y) + Number(yOffset)) : datum._y + yOffset,
|
|
137
|
+
_x1: datum._x === null ? null : datum._x instanceof Date ? new Date(Number(datum._x) + Number(xOffset)) : datum._x + xOffset
|
|
137
138
|
});
|
|
138
139
|
});
|
|
139
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-stack",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.6.0",
|
|
4
4
|
"description": "Stack Layout Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"url": "https://github.com/formidablelabs/victory.git"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://formidable.com/open-source/victory",
|
|
16
|
+
"sideEffects": false,
|
|
16
17
|
"main": "lib/index.js",
|
|
17
18
|
"module": "es/index.js",
|
|
18
19
|
"jsnext:main": "es/index.js",
|
|
@@ -22,15 +23,257 @@
|
|
|
22
23
|
"lodash": "^4.17.19",
|
|
23
24
|
"prop-types": "^15.8.1",
|
|
24
25
|
"react-fast-compare": "^3.2.0",
|
|
25
|
-
"victory-core": "^36.
|
|
26
|
-
"victory-shared-events": "^36.
|
|
26
|
+
"victory-core": "^36.6.0",
|
|
27
|
+
"victory-shared-events": "^36.6.0"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
29
30
|
"react": ">=16.6.0"
|
|
30
31
|
},
|
|
31
|
-
"
|
|
32
|
-
"
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"victory-histogram": "^36.6.0"
|
|
33
34
|
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
}
|
|
35
|
+
"wireit": {
|
|
36
|
+
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
37
|
+
"### DO NOT MODIFY THESE MANUALLY ####": {},
|
|
38
|
+
"build": {
|
|
39
|
+
"dependencies": [
|
|
40
|
+
"build:lib",
|
|
41
|
+
"build:dist",
|
|
42
|
+
"types:create"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"build:lib": {
|
|
46
|
+
"dependencies": [
|
|
47
|
+
"build:lib:esm",
|
|
48
|
+
"build:lib:cjs"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"build:lib:esm": {
|
|
52
|
+
"command": "nps build:lib:esm",
|
|
53
|
+
"files": [
|
|
54
|
+
"src/**",
|
|
55
|
+
"!src/**/*.test.*",
|
|
56
|
+
"../../.babelrc.build.js"
|
|
57
|
+
],
|
|
58
|
+
"output": [
|
|
59
|
+
"es/**/*.js",
|
|
60
|
+
"es/**/*.js.map"
|
|
61
|
+
],
|
|
62
|
+
"dependencies": [
|
|
63
|
+
"../victory-core:build:lib:esm",
|
|
64
|
+
"../victory-shared-events:build:lib:esm"
|
|
65
|
+
],
|
|
66
|
+
"packageLocks": [
|
|
67
|
+
"pnpm-lock.yaml"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"build:lib:cjs": {
|
|
71
|
+
"command": "nps build:lib:cjs",
|
|
72
|
+
"files": [
|
|
73
|
+
"src/**",
|
|
74
|
+
"!src/**/*.test.*",
|
|
75
|
+
"../../.babelrc.build.js"
|
|
76
|
+
],
|
|
77
|
+
"output": [
|
|
78
|
+
"lib/**/*.js",
|
|
79
|
+
"lib/**/*.js.map"
|
|
80
|
+
],
|
|
81
|
+
"dependencies": [
|
|
82
|
+
"../victory-core:build:lib:cjs",
|
|
83
|
+
"../victory-shared-events:build:lib:cjs"
|
|
84
|
+
],
|
|
85
|
+
"packageLocks": [
|
|
86
|
+
"pnpm-lock.yaml"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"build:dist": {
|
|
90
|
+
"dependencies": [
|
|
91
|
+
"build:dist:dev",
|
|
92
|
+
"build:dist:min"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"build:dist:dev": {
|
|
96
|
+
"command": "nps build:dist:dev",
|
|
97
|
+
"files": [
|
|
98
|
+
"src/**",
|
|
99
|
+
"!src/**/*.test.*",
|
|
100
|
+
"../../.babelrc.build.js",
|
|
101
|
+
"../../config/webpack.config.js",
|
|
102
|
+
"../../config/webpack.config.dev.js"
|
|
103
|
+
],
|
|
104
|
+
"output": [
|
|
105
|
+
"dist/victory*.js",
|
|
106
|
+
"!dist/victory*.min.js*"
|
|
107
|
+
],
|
|
108
|
+
"dependencies": [
|
|
109
|
+
"../victory-core:build:lib:esm",
|
|
110
|
+
"../victory-shared-events:build:lib:esm"
|
|
111
|
+
],
|
|
112
|
+
"packageLocks": [
|
|
113
|
+
"pnpm-lock.yaml"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"build:dist:min": {
|
|
117
|
+
"command": "nps build:dist:min",
|
|
118
|
+
"files": [
|
|
119
|
+
"src/**",
|
|
120
|
+
"!src/**/*.test.*",
|
|
121
|
+
"../../.babelrc.build.js",
|
|
122
|
+
"../../config/webpack.config.js"
|
|
123
|
+
],
|
|
124
|
+
"output": [
|
|
125
|
+
"dist/victory*.min.js*"
|
|
126
|
+
],
|
|
127
|
+
"dependencies": [
|
|
128
|
+
"../victory-core:build:lib:esm",
|
|
129
|
+
"../victory-shared-events:build:lib:esm"
|
|
130
|
+
],
|
|
131
|
+
"packageLocks": [
|
|
132
|
+
"pnpm-lock.yaml"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"types:check": {
|
|
136
|
+
"command": "nps types:pkg:check",
|
|
137
|
+
"files": [
|
|
138
|
+
"src/**/*.{ts,tsx}",
|
|
139
|
+
"../../tsconfig.base.json",
|
|
140
|
+
"tsconfig.json"
|
|
141
|
+
],
|
|
142
|
+
"dependencies": [
|
|
143
|
+
"types:create",
|
|
144
|
+
"../victory-core:types:create",
|
|
145
|
+
"../victory-shared-events:types:create",
|
|
146
|
+
"../victory-histogram:types:create",
|
|
147
|
+
"../victory-vendor:types:create",
|
|
148
|
+
"../victory-voronoi:types:create"
|
|
149
|
+
],
|
|
150
|
+
"output": [],
|
|
151
|
+
"packageLocks": [
|
|
152
|
+
"pnpm-lock.yaml"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"types:create": {
|
|
156
|
+
"command": "nps types:pkg:create",
|
|
157
|
+
"files": [
|
|
158
|
+
"src/**",
|
|
159
|
+
"!src/**/*.test.*",
|
|
160
|
+
"../../tsconfig.base.json",
|
|
161
|
+
"tsconfig.build.json"
|
|
162
|
+
],
|
|
163
|
+
"output": [
|
|
164
|
+
"es/**/*.d.ts",
|
|
165
|
+
"es/**/*.d.ts.map",
|
|
166
|
+
"lib/**/*.d.ts",
|
|
167
|
+
"lib/**/*.d.ts.map"
|
|
168
|
+
],
|
|
169
|
+
"dependencies": [
|
|
170
|
+
"../victory-core:types:create",
|
|
171
|
+
"../victory-shared-events:types:create"
|
|
172
|
+
],
|
|
173
|
+
"packageLocks": [
|
|
174
|
+
"pnpm-lock.yaml"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"format": {
|
|
178
|
+
"command": "nps format:pkg",
|
|
179
|
+
"files": [
|
|
180
|
+
"src/**",
|
|
181
|
+
"*.json",
|
|
182
|
+
"../../.prettierignore",
|
|
183
|
+
"../../.prettierrc.json"
|
|
184
|
+
],
|
|
185
|
+
"output": [],
|
|
186
|
+
"packageLocks": [
|
|
187
|
+
"pnpm-lock.yaml"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"lint": {
|
|
191
|
+
"command": "nps lint:pkg",
|
|
192
|
+
"files": [
|
|
193
|
+
"src/**",
|
|
194
|
+
"../../.eslintignore",
|
|
195
|
+
"../../.eslintrc.js"
|
|
196
|
+
],
|
|
197
|
+
"output": [],
|
|
198
|
+
"dependencies": [
|
|
199
|
+
"../victory-core:types:create",
|
|
200
|
+
"../victory-shared-events:types:create",
|
|
201
|
+
"../victory-histogram:types:create",
|
|
202
|
+
"../victory-vendor:types:create",
|
|
203
|
+
"../victory-voronoi:types:create"
|
|
204
|
+
],
|
|
205
|
+
"packageLocks": [
|
|
206
|
+
"pnpm-lock.yaml"
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"format:fix": {
|
|
210
|
+
"command": "pnpm run format || nps format:pkg:fix",
|
|
211
|
+
"files": [
|
|
212
|
+
"src/**",
|
|
213
|
+
"*.json",
|
|
214
|
+
"../../.prettierignore",
|
|
215
|
+
"../../.prettierrc.json"
|
|
216
|
+
],
|
|
217
|
+
"output": [],
|
|
218
|
+
"packageLocks": [
|
|
219
|
+
"pnpm-lock.yaml"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
"lint:fix": {
|
|
223
|
+
"command": "pnpm run lint || nps lint:pkg:fix",
|
|
224
|
+
"files": [
|
|
225
|
+
"src/**",
|
|
226
|
+
"../../.eslintignore",
|
|
227
|
+
"../../.eslintrc.js"
|
|
228
|
+
],
|
|
229
|
+
"output": [],
|
|
230
|
+
"dependencies": [
|
|
231
|
+
"../victory-core:types:create",
|
|
232
|
+
"../victory-shared-events:types:create",
|
|
233
|
+
"../victory-histogram:types:create",
|
|
234
|
+
"../victory-vendor:types:create",
|
|
235
|
+
"../victory-voronoi:types:create"
|
|
236
|
+
],
|
|
237
|
+
"packageLocks": [
|
|
238
|
+
"pnpm-lock.yaml"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"jest": {
|
|
242
|
+
"command": "nps jest:pkg",
|
|
243
|
+
"files": [
|
|
244
|
+
"src/**/*.test.*",
|
|
245
|
+
"../../.babelrc.js",
|
|
246
|
+
"../../test/jest-config.js",
|
|
247
|
+
"../../test/jest-setup.ts"
|
|
248
|
+
],
|
|
249
|
+
"output": [],
|
|
250
|
+
"dependencies": [
|
|
251
|
+
"build:lib:cjs",
|
|
252
|
+
"../victory-histogram:build:lib:cjs",
|
|
253
|
+
"../victory-vendor:build:lib:cjs",
|
|
254
|
+
"../victory-voronoi:build:lib:cjs"
|
|
255
|
+
],
|
|
256
|
+
"packageLocks": [
|
|
257
|
+
"pnpm-lock.yaml"
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"scripts": {
|
|
262
|
+
"### THESE SCRIPTS ARE GENERATED ###": "true",
|
|
263
|
+
"### DO NOT MODIFY THESE MANUALLY ###": "true",
|
|
264
|
+
"build": "wireit",
|
|
265
|
+
"build:lib": "wireit",
|
|
266
|
+
"build:lib:esm": "wireit",
|
|
267
|
+
"build:lib:cjs": "wireit",
|
|
268
|
+
"build:dist": "wireit",
|
|
269
|
+
"build:dist:dev": "wireit",
|
|
270
|
+
"build:dist:min": "wireit",
|
|
271
|
+
"types:check": "wireit",
|
|
272
|
+
"types:create": "wireit",
|
|
273
|
+
"format": "wireit",
|
|
274
|
+
"format:fix": "wireit",
|
|
275
|
+
"lint": "wireit",
|
|
276
|
+
"lint:fix": "wireit",
|
|
277
|
+
"jest": "wireit"
|
|
278
|
+
}
|
|
279
|
+
}
|
package/src/helper-methods.js
CHANGED
|
@@ -19,31 +19,29 @@ function fillData(props, datasets) {
|
|
|
19
19
|
});
|
|
20
20
|
return prev;
|
|
21
21
|
}, {});
|
|
22
|
-
const xKeys = keys(xMap).map((k) =>
|
|
22
|
+
const xKeys = keys(xMap).map((k) => Number(k));
|
|
23
23
|
const xArr = orderBy(xKeys);
|
|
24
24
|
|
|
25
25
|
return datasets.map((dataset) => {
|
|
26
26
|
let indexOffset = 0;
|
|
27
27
|
const isDate = dataset[0] && dataset[0]._x instanceof Date;
|
|
28
28
|
const filledInData = xArr.map((x, index) => {
|
|
29
|
-
x =
|
|
29
|
+
x = Number(x);
|
|
30
30
|
const datum = dataset[index - indexOffset];
|
|
31
31
|
|
|
32
32
|
if (datum) {
|
|
33
33
|
const x1 = isDate ? datum._x.getTime() : datum._x;
|
|
34
34
|
if (x1 === x) {
|
|
35
35
|
return datum;
|
|
36
|
-
} else {
|
|
37
|
-
indexOffset++;
|
|
38
|
-
const y = fillInMissingData ? 0 : null;
|
|
39
|
-
x = isDate ? new Date(x) : x;
|
|
40
|
-
return { x, y, _x: x, _y: y };
|
|
41
36
|
}
|
|
42
|
-
|
|
37
|
+
indexOffset++;
|
|
43
38
|
const y = fillInMissingData ? 0 : null;
|
|
44
39
|
x = isDate ? new Date(x) : x;
|
|
45
40
|
return { x, y, _x: x, _y: y };
|
|
46
41
|
}
|
|
42
|
+
const y = fillInMissingData ? 0 : null;
|
|
43
|
+
x = isDate ? new Date(x) : x;
|
|
44
|
+
return { x, y, _x: x, _y: y };
|
|
47
45
|
});
|
|
48
46
|
|
|
49
47
|
return filledInData;
|
|
@@ -75,7 +73,7 @@ function getY0(datum, index, datasets) {
|
|
|
75
73
|
previousPoints.length &&
|
|
76
74
|
previousPoints.reduce((memo, value) => {
|
|
77
75
|
const sameSign = (y < 0 && value < 0) || (y >= 0 && value >= 0);
|
|
78
|
-
return sameSign ?
|
|
76
|
+
return sameSign ? Number(value) + memo : memo;
|
|
79
77
|
}, firstDatasetBaseline[group] || 0);
|
|
80
78
|
return previousPoints.some((point) => point instanceof Date)
|
|
81
79
|
? new Date(y0)
|
|
@@ -97,13 +95,13 @@ function addLayoutData(props, datasets, index) {
|
|
|
97
95
|
datum._y === null
|
|
98
96
|
? null
|
|
99
97
|
: datum._y instanceof Date
|
|
100
|
-
? new Date(
|
|
98
|
+
? new Date(Number(datum._y) + Number(yOffset))
|
|
101
99
|
: datum._y + yOffset,
|
|
102
100
|
_x1:
|
|
103
101
|
datum._x === null
|
|
104
102
|
? null
|
|
105
103
|
: datum._x instanceof Date
|
|
106
|
-
? new Date(
|
|
104
|
+
? new Date(Number(datum._x) + Number(xOffset))
|
|
107
105
|
: datum._x + xOffset,
|
|
108
106
|
});
|
|
109
107
|
});
|