pace-chart-lib 1.0.42 → 1.0.43
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/pace-chart-lib.es.js +4 -12
- package/dist/pace-chart-lib.umd.js +4 -12
- package/package.json +1 -1
|
@@ -12285,14 +12285,14 @@ function responsiveSecondaryYaxisLabel(secondaryYmax, secondaryYmin, formatOptio
|
|
|
12285
12285
|
}
|
|
12286
12286
|
} else {
|
|
12287
12287
|
let labelWidthPx = calculateWidthHeightDynamically(
|
|
12288
|
-
|
|
12288
|
+
secondaryYmax.toString(),
|
|
12289
12289
|
formatOptions.secondaryYAxisLabel.secondaryYAxisLabelFontSize,
|
|
12290
12290
|
formatOptions.secondaryYAxisLabel.secondaryYAxisLabelFontFamily,
|
|
12291
12291
|
0
|
|
12292
12292
|
);
|
|
12293
12293
|
secondaryYAxisLabelArray = getLabelsFromAlgo(
|
|
12294
|
-
|
|
12295
|
-
|
|
12294
|
+
secondaryYmin,
|
|
12295
|
+
secondaryYmax,
|
|
12296
12296
|
innerHeight2,
|
|
12297
12297
|
labelWidthPx[0]
|
|
12298
12298
|
);
|
|
@@ -18050,14 +18050,6 @@ const CustomColumnChart = ({
|
|
|
18050
18050
|
]);
|
|
18051
18051
|
}
|
|
18052
18052
|
if (isSecondaryAxisDrawn) {
|
|
18053
|
-
let secondaryYAxisLabelArray = responsiveSecondaryYaxisLabel(
|
|
18054
|
-
secondaryCustomYaxisMaxValue ? secondaryCustomYaxisMaxValue : chartJSON.yMaxRight,
|
|
18055
|
-
secondaryCustomYaxisMinValue ? secondaryCustomYaxisMinValue : chartJSON.yMinRight,
|
|
18056
|
-
formatOptions,
|
|
18057
|
-
innerHeight2
|
|
18058
|
-
).secondaryYAxisLabelArray;
|
|
18059
|
-
chartJSON.yMaxRight = secondaryYAxisLabelArray[secondaryYAxisLabelArray.length - 1];
|
|
18060
|
-
chartJSON.yMinRight = secondaryYAxisLabelArray[0];
|
|
18061
18053
|
yScaleRight = linear$1().domain([
|
|
18062
18054
|
chartJSON.yMinRight >= 0 ? (secondaryCustomYaxisMinValue || secondaryCustomYaxisMinValue == 0) && !Number.isNaN(secondaryCustomYaxisMinValue) ? secondaryCustomYaxisMinValue : 0 : (secondaryCustomYaxisMinValue || secondaryCustomYaxisMinValue == 0) && !Number.isNaN(secondaryCustomYaxisMinValue) ? secondaryCustomYaxisMinValue : chartJSON.yMinRight * 1.1,
|
|
18063
18055
|
chartJSON.yMaxRight <= 0 ? (secondaryCustomYaxisMaxValue || secondaryCustomYaxisMaxValue == 0) && !Number.isNaN(secondaryCustomYaxisMaxValue) ? secondaryCustomYaxisMaxValue : 0 : (secondaryCustomYaxisMaxValue || secondaryCustomYaxisMaxValue == 0) && !Number.isNaN(secondaryCustomYaxisMaxValue) ? secondaryCustomYaxisMaxValue : chartJSON.yMaxRight * 1.1
|
|
@@ -55489,7 +55481,7 @@ const WaterfallChart = ({
|
|
|
55489
55481
|
};
|
|
55490
55482
|
const toNumber = (v) => v === null || v === void 0 || v === "" ? 0 : Number(v);
|
|
55491
55483
|
const mapAdvancedWaterfallData = (rawData) => {
|
|
55492
|
-
const tempRawDataForAAWaterfallChart = rawData[0]
|
|
55484
|
+
const tempRawDataForAAWaterfallChart = rawData[0]?.Column1 == "" ? rawData.filter((d) => d.Column1 && d.Column1 !== "*") : isAdvancedAnalyticsWaterFall ? rawData.Data : rawData;
|
|
55493
55485
|
return tempRawDataForAAWaterfallChart.map((d) => ({
|
|
55494
55486
|
xKey: d.Column1 || (d.Dimension || d.Legend),
|
|
55495
55487
|
base: toNumber(d.Column3 || d.Total),
|
|
@@ -12288,14 +12288,14 @@
|
|
|
12288
12288
|
}
|
|
12289
12289
|
} else {
|
|
12290
12290
|
let labelWidthPx = calculateWidthHeightDynamically(
|
|
12291
|
-
|
|
12291
|
+
secondaryYmax.toString(),
|
|
12292
12292
|
formatOptions.secondaryYAxisLabel.secondaryYAxisLabelFontSize,
|
|
12293
12293
|
formatOptions.secondaryYAxisLabel.secondaryYAxisLabelFontFamily,
|
|
12294
12294
|
0
|
|
12295
12295
|
);
|
|
12296
12296
|
secondaryYAxisLabelArray = getLabelsFromAlgo(
|
|
12297
|
-
|
|
12298
|
-
|
|
12297
|
+
secondaryYmin,
|
|
12298
|
+
secondaryYmax,
|
|
12299
12299
|
innerHeight2,
|
|
12300
12300
|
labelWidthPx[0]
|
|
12301
12301
|
);
|
|
@@ -18053,14 +18053,6 @@
|
|
|
18053
18053
|
]);
|
|
18054
18054
|
}
|
|
18055
18055
|
if (isSecondaryAxisDrawn) {
|
|
18056
|
-
let secondaryYAxisLabelArray = responsiveSecondaryYaxisLabel(
|
|
18057
|
-
secondaryCustomYaxisMaxValue ? secondaryCustomYaxisMaxValue : chartJSON.yMaxRight,
|
|
18058
|
-
secondaryCustomYaxisMinValue ? secondaryCustomYaxisMinValue : chartJSON.yMinRight,
|
|
18059
|
-
formatOptions,
|
|
18060
|
-
innerHeight2
|
|
18061
|
-
).secondaryYAxisLabelArray;
|
|
18062
|
-
chartJSON.yMaxRight = secondaryYAxisLabelArray[secondaryYAxisLabelArray.length - 1];
|
|
18063
|
-
chartJSON.yMinRight = secondaryYAxisLabelArray[0];
|
|
18064
18056
|
yScaleRight = linear$1().domain([
|
|
18065
18057
|
chartJSON.yMinRight >= 0 ? (secondaryCustomYaxisMinValue || secondaryCustomYaxisMinValue == 0) && !Number.isNaN(secondaryCustomYaxisMinValue) ? secondaryCustomYaxisMinValue : 0 : (secondaryCustomYaxisMinValue || secondaryCustomYaxisMinValue == 0) && !Number.isNaN(secondaryCustomYaxisMinValue) ? secondaryCustomYaxisMinValue : chartJSON.yMinRight * 1.1,
|
|
18066
18058
|
chartJSON.yMaxRight <= 0 ? (secondaryCustomYaxisMaxValue || secondaryCustomYaxisMaxValue == 0) && !Number.isNaN(secondaryCustomYaxisMaxValue) ? secondaryCustomYaxisMaxValue : 0 : (secondaryCustomYaxisMaxValue || secondaryCustomYaxisMaxValue == 0) && !Number.isNaN(secondaryCustomYaxisMaxValue) ? secondaryCustomYaxisMaxValue : chartJSON.yMaxRight * 1.1
|
|
@@ -55492,7 +55484,7 @@
|
|
|
55492
55484
|
};
|
|
55493
55485
|
const toNumber = (v) => v === null || v === void 0 || v === "" ? 0 : Number(v);
|
|
55494
55486
|
const mapAdvancedWaterfallData = (rawData) => {
|
|
55495
|
-
const tempRawDataForAAWaterfallChart = rawData[0]
|
|
55487
|
+
const tempRawDataForAAWaterfallChart = rawData[0]?.Column1 == "" ? rawData.filter((d) => d.Column1 && d.Column1 !== "*") : isAdvancedAnalyticsWaterFall ? rawData.Data : rawData;
|
|
55496
55488
|
return tempRawDataForAAWaterfallChart.map((d) => ({
|
|
55497
55489
|
xKey: d.Column1 || (d.Dimension || d.Legend),
|
|
55498
55490
|
base: toNumber(d.Column3 || d.Total),
|