victory-box-plot 36.3.2 → 36.5.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/dist/victory-box-plot.js +16760 -17136
- package/dist/victory-box-plot.min.js +1 -1
- package/es/helper-methods.js +1 -1
- package/es/victory-box-plot.js +119 -154
- package/lib/helper-methods.js +2 -2
- package/lib/victory-box-plot.js +119 -157
- package/package.json +6 -6
- package/src/helper-methods.js +5 -1
- package/src/victory-box-plot.js +4 -6
package/es/helper-methods.js
CHANGED
|
@@ -10,7 +10,7 @@ import _orderBy from "lodash/orderBy";
|
|
|
10
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
|
|
12
12
|
import { Helpers, Scale, Domain, Data, Collection } from "victory-core";
|
|
13
|
-
import { min as d3Min, max as d3Max, quantile as d3Quantile } from "d3-array";
|
|
13
|
+
import { min as d3Min, max as d3Max, quantile as d3Quantile } from "victory-vendor/d3-array";
|
|
14
14
|
var TYPES = ["max", "min", "median", "q1", "q3"];
|
|
15
15
|
|
|
16
16
|
var checkProcessedData = function (data) {
|
package/es/victory-box-plot.js
CHANGED
|
@@ -1,29 +1,43 @@
|
|
|
1
1
|
import _isNil from "lodash/isNil";
|
|
2
2
|
import _flatten from "lodash/flatten";
|
|
3
3
|
|
|
4
|
-
function
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
7
|
|
|
6
8
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
9
|
|
|
8
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
10
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11
|
+
|
|
12
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
|
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
15
|
|
|
10
|
-
function
|
|
16
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
17
|
|
|
12
|
-
function
|
|
18
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
13
19
|
|
|
14
|
-
function
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
15
21
|
|
|
16
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
23
|
|
|
18
24
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
25
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
+
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21
33
|
|
|
22
|
-
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
23
35
|
|
|
24
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25
37
|
|
|
26
|
-
function
|
|
38
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
+
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
27
41
|
|
|
28
42
|
import React from "react";
|
|
29
43
|
import PropTypes from "prop-types";
|
|
@@ -81,15 +95,15 @@ var options = {
|
|
|
81
95
|
}]
|
|
82
96
|
};
|
|
83
97
|
|
|
84
|
-
var VictoryBoxPlot =
|
|
85
|
-
/*#__PURE__*/
|
|
86
|
-
function (_React$Component) {
|
|
98
|
+
var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
|
|
87
99
|
_inherits(VictoryBoxPlot, _React$Component);
|
|
88
100
|
|
|
101
|
+
var _super = _createSuper(VictoryBoxPlot);
|
|
102
|
+
|
|
89
103
|
function VictoryBoxPlot() {
|
|
90
104
|
_classCallCheck(this, VictoryBoxPlot);
|
|
91
105
|
|
|
92
|
-
return
|
|
106
|
+
return _super.apply(this, arguments);
|
|
93
107
|
}
|
|
94
108
|
|
|
95
109
|
_createClass(VictoryBoxPlot, [{
|
|
@@ -106,7 +120,7 @@ function (_React$Component) {
|
|
|
106
120
|
var componentProps = _this.getComponentProps(baseComponent, type, index);
|
|
107
121
|
|
|
108
122
|
if (_this.shouldRenderDatum(componentProps.datum)) {
|
|
109
|
-
validDataComponents.push(React.cloneElement(baseComponent, componentProps));
|
|
123
|
+
validDataComponents.push( /*#__PURE__*/React.cloneElement(baseComponent, componentProps));
|
|
110
124
|
}
|
|
111
125
|
|
|
112
126
|
return validDataComponents;
|
|
@@ -121,7 +135,7 @@ function (_React$Component) {
|
|
|
121
135
|
var labelProps = _this.getComponentProps(baseComponent, name, index);
|
|
122
136
|
|
|
123
137
|
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
124
|
-
return React.cloneElement(baseComponent, labelProps);
|
|
138
|
+
return /*#__PURE__*/React.cloneElement(baseComponent, labelProps);
|
|
125
139
|
}
|
|
126
140
|
|
|
127
141
|
return undefined;
|
|
@@ -130,8 +144,7 @@ function (_React$Component) {
|
|
|
130
144
|
return components.filter(Boolean);
|
|
131
145
|
}));
|
|
132
146
|
|
|
133
|
-
var children = _toConsumableArray(dataComponents)
|
|
134
|
-
|
|
147
|
+
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
135
148
|
return this.renderContainer(props.groupComponent, children);
|
|
136
149
|
} // Overridden in native versions
|
|
137
150
|
|
|
@@ -160,149 +173,101 @@ function (_React$Component) {
|
|
|
160
173
|
}
|
|
161
174
|
|
|
162
175
|
var children = this.renderBoxPlot(props);
|
|
163
|
-
var
|
|
164
|
-
return
|
|
176
|
+
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
|
|
177
|
+
return UserProps.withSafeUserProps(component, props);
|
|
165
178
|
}
|
|
166
179
|
}]);
|
|
167
180
|
|
|
168
181
|
return VictoryBoxPlot;
|
|
169
182
|
}(React.Component);
|
|
170
183
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
max: PropTypes.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
q1Component: PropTypes.element,
|
|
229
|
-
q1LabelComponent: PropTypes.element,
|
|
230
|
-
q1Labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
231
|
-
q3: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
232
|
-
q3Component: PropTypes.element,
|
|
233
|
-
q3LabelComponent: PropTypes.element,
|
|
234
|
-
q3Labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
235
|
-
style: PropTypes.shape({
|
|
236
|
-
boxes: PropTypes.object,
|
|
237
|
-
labels: PropTypes.object,
|
|
238
|
-
parent: PropTypes.object,
|
|
239
|
-
max: PropTypes.object,
|
|
240
|
-
maxLabels: PropTypes.object,
|
|
241
|
-
median: PropTypes.object,
|
|
242
|
-
medianLabels: PropTypes.object,
|
|
243
|
-
min: PropTypes.object,
|
|
244
|
-
minLabels: PropTypes.object,
|
|
245
|
-
q1: PropTypes.object,
|
|
246
|
-
q1Labels: PropTypes.object,
|
|
247
|
-
q3: PropTypes.object,
|
|
248
|
-
q3Labels: PropTypes.object,
|
|
249
|
-
whiskers: PropTypes.object
|
|
250
|
-
}),
|
|
251
|
-
whiskerWidth: PropTypes.number
|
|
252
|
-
})
|
|
253
|
-
});
|
|
254
|
-
Object.defineProperty(VictoryBoxPlot, "defaultProps", {
|
|
255
|
-
configurable: true,
|
|
256
|
-
enumerable: true,
|
|
257
|
-
writable: true,
|
|
258
|
-
value: {
|
|
259
|
-
containerComponent: React.createElement(VictoryContainer, null),
|
|
260
|
-
data: defaultData,
|
|
261
|
-
dataComponent: React.createElement(Box, null),
|
|
262
|
-
groupComponent: React.createElement("g", {
|
|
263
|
-
role: "presentation"
|
|
264
|
-
}),
|
|
265
|
-
maxComponent: React.createElement(Whisker, null),
|
|
266
|
-
maxLabelComponent: React.createElement(VictoryLabel, null),
|
|
267
|
-
medianComponent: React.createElement(LineSegment, null),
|
|
268
|
-
medianLabelComponent: React.createElement(VictoryLabel, null),
|
|
269
|
-
minComponent: React.createElement(Whisker, null),
|
|
270
|
-
minLabelComponent: React.createElement(VictoryLabel, null),
|
|
271
|
-
q1Component: React.createElement(Box, null),
|
|
272
|
-
q1LabelComponent: React.createElement(VictoryLabel, null),
|
|
273
|
-
q3Component: React.createElement(Box, null),
|
|
274
|
-
q3LabelComponent: React.createElement(VictoryLabel, null),
|
|
275
|
-
samples: 50,
|
|
276
|
-
sortKey: "x",
|
|
277
|
-
sortOrder: "ascending",
|
|
278
|
-
standalone: true,
|
|
279
|
-
theme: VictoryTheme.grayscale
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperty(VictoryBoxPlot, "getDomain", {
|
|
283
|
-
configurable: true,
|
|
284
|
-
enumerable: true,
|
|
285
|
-
writable: true,
|
|
286
|
-
value: getDomain
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(VictoryBoxPlot, "getData", {
|
|
289
|
-
configurable: true,
|
|
290
|
-
enumerable: true,
|
|
291
|
-
writable: true,
|
|
292
|
-
value: getData
|
|
293
|
-
});
|
|
294
|
-
Object.defineProperty(VictoryBoxPlot, "getBaseProps", {
|
|
295
|
-
configurable: true,
|
|
296
|
-
enumerable: true,
|
|
297
|
-
writable: true,
|
|
298
|
-
value: function (props) {
|
|
299
|
-
return getBaseProps(props, fallbackProps);
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
Object.defineProperty(VictoryBoxPlot, "expectedComponents", {
|
|
303
|
-
configurable: true,
|
|
304
|
-
enumerable: true,
|
|
305
|
-
writable: true,
|
|
306
|
-
value: ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"]
|
|
184
|
+
VictoryBoxPlot.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
|
|
185
|
+
VictoryBoxPlot.displayName = "VictoryBoxPlot";
|
|
186
|
+
VictoryBoxPlot.role = "boxplot";
|
|
187
|
+
VictoryBoxPlot.defaultTransitions = DefaultTransitions.discreteTransitions();
|
|
188
|
+
VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, {
|
|
189
|
+
boxWidth: PropTypes.number,
|
|
190
|
+
events: PropTypes.arrayOf(PropTypes.shape({
|
|
191
|
+
target: PropTypes.oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
|
|
192
|
+
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
|
|
193
|
+
eventHandlers: PropTypes.object
|
|
194
|
+
})),
|
|
195
|
+
horizontal: PropTypes.bool,
|
|
196
|
+
labelOrientation: PropTypes.oneOfType([PropTypes.oneOf(["top", "bottom", "left", "right"]), PropTypes.shape({
|
|
197
|
+
q1: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
198
|
+
q3: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
199
|
+
min: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
200
|
+
max: PropTypes.oneOf(["top", "bottom", "left", "right"]),
|
|
201
|
+
median: PropTypes.oneOf(["top", "bottom", "left", "right"])
|
|
202
|
+
})]),
|
|
203
|
+
labels: PropTypes.bool,
|
|
204
|
+
max: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
205
|
+
maxComponent: PropTypes.element,
|
|
206
|
+
maxLabelComponent: PropTypes.element,
|
|
207
|
+
maxLabels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
208
|
+
median: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
209
|
+
medianComponent: PropTypes.element,
|
|
210
|
+
medianLabelComponent: PropTypes.element,
|
|
211
|
+
medianLabels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
212
|
+
min: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
213
|
+
minComponent: PropTypes.element,
|
|
214
|
+
minLabelComponent: PropTypes.element,
|
|
215
|
+
minLabels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
216
|
+
q1: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
217
|
+
q1Component: PropTypes.element,
|
|
218
|
+
q1LabelComponent: PropTypes.element,
|
|
219
|
+
q1Labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
220
|
+
q3: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
221
|
+
q3Component: PropTypes.element,
|
|
222
|
+
q3LabelComponent: PropTypes.element,
|
|
223
|
+
q3Labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array, PropTypes.bool]),
|
|
224
|
+
style: PropTypes.shape({
|
|
225
|
+
boxes: PropTypes.object,
|
|
226
|
+
labels: PropTypes.object,
|
|
227
|
+
parent: PropTypes.object,
|
|
228
|
+
max: PropTypes.object,
|
|
229
|
+
maxLabels: PropTypes.object,
|
|
230
|
+
median: PropTypes.object,
|
|
231
|
+
medianLabels: PropTypes.object,
|
|
232
|
+
min: PropTypes.object,
|
|
233
|
+
minLabels: PropTypes.object,
|
|
234
|
+
q1: PropTypes.object,
|
|
235
|
+
q1Labels: PropTypes.object,
|
|
236
|
+
q3: PropTypes.object,
|
|
237
|
+
q3Labels: PropTypes.object,
|
|
238
|
+
whiskers: PropTypes.object
|
|
239
|
+
}),
|
|
240
|
+
whiskerWidth: PropTypes.number
|
|
307
241
|
});
|
|
242
|
+
VictoryBoxPlot.defaultProps = {
|
|
243
|
+
containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null),
|
|
244
|
+
data: defaultData,
|
|
245
|
+
dataComponent: /*#__PURE__*/React.createElement(Box, null),
|
|
246
|
+
groupComponent: /*#__PURE__*/React.createElement("g", {
|
|
247
|
+
role: "presentation"
|
|
248
|
+
}),
|
|
249
|
+
maxComponent: /*#__PURE__*/React.createElement(Whisker, null),
|
|
250
|
+
maxLabelComponent: /*#__PURE__*/React.createElement(VictoryLabel, null),
|
|
251
|
+
medianComponent: /*#__PURE__*/React.createElement(LineSegment, null),
|
|
252
|
+
medianLabelComponent: /*#__PURE__*/React.createElement(VictoryLabel, null),
|
|
253
|
+
minComponent: /*#__PURE__*/React.createElement(Whisker, null),
|
|
254
|
+
minLabelComponent: /*#__PURE__*/React.createElement(VictoryLabel, null),
|
|
255
|
+
q1Component: /*#__PURE__*/React.createElement(Box, null),
|
|
256
|
+
q1LabelComponent: /*#__PURE__*/React.createElement(VictoryLabel, null),
|
|
257
|
+
q3Component: /*#__PURE__*/React.createElement(Box, null),
|
|
258
|
+
q3LabelComponent: /*#__PURE__*/React.createElement(VictoryLabel, null),
|
|
259
|
+
samples: 50,
|
|
260
|
+
sortKey: "x",
|
|
261
|
+
sortOrder: "ascending",
|
|
262
|
+
standalone: true,
|
|
263
|
+
theme: VictoryTheme.grayscale
|
|
264
|
+
};
|
|
265
|
+
VictoryBoxPlot.getDomain = getDomain;
|
|
266
|
+
VictoryBoxPlot.getData = getData;
|
|
267
|
+
|
|
268
|
+
VictoryBoxPlot.getBaseProps = function (props) {
|
|
269
|
+
return getBaseProps(props, fallbackProps);
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
VictoryBoxPlot.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
|
|
308
273
|
export default addEvents(VictoryBoxPlot, options);
|
package/lib/helper-methods.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getDomain = exports.getData = exports.getBaseProps = void 0;
|
|
7
7
|
|
|
8
8
|
var _isNil2 = _interopRequireDefault(require("lodash/isNil"));
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ var _orderBy2 = _interopRequireDefault(require("lodash/orderBy"));
|
|
|
23
23
|
|
|
24
24
|
var _victoryCore = require("victory-core");
|
|
25
25
|
|
|
26
|
-
var _d3Array = require("d3-array");
|
|
26
|
+
var _d3Array = require("victory-vendor/d3-array");
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
29
|
|