@easyv/charts 1.3.0 → 1.3.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/lib/utils/index.js +6 -0
- package/package.json +1 -1
- package/src/utils/index.js +7 -0
package/lib/utils/index.js
CHANGED
|
@@ -631,6 +631,12 @@ var getSeriesInfo = function getSeriesInfo(_ref18) {
|
|
|
631
631
|
paddingInner = _ref18$paddingInner === void 0 ? 0 : _ref18$paddingInner,
|
|
632
632
|
_ref18$paddingOuter = _ref18.paddingOuter,
|
|
633
633
|
paddingOuter = _ref18$paddingOuter === void 0 ? 0 : _ref18$paddingOuter;
|
|
634
|
+
if (bandLength == 0) return {
|
|
635
|
+
seriesWidth: step,
|
|
636
|
+
seriesStep: step,
|
|
637
|
+
seriesStart: 0,
|
|
638
|
+
width: step
|
|
639
|
+
};
|
|
634
640
|
|
|
635
641
|
var _step = step / (bandLength + paddingOuter * 2 + paddingInner * (bandLength - 1));
|
|
636
642
|
|
package/package.json
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -497,6 +497,13 @@ const getSeriesInfo = ({
|
|
|
497
497
|
paddingInner = 0,
|
|
498
498
|
paddingOuter = 0,
|
|
499
499
|
}) => {
|
|
500
|
+
if (bandLength == 0)
|
|
501
|
+
return {
|
|
502
|
+
seriesWidth: step,
|
|
503
|
+
seriesStep: step,
|
|
504
|
+
seriesStart: 0,
|
|
505
|
+
width: step,
|
|
506
|
+
};
|
|
500
507
|
const _step =
|
|
501
508
|
step / (bandLength + paddingOuter * 2 + paddingInner * (bandLength - 1));
|
|
502
509
|
return {
|