pace-chart-lib 1.0.26 → 1.0.27
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/Components/Charts/Core/Common.types.d.ts +7 -0
- package/dist/pace-chart-lib.es.js +157 -161
- package/dist/pace-chart-lib.umd.js +157 -161
- package/package.json +1 -1
|
@@ -10862,6 +10862,14 @@ var tornadoEntryName = /* @__PURE__ */ ((tornadoEntryName2) => {
|
|
|
10862
10862
|
tornadoEntryName2["default"] = "defaultEntry";
|
|
10863
10863
|
return tornadoEntryName2;
|
|
10864
10864
|
})(tornadoEntryName || {});
|
|
10865
|
+
var waterfallKeys = /* @__PURE__ */ ((waterfallKeys2) => {
|
|
10866
|
+
waterfallKeys2["total"] = "Total";
|
|
10867
|
+
waterfallKeys2["base"] = "base";
|
|
10868
|
+
waterfallKeys2["dimensionTotal"] = "dimensionTotal";
|
|
10869
|
+
waterfallKeys2["up"] = "up";
|
|
10870
|
+
waterfallKeys2["down"] = "down";
|
|
10871
|
+
return waterfallKeys2;
|
|
10872
|
+
})(waterfallKeys || {});
|
|
10865
10873
|
const defaultChartFormatOptions = {
|
|
10866
10874
|
chartDescription: {
|
|
10867
10875
|
chartDescriptionVisibility: false,
|
|
@@ -12094,21 +12102,45 @@ function getNumberWithFormat(measureValue, displayUnits, numberFormat, decimalPr
|
|
|
12094
12102
|
return format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12095
12103
|
case staticNumberUnits.currency_USD:
|
|
12096
12104
|
formatter = `,.${decimalValues}f`;
|
|
12105
|
+
if (measureValue < 0) {
|
|
12106
|
+
const number2 = Math.abs(measureValue);
|
|
12107
|
+
return "-$" + format(formatter)(number2) + displayUnitsPostFix;
|
|
12108
|
+
}
|
|
12097
12109
|
return "$" + format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12098
12110
|
case staticNumberUnits.currency_CAD:
|
|
12099
12111
|
formatter = `,.${decimalValues}f`;
|
|
12112
|
+
if (measureValue < 0) {
|
|
12113
|
+
const number2 = Math.abs(measureValue);
|
|
12114
|
+
return "-$" + format(formatter)(number2) + displayUnitsPostFix;
|
|
12115
|
+
}
|
|
12100
12116
|
return "C$" + format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12101
12117
|
case staticNumberUnits.currency_EUR:
|
|
12102
12118
|
formatter = `,.${decimalValues}f`;
|
|
12119
|
+
if (measureValue < 0) {
|
|
12120
|
+
const number2 = Math.abs(measureValue);
|
|
12121
|
+
return "-$" + format(formatter)(number2) + displayUnitsPostFix;
|
|
12122
|
+
}
|
|
12103
12123
|
return "€" + format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12104
12124
|
case staticNumberUnits.currency_CHF:
|
|
12105
12125
|
formatter = `,.${decimalValues}f`;
|
|
12126
|
+
if (measureValue < 0) {
|
|
12127
|
+
const number2 = Math.abs(measureValue);
|
|
12128
|
+
return "-$" + format(formatter)(number2) + displayUnitsPostFix;
|
|
12129
|
+
}
|
|
12106
12130
|
return "CHF" + format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12107
12131
|
case staticNumberUnits.currency_UK:
|
|
12108
12132
|
formatter = `,.${decimalValues}f`;
|
|
12133
|
+
if (measureValue < 0) {
|
|
12134
|
+
const number2 = Math.abs(measureValue);
|
|
12135
|
+
return "-$" + format(formatter)(number2) + displayUnitsPostFix;
|
|
12136
|
+
}
|
|
12109
12137
|
return "£" + format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12110
12138
|
case staticNumberUnits.currency_INR:
|
|
12111
12139
|
formatter = `,.${decimalValues}f`;
|
|
12140
|
+
if (measureValue < 0) {
|
|
12141
|
+
const number2 = Math.abs(measureValue);
|
|
12142
|
+
return "-$" + format(formatter)(number2) + displayUnitsPostFix;
|
|
12143
|
+
}
|
|
12112
12144
|
return "₹" + format(formatter)(measureValue) + displayUnitsPostFix;
|
|
12113
12145
|
case staticNumberUnits.commaSeparated:
|
|
12114
12146
|
formatter = `,.${decimalValues}f`;
|
|
@@ -12287,10 +12319,9 @@ function isVerticallyOverlapping(obj1, obj2) {
|
|
|
12287
12319
|
}
|
|
12288
12320
|
function responsiveYaxisLabel$1(Ymax, Ymin, innerHeight2, formatOptions, chartJSON, customYaxisMinValue, customYaxisMaxValue, barChart, innerWidth2) {
|
|
12289
12321
|
try {
|
|
12322
|
+
let yAxisIntervalsVisibility = formatOptions.yAxisLabel.yAxisIntervalsVisibility;
|
|
12290
12323
|
let autoLabelFlag = false;
|
|
12291
|
-
let customYaxisIntervalValue = parseFloat(
|
|
12292
|
-
formatOptions.yAxisLabel.yAxisIntervalText
|
|
12293
|
-
);
|
|
12324
|
+
let customYaxisIntervalValue = yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisIntervalText) : void 0;
|
|
12294
12325
|
let yAxisLabelArray = [];
|
|
12295
12326
|
let customTickValue;
|
|
12296
12327
|
const isTornadoChart = chartJSON.chartType === chartTypes.TornadoChart;
|
|
@@ -12839,6 +12870,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12839
12870
|
const isTornadoChart = chartType === chartTypes.TornadoChart;
|
|
12840
12871
|
let annotationType = formatOptions.annotation.annotationType ?? "1";
|
|
12841
12872
|
let annotationPosition = formatOptions.annotation.annotationPosition.toString() != "4" ? formatOptions.annotation.annotationPosition : null;
|
|
12873
|
+
let dataLabelColor = formatOptions?.annotation?.annotationSetLabelColor == "2" ? "color" : "labelColor";
|
|
12842
12874
|
if (formatOptions.annotation.annotationVisibility) {
|
|
12843
12875
|
let Disable = [annotationType == "1" ? "connector" : ""];
|
|
12844
12876
|
let labelData = [];
|
|
@@ -12872,7 +12904,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12872
12904
|
Measure: d.data[0].value,
|
|
12873
12905
|
Legend: d.data[0].legend,
|
|
12874
12906
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12875
|
-
Labelcolor: d.properties
|
|
12907
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12876
12908
|
Axis: d.properties.axis
|
|
12877
12909
|
});
|
|
12878
12910
|
}
|
|
@@ -12887,7 +12919,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12887
12919
|
Measure: d.data[d.data.length - 1].value,
|
|
12888
12920
|
Legend: d.data[d.data.length - 1].legend,
|
|
12889
12921
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12890
|
-
Labelcolor: d.properties
|
|
12922
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12891
12923
|
Axis: d.properties.axis
|
|
12892
12924
|
});
|
|
12893
12925
|
}
|
|
@@ -12903,7 +12935,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12903
12935
|
Measure: d.data[0].value,
|
|
12904
12936
|
Legend: d.data[0].legend,
|
|
12905
12937
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12906
|
-
Labelcolor: d.properties
|
|
12938
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12907
12939
|
Axis: d.properties.axis
|
|
12908
12940
|
});
|
|
12909
12941
|
}
|
|
@@ -12916,7 +12948,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12916
12948
|
Measure: d.data[d.data.length - 1].value,
|
|
12917
12949
|
Legend: d.data[d.data.length - 1].legend,
|
|
12918
12950
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12919
|
-
Labelcolor: d.properties
|
|
12951
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12920
12952
|
Axis: d.properties.axis
|
|
12921
12953
|
});
|
|
12922
12954
|
}
|
|
@@ -12932,7 +12964,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12932
12964
|
Measure: d.data[i].value,
|
|
12933
12965
|
Legend: d.data[i].legend,
|
|
12934
12966
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12935
|
-
Labelcolor: d.properties
|
|
12967
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12936
12968
|
Axis: d.properties.axis
|
|
12937
12969
|
});
|
|
12938
12970
|
}
|
|
@@ -12954,7 +12986,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12954
12986
|
Measure: d.data[i].value,
|
|
12955
12987
|
Legend: d.data[i].legend,
|
|
12956
12988
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12957
|
-
Labelcolor: d.properties
|
|
12989
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12958
12990
|
Axis: d.properties.axis
|
|
12959
12991
|
});
|
|
12960
12992
|
}
|
|
@@ -12969,7 +13001,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12969
13001
|
Measure: d.data[0].value,
|
|
12970
13002
|
Legend: d.data[0].legend,
|
|
12971
13003
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12972
|
-
Labelcolor: d.properties
|
|
13004
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12973
13005
|
Axis: d.properties.axis
|
|
12974
13006
|
});
|
|
12975
13007
|
break;
|
|
@@ -12980,7 +13012,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12980
13012
|
Measure: d.data[d.data.length - 1].value,
|
|
12981
13013
|
Legend: d.data[d.data.length - 1].legend,
|
|
12982
13014
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12983
|
-
Labelcolor: d.properties
|
|
13015
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12984
13016
|
Axis: d.properties.axis
|
|
12985
13017
|
});
|
|
12986
13018
|
break;
|
|
@@ -12991,7 +13023,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
12991
13023
|
Measure: d.data[0].value,
|
|
12992
13024
|
Legend: d.data[0].legend,
|
|
12993
13025
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
12994
|
-
Labelcolor: d.properties
|
|
13026
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
12995
13027
|
Axis: d.properties.axis
|
|
12996
13028
|
});
|
|
12997
13029
|
if (d.data[d.data.length - 1])
|
|
@@ -13000,7 +13032,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
|
|
|
13000
13032
|
Measure: d.data[d.data.length - 1].value,
|
|
13001
13033
|
Legend: d.data[d.data.length - 1].legend,
|
|
13002
13034
|
LabelPosition: annotationPosition ? annotationPosition : d.properties.annotationPosition,
|
|
13003
|
-
Labelcolor: d.properties
|
|
13035
|
+
Labelcolor: d.properties[dataLabelColor],
|
|
13004
13036
|
Axis: d.properties.axis
|
|
13005
13037
|
});
|
|
13006
13038
|
break;
|
|
@@ -15463,7 +15495,7 @@ function lineMarkers(lines, chartData, type, xScale, yScale, yScaleRight, toolti
|
|
|
15463
15495
|
return Symbol$1().type(Markershapes(d.markerShape)).size(d.markerSize * 50)();
|
|
15464
15496
|
}).attr("visibility", (d) => {
|
|
15465
15497
|
const hideByX = !xScale(d.dimension) && xScale(d.dimension) !== 0;
|
|
15466
|
-
const visible = formatOptions.marker.markerVisibility ? checkVisibleConditions(chartData, d, type, hideZeroValues,
|
|
15498
|
+
const visible = formatOptions.marker.markerVisibility ? checkVisibleConditions(chartData, d, type, hideZeroValues, yScaleRight, customYaxisMinValue, customYaxisMaxValue) ? visibilityCondition.hidden : [chartTypes.NormalizedStackLineChart, chartTypes.CombinationLine, chartTypes.CombinationArea].includes(type) ? formatOptions.plotArea.plotAreaHideLineAndMarkers ? visibilityCondition.visible : visibilityCondition.hidden : [chartTypes.StackAreaChart, chartTypes.AreaChart, chartTypes.CombinationStackArea].includes(type) ? formatOptions.plotArea.plotAreaHideLineAndMarkers ? visibilityCondition.visible : visibilityCondition.hidden : visibilityCondition.visible : [chartTypes.CombinationLine, chartTypes.CombinationArea].includes(type) ? visibilityCondition.visible : ["Area"].includes(type) ? formatOptions.plotArea.plotAreaHideLineAndMarkers ? visibilityCondition.visible : visibilityCondition.hidden : visibilityCondition.hidden;
|
|
15467
15499
|
return hideByX ? visibilityCondition.hidden : visible;
|
|
15468
15500
|
}).attr("transform", (d) => {
|
|
15469
15501
|
let requiredYScale = d.axis == axisTypes.primary ? yScale : yScaleRight;
|
|
@@ -15532,10 +15564,10 @@ function lineMarkers(lines, chartData, type, xScale, yScale, yScaleRight, toolti
|
|
|
15532
15564
|
logError$2(fileName$b, "lineMarkers", error);
|
|
15533
15565
|
}
|
|
15534
15566
|
}
|
|
15535
|
-
const checkVisibleConditions = (chartData, d, type, hideZeroValues,
|
|
15567
|
+
const checkVisibleConditions = (chartData, d, type, hideZeroValues, yScaleRight, customYaxisMinValue, customYaxisMaxValue) => {
|
|
15536
15568
|
try {
|
|
15537
15569
|
if (chartData[0].properties.axis && chartData[0].properties.axis === "Secondary") {
|
|
15538
|
-
return hideZeroValues && d.value == 0 || d.value >
|
|
15570
|
+
return hideZeroValues && d.value == 0 || d.value > yScaleRight.domain()[1] || d.value < yScaleRight.domain()[0];
|
|
15539
15571
|
} else if (type.includes("Stack")) {
|
|
15540
15572
|
return d.value > 0 ? hideZeroValues && d[1] == 0 || d[1] < customYaxisMinValue || d[1] > customYaxisMaxValue : hideZeroValues && d[0] == 0 || d[0] < customYaxisMinValue || d[0] > customYaxisMaxValue;
|
|
15541
15573
|
} else return hideZeroValues && d.value == 0 || d.value < customYaxisMinValue || d.value > customYaxisMaxValue;
|
|
@@ -16477,14 +16509,14 @@ const ColumnChart = ({
|
|
|
16477
16509
|
const barChart = false;
|
|
16478
16510
|
let isSecondaryAxisDrawn = false;
|
|
16479
16511
|
const isNormalizedChart = false;
|
|
16480
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
16481
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
16482
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
16512
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
16513
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
16514
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
16483
16515
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
16484
|
-
);
|
|
16485
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
16516
|
+
) : void 0;
|
|
16517
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
16486
16518
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
16487
|
-
);
|
|
16519
|
+
) : void 0;
|
|
16488
16520
|
let margin;
|
|
16489
16521
|
let yLabel;
|
|
16490
16522
|
let xLabel;
|
|
@@ -17049,14 +17081,14 @@ const CustomColumnChart = ({
|
|
|
17049
17081
|
const barChart = false;
|
|
17050
17082
|
let isSecondaryAxisDrawn = false;
|
|
17051
17083
|
const isNormalizedChart = false;
|
|
17052
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
17053
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
17054
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
17084
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
17085
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
17086
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
17055
17087
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
17056
|
-
);
|
|
17057
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
17088
|
+
) : void 0;
|
|
17089
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
17058
17090
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
17059
|
-
);
|
|
17091
|
+
) : void 0;
|
|
17060
17092
|
let margin;
|
|
17061
17093
|
let yLabel;
|
|
17062
17094
|
let xLabel;
|
|
@@ -17316,7 +17348,7 @@ const CustomColumnChart = ({
|
|
|
17316
17348
|
...point2,
|
|
17317
17349
|
type: series.properties.type,
|
|
17318
17350
|
axis: series.properties.axis,
|
|
17319
|
-
labelPosition: series.properties.dataLabelPosition,
|
|
17351
|
+
labelPosition: formatOptions?.annotation?.annotationPosition.toString() === "4" ? series.properties.dataLabelPosition.toString() : formatOptions?.annotation?.annotationPosition.toString(),
|
|
17320
17352
|
labelColor: series.properties.labelColor
|
|
17321
17353
|
};
|
|
17322
17354
|
if (newPoint.axis === "Secondary") {
|
|
@@ -17460,6 +17492,14 @@ const CustomColumnChart = ({
|
|
|
17460
17492
|
]);
|
|
17461
17493
|
}
|
|
17462
17494
|
if (isSecondaryAxisDrawn) {
|
|
17495
|
+
let secondaryYAxisLabelArray = responsiveSecondaryYaxisLabel(
|
|
17496
|
+
secondaryCustomYaxisMaxValue ? secondaryCustomYaxisMaxValue : chartJSON.yMaxRight,
|
|
17497
|
+
secondaryCustomYaxisMinValue ? secondaryCustomYaxisMinValue : chartJSON.yMinRight,
|
|
17498
|
+
formatOptions,
|
|
17499
|
+
chartJSON
|
|
17500
|
+
).secondaryYAxisLabelArray;
|
|
17501
|
+
chartJSON.yMaxRight = secondaryYAxisLabelArray[secondaryYAxisLabelArray.length - 1];
|
|
17502
|
+
chartJSON.yMinRight = secondaryYAxisLabelArray[0];
|
|
17463
17503
|
yScaleRight = linear$1().domain([
|
|
17464
17504
|
chartJSON.yMinRight >= 0 ? (secondaryCustomYaxisMinValue || secondaryCustomYaxisMinValue == 0) && !Number.isNaN(secondaryCustomYaxisMinValue) ? secondaryCustomYaxisMinValue : 0 : (secondaryCustomYaxisMinValue || secondaryCustomYaxisMinValue == 0) && !Number.isNaN(secondaryCustomYaxisMinValue) ? secondaryCustomYaxisMinValue : chartJSON.yMinRight * 1.1,
|
|
17465
17505
|
chartJSON.yMaxRight <= 0 ? (secondaryCustomYaxisMaxValue || secondaryCustomYaxisMaxValue == 0) && !Number.isNaN(secondaryCustomYaxisMaxValue) ? secondaryCustomYaxisMaxValue : 0 : (secondaryCustomYaxisMaxValue || secondaryCustomYaxisMaxValue == 0) && !Number.isNaN(secondaryCustomYaxisMaxValue) ? secondaryCustomYaxisMaxValue : chartJSON.yMaxRight * 1.1
|
|
@@ -17569,7 +17609,7 @@ const CustomColumnChart = ({
|
|
|
17569
17609
|
let columnGroups = column.selectAll(".column-group").data(data2.data, (d) => d.legend + d.dimension);
|
|
17570
17610
|
let columnGroupsEnter = columnGroups.enter().append("g").attr("class", "column-group").attr(
|
|
17571
17611
|
"hoverId",
|
|
17572
|
-
(d) =>
|
|
17612
|
+
(d) => (data2.properties.alias || data2.properties.name).includes("-") ? (data2.properties.alias || data2.properties.name).replace("-", "`").split("`")[1].replace(/ /g, "-") : (data2.properties.alias || data2.properties.name).replace(/ /g, "-")
|
|
17573
17613
|
).attr("transform", (d) => `translate(${xScale(d.dimension)}, 0)`);
|
|
17574
17614
|
columnGroupsEnter.merge(columnGroups).attr(
|
|
17575
17615
|
"transform",
|
|
@@ -17983,7 +18023,7 @@ const CustomColumnChart = ({
|
|
|
17983
18023
|
stackData["individualAnnotationVisibility"] = JSON.parse(
|
|
17984
18024
|
JSON.stringify(requiredStackChatData.data[j].properties.annotation)
|
|
17985
18025
|
);
|
|
17986
|
-
d.data.labelPosition = requiredStackChatData.data[j].properties.dataLabelPosition;
|
|
18026
|
+
d.data.labelPosition = formatOptions?.annotation?.annotationPosition.toString() === "4" ? requiredStackChatData.data[j].properties.dataLabelPosition.toString() : formatOptions?.annotation?.annotationPosition.toString();
|
|
17987
18027
|
d.data["labelColor"] = seriesColor == "2" ? JSON.parse(
|
|
17988
18028
|
JSON.stringify(requiredStackChatData.data[j].properties.color)
|
|
17989
18029
|
) : JSON.parse(
|
|
@@ -18060,14 +18100,14 @@ const LayeredColumnChart = ({
|
|
|
18060
18100
|
const barChart = false;
|
|
18061
18101
|
const isSecondaryAxisDrawn = false;
|
|
18062
18102
|
const isNormalizedChart = false;
|
|
18063
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
18064
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
18065
|
-
parseFloat(
|
|
18103
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
18104
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
18105
|
+
formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
18066
18106
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
18067
|
-
);
|
|
18068
|
-
parseFloat(
|
|
18107
|
+
) : void 0;
|
|
18108
|
+
formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
18069
18109
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
18070
|
-
);
|
|
18110
|
+
) : void 0;
|
|
18071
18111
|
let margin;
|
|
18072
18112
|
let yLabel;
|
|
18073
18113
|
let xLabel;
|
|
@@ -18578,14 +18618,14 @@ const StackColumnChart = ({
|
|
|
18578
18618
|
const seriesData = (generalizedChartData(data.ChartData, data.DimensionList) || []).reverse();
|
|
18579
18619
|
const barChart = false;
|
|
18580
18620
|
const isSecondaryAxisDrawn = false;
|
|
18581
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
18582
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
18583
|
-
parseFloat(
|
|
18621
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
18622
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
18623
|
+
formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
18584
18624
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
18585
|
-
);
|
|
18586
|
-
parseFloat(
|
|
18625
|
+
) : void 0;
|
|
18626
|
+
formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
18587
18627
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
18588
|
-
);
|
|
18628
|
+
) : void 0;
|
|
18589
18629
|
let margin;
|
|
18590
18630
|
let yLabel;
|
|
18591
18631
|
let xLabel;
|
|
@@ -19296,14 +19336,8 @@ const NormalizedStackColumnChart = ({
|
|
|
19296
19336
|
const dimensionList = data.DimensionList;
|
|
19297
19337
|
const barChart = false;
|
|
19298
19338
|
const isSecondaryAxisDrawn = false;
|
|
19299
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
19300
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
19301
|
-
parseFloat(
|
|
19302
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
19303
|
-
);
|
|
19304
|
-
parseFloat(
|
|
19305
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
19306
|
-
);
|
|
19339
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
19340
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
19307
19341
|
let margin;
|
|
19308
19342
|
let yLabel;
|
|
19309
19343
|
let xLabel;
|
|
@@ -20323,16 +20357,10 @@ const ColumnHistogramChart = ({
|
|
|
20323
20357
|
const barChart = false;
|
|
20324
20358
|
const isSecondaryAxisDrawn = false;
|
|
20325
20359
|
const isNormalizedChart = false;
|
|
20326
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
20327
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
20328
|
-
let customXaxisMinValue = parseFloat(formatOptions.xAxisLabel.xAxisMinText);
|
|
20329
|
-
let customXaxisMaxValue = parseFloat(formatOptions.xAxisLabel.xAxisMaxText);
|
|
20330
|
-
parseFloat(
|
|
20331
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
20332
|
-
);
|
|
20333
|
-
parseFloat(
|
|
20334
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
20335
|
-
);
|
|
20360
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
20361
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
20362
|
+
let customXaxisMinValue = formatOptions.xAxisLabel.xAxisIntervalsVisibility ? parseFloat(formatOptions.xAxisLabel.xAxisMinText) : void 0;
|
|
20363
|
+
let customXaxisMaxValue = formatOptions.xAxisLabel.xAxisIntervalsVisibility ? parseFloat(formatOptions.xAxisLabel.xAxisMaxText) : void 0;
|
|
20336
20364
|
let margin;
|
|
20337
20365
|
let yLabel;
|
|
20338
20366
|
let xLabel;
|
|
@@ -20840,14 +20868,14 @@ const LineChart = ({
|
|
|
20840
20868
|
const barChart = false;
|
|
20841
20869
|
let isSecondaryAxisDrawn = false;
|
|
20842
20870
|
const isNormalizedChart = false;
|
|
20843
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
20844
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
20845
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
20871
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
20872
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
20873
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
20846
20874
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
20847
|
-
);
|
|
20848
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
20875
|
+
) : void 0;
|
|
20876
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
20849
20877
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
20850
|
-
);
|
|
20878
|
+
) : void 0;
|
|
20851
20879
|
let margin;
|
|
20852
20880
|
let yLabel;
|
|
20853
20881
|
let xLabel;
|
|
@@ -21386,14 +21414,14 @@ const StackLineChart = ({
|
|
|
21386
21414
|
const barChart = false;
|
|
21387
21415
|
const totalValueMap = /* @__PURE__ */ new Map();
|
|
21388
21416
|
const isSecondaryAxisDrawn = false;
|
|
21389
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
21390
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
21391
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
21417
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
21418
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
21419
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
21392
21420
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
21393
|
-
);
|
|
21394
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
21421
|
+
) : void 0;
|
|
21422
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
21395
21423
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
21396
|
-
);
|
|
21424
|
+
) : void 0;
|
|
21397
21425
|
let margin;
|
|
21398
21426
|
let yLabel;
|
|
21399
21427
|
let xLabel;
|
|
@@ -21959,14 +21987,14 @@ const NormalisedStackLineChart = ({
|
|
|
21959
21987
|
const dimensionList = data.DimensionList;
|
|
21960
21988
|
const barChart = false;
|
|
21961
21989
|
const isSecondaryAxisDrawn = false;
|
|
21962
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
21963
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
21964
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
21990
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
21991
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
21992
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
21965
21993
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
21966
|
-
);
|
|
21967
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
21994
|
+
) : void 0;
|
|
21995
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
21968
21996
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
21969
|
-
);
|
|
21997
|
+
) : void 0;
|
|
21970
21998
|
let margin;
|
|
21971
21999
|
let yLabel;
|
|
21972
22000
|
let xLabel;
|
|
@@ -22476,14 +22504,14 @@ const HorizontalBarChart = ({
|
|
|
22476
22504
|
const barChart = true;
|
|
22477
22505
|
let isSecondaryAxisDrawn = false;
|
|
22478
22506
|
const isNormalizedChart = false;
|
|
22479
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
22480
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
22481
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
22507
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
22508
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
22509
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
22482
22510
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
22483
|
-
);
|
|
22484
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
22511
|
+
) : void 0;
|
|
22512
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
22485
22513
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
22486
|
-
);
|
|
22514
|
+
) : void 0;
|
|
22487
22515
|
let margin;
|
|
22488
22516
|
let yLabel;
|
|
22489
22517
|
let xLabel;
|
|
@@ -22823,7 +22851,10 @@ const HorizontalBarChart = ({
|
|
|
22823
22851
|
lineData.forEach((data2) => {
|
|
22824
22852
|
let column = gTag.selectAll(".parentGroup").data([data2], (d) => d.legend);
|
|
22825
22853
|
column = column.enter().append("g").attr("class", "column parentGroup").merge(column);
|
|
22826
|
-
let columnGroups = column.selectAll(".column-group").data(
|
|
22854
|
+
let columnGroups = column.selectAll(".column-group").data(
|
|
22855
|
+
data2.data.map((d) => ({ ...d, properties: data2.properties })),
|
|
22856
|
+
(d) => d.legend + d.dimension
|
|
22857
|
+
);
|
|
22827
22858
|
let columnGroupsEnter = columnGroups.enter().append("g").attr("class", "column-group").attr(
|
|
22828
22859
|
"hoverId",
|
|
22829
22860
|
(data2.properties.alias || data2.properties.name || "Legend").replace(
|
|
@@ -22893,7 +22924,7 @@ const HorizontalBarChart = ({
|
|
|
22893
22924
|
},
|
|
22894
22925
|
{
|
|
22895
22926
|
key: "Legend",
|
|
22896
|
-
value: d.
|
|
22927
|
+
value: d.properties.alias
|
|
22897
22928
|
}
|
|
22898
22929
|
],
|
|
22899
22930
|
formatOptions,
|
|
@@ -22997,14 +23028,8 @@ const StackHorizontalChart = ({
|
|
|
22997
23028
|
const dimensionList = data.DimensionList;
|
|
22998
23029
|
const barChart = true;
|
|
22999
23030
|
const isSecondaryAxisDrawn = false;
|
|
23000
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
23001
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
23002
|
-
parseFloat(
|
|
23003
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
23004
|
-
);
|
|
23005
|
-
parseFloat(
|
|
23006
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
23007
|
-
);
|
|
23031
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
23032
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
23008
23033
|
let margin;
|
|
23009
23034
|
let yLabel;
|
|
23010
23035
|
let xLabel;
|
|
@@ -23706,14 +23731,8 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
23706
23731
|
const dimensionList = data.DimensionList;
|
|
23707
23732
|
const barChart = true;
|
|
23708
23733
|
const isSecondaryAxisDrawn = false;
|
|
23709
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
23710
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
23711
|
-
parseFloat(
|
|
23712
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
23713
|
-
);
|
|
23714
|
-
parseFloat(
|
|
23715
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
23716
|
-
);
|
|
23734
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
23735
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
23717
23736
|
let margin;
|
|
23718
23737
|
let yLabel;
|
|
23719
23738
|
let xLabel;
|
|
@@ -24175,14 +24194,8 @@ const LayeredHorizontalBarChart = ({
|
|
|
24175
24194
|
const dimensionList = data.DimensionList;
|
|
24176
24195
|
const barChart = true;
|
|
24177
24196
|
const isSecondaryAxisDrawn = false;
|
|
24178
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
24179
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
24180
|
-
parseFloat(
|
|
24181
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
24182
|
-
);
|
|
24183
|
-
parseFloat(
|
|
24184
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
24185
|
-
);
|
|
24197
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
24198
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
24186
24199
|
let margin;
|
|
24187
24200
|
let yLabel;
|
|
24188
24201
|
let xLabel;
|
|
@@ -24859,16 +24872,10 @@ const HorizontalHistogramChart = ({
|
|
|
24859
24872
|
const barChart = false;
|
|
24860
24873
|
const isSecondaryAxisDrawn = false;
|
|
24861
24874
|
const isNormalizedChart = false;
|
|
24862
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
24863
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
24864
|
-
let customXaxisMinValue = parseFloat(formatOptions.xAxisLabel.xAxisMinText);
|
|
24865
|
-
let customXaxisMaxValue = parseFloat(formatOptions.xAxisLabel.xAxisMaxText);
|
|
24866
|
-
parseFloat(
|
|
24867
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
24868
|
-
);
|
|
24869
|
-
parseFloat(
|
|
24870
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
24871
|
-
);
|
|
24875
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
24876
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
24877
|
+
let customXaxisMinValue = formatOptions.xAxisLabel.xAxisIntervalsVisibility ? parseFloat(formatOptions.xAxisLabel.xAxisMinText) : void 0;
|
|
24878
|
+
let customXaxisMaxValue = formatOptions.xAxisLabel.xAxisIntervalsVisibility ? parseFloat(formatOptions.xAxisLabel.xAxisMaxText) : void 0;
|
|
24872
24879
|
let margin;
|
|
24873
24880
|
let yLabel;
|
|
24874
24881
|
let xLabel;
|
|
@@ -25378,14 +25385,14 @@ const AreaChart = ({
|
|
|
25378
25385
|
const barChart = false;
|
|
25379
25386
|
const isSecondaryAxisDrawn = false;
|
|
25380
25387
|
const isNormalizedChart = false;
|
|
25381
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
25382
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
25383
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
25388
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
25389
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
25390
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
25384
25391
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
25385
|
-
);
|
|
25386
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
25392
|
+
) : void 0;
|
|
25393
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
25387
25394
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
25388
|
-
);
|
|
25395
|
+
) : void 0;
|
|
25389
25396
|
let margin;
|
|
25390
25397
|
let yLabel;
|
|
25391
25398
|
let xLabel;
|
|
@@ -25905,14 +25912,14 @@ const StackAreaChart = ({
|
|
|
25905
25912
|
const dimensionList = data.DimensionList;
|
|
25906
25913
|
const barChart = false;
|
|
25907
25914
|
const isSecondaryAxisDrawn = false;
|
|
25908
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
25909
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
25910
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
25915
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
25916
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
25917
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
25911
25918
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
25912
|
-
);
|
|
25913
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
25919
|
+
) : void 0;
|
|
25920
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
25914
25921
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
25915
|
-
);
|
|
25922
|
+
) : void 0;
|
|
25916
25923
|
let margin;
|
|
25917
25924
|
let yLabel;
|
|
25918
25925
|
let xLabel;
|
|
@@ -26495,14 +26502,14 @@ const NormalizedStackAreaChart = ({
|
|
|
26495
26502
|
const dimensionList = data.DimensionList;
|
|
26496
26503
|
const barChart = false;
|
|
26497
26504
|
const isSecondaryAxisDrawn = false;
|
|
26498
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
26499
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
26500
|
-
let secondaryCustomYaxisMinValue = parseFloat(
|
|
26505
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
26506
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
26507
|
+
let secondaryCustomYaxisMinValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
26501
26508
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
26502
|
-
);
|
|
26503
|
-
let secondaryCustomYaxisMaxValue = parseFloat(
|
|
26509
|
+
) : void 0;
|
|
26510
|
+
let secondaryCustomYaxisMaxValue = formatOptions.secondaryYAxisLabel.secondaryYAxisIntervalsVisibility ? parseFloat(
|
|
26504
26511
|
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
26505
|
-
);
|
|
26512
|
+
) : void 0;
|
|
26506
26513
|
let margin;
|
|
26507
26514
|
let yLabel;
|
|
26508
26515
|
let xLabel;
|
|
@@ -27241,7 +27248,7 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
27241
27248
|
try {
|
|
27242
27249
|
const arc2 = arc$1().innerRadius(0).outerRadius(radius);
|
|
27243
27250
|
const arcOver = arc$1().innerRadius(0).outerRadius(radius + 10);
|
|
27244
|
-
chartAreaTagG.append("g").attr("class", "parentGroup").attr("fill-opacity", chartFormatOptions.plotArea.opacity).attr("transform", `${getPiePosition()}`).selectAll("path").data(pieChartData).enter().append("path").attr("class", (d) => "path
|
|
27251
|
+
chartAreaTagG.append("g").attr("class", "parentGroup").attr("fill-opacity", chartFormatOptions.plotArea.opacity).attr("transform", `${getPiePosition()}`).selectAll("path").data(pieChartData).enter().append("path").attr("class", (d) => "path").attr(
|
|
27245
27252
|
"hoverId",
|
|
27246
27253
|
(d) => (d.data?.properties?.alias || d.data?.properties?.name || "Legend").replace(/\s+/g, "-")
|
|
27247
27254
|
).attr(
|
|
@@ -27635,7 +27642,7 @@ const DonutChart = ({
|
|
|
27635
27642
|
const arc2 = arc$1().innerRadius(innerRadius).outerRadius(radius);
|
|
27636
27643
|
const arcOver = arc$1().innerRadius(innerRadius).outerRadius(radius + 10);
|
|
27637
27644
|
const parentGroup = chartAreaTagG.append("g").attr("class", "parentGroup").attr("fill-opacity", chartFormatOptions.plotArea.opacity).attr("transform", `${getPiePosition()}`);
|
|
27638
|
-
const paths = parentGroup.selectAll("path").data(pieChartData).enter().append("path").attr("class", (d) => "path
|
|
27645
|
+
const paths = parentGroup.selectAll("path").data(pieChartData).enter().append("path").attr("class", (d) => "path").attr(
|
|
27639
27646
|
"hoverId",
|
|
27640
27647
|
(d) => (d.data?.properties?.alias || d.data?.properties?.name || "Legend").replace(/\s+/g, "-")
|
|
27641
27648
|
).attr(
|
|
@@ -53944,14 +53951,8 @@ const WaterfallChart = ({
|
|
|
53944
53951
|
const barChart = false;
|
|
53945
53952
|
const isSecondaryAxisDrawn = false;
|
|
53946
53953
|
const isNormalizedChart = false;
|
|
53947
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
53948
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
53949
|
-
parseFloat(
|
|
53950
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
53951
|
-
);
|
|
53952
|
-
parseFloat(
|
|
53953
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
53954
|
-
);
|
|
53954
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
53955
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
53955
53956
|
let margin;
|
|
53956
53957
|
let yLabel;
|
|
53957
53958
|
let xLabel;
|
|
@@ -54377,16 +54378,17 @@ const WaterfallChart = ({
|
|
|
54377
54378
|
"visibility",
|
|
54378
54379
|
(d) => k2 === 0 && d.data.dimension && stackTotalData ? "hidden" : "visible"
|
|
54379
54380
|
).style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
|
|
54381
|
+
const key = !isAdvancedWaterfall ? waterfallKeys.dimensionTotal : waterfallKeys.base;
|
|
54380
54382
|
const markerInfo = {
|
|
54381
54383
|
markerShape: "square",
|
|
54382
|
-
markerColor: d.key ===
|
|
54384
|
+
markerColor: d.key === key ? formatOptions.plotArea.totalColor : d.key === waterfallKeys.down ? formatOptions.plotArea.negativeColor : formatOptions.plotArea.positiveColor
|
|
54383
54385
|
};
|
|
54384
54386
|
showTooltipOnMouseMove(
|
|
54385
54387
|
[
|
|
54386
54388
|
{
|
|
54387
54389
|
key: formatOptions.yAxisTitle.yAxisTitleText,
|
|
54388
|
-
value: (d.key ===
|
|
54389
|
-
d.key ===
|
|
54390
|
+
value: (d.key === waterfallKeys.up ? "+" : d.key === waterfallKeys.down ? "-" : "") + getNumberWithFormat(
|
|
54391
|
+
d.key === waterfallKeys.dimensionTotal ? d.data.dimensionTotal : d[1] - d[0],
|
|
54390
54392
|
formatOptions.toolTip.toolTipDisplayUnits,
|
|
54391
54393
|
formatOptions.toolTip.toolTipNumberFormat,
|
|
54392
54394
|
formatOptions.toolTip.toolTipDecimalPrecision
|
|
@@ -54394,7 +54396,7 @@ const WaterfallChart = ({
|
|
|
54394
54396
|
},
|
|
54395
54397
|
{
|
|
54396
54398
|
key: "Legend",
|
|
54397
|
-
value: d.Key ? d.Key.includes("~$~") ? d.Key.split("~$~")[1] : d.Key : d.data.legend ? d.data.legend.includes("~$~") ? d.data.legend.split("~$~")[1] : d.data.legend :
|
|
54399
|
+
value: !isAdvancedWaterfall ? d.Key ? d.Key.includes("~$~") ? d.Key.split("~$~")[1] : d.Key : d.data.legend ? d.data.legend.includes("~$~") ? d.data.legend.split("~$~")[1] : d.data.legend : waterfallKeys.total : d.key !== waterfallKeys.base ? d.data.xKey : waterfallKeys.total
|
|
54398
54400
|
}
|
|
54399
54401
|
],
|
|
54400
54402
|
formatOptions,
|
|
@@ -54638,14 +54640,8 @@ const TornadoChart = ({
|
|
|
54638
54640
|
const barChart = true;
|
|
54639
54641
|
const isSecondaryAxisDrawn = false;
|
|
54640
54642
|
const isNormalizedChart = false;
|
|
54641
|
-
let customYaxisMinValue = parseFloat(formatOptions.yAxisLabel.yAxisMinText);
|
|
54642
|
-
let customYaxisMaxValue = parseFloat(formatOptions.yAxisLabel.yAxisMaxText);
|
|
54643
|
-
parseFloat(
|
|
54644
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMinText
|
|
54645
|
-
);
|
|
54646
|
-
parseFloat(
|
|
54647
|
-
formatOptions.secondaryYAxisLabel.secondaryYAxisMaxText
|
|
54648
|
-
);
|
|
54643
|
+
let customYaxisMinValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMinText) : void 0;
|
|
54644
|
+
let customYaxisMaxValue = formatOptions.yAxisLabel.yAxisIntervalsVisibility ? parseFloat(formatOptions.yAxisLabel.yAxisMaxText) : void 0;
|
|
54649
54645
|
let margin;
|
|
54650
54646
|
let yLabel;
|
|
54651
54647
|
let xLabel;
|