pace-chart-lib 1.0.61 → 1.0.63
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/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +1 -0
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +7 -9
- package/dist/Components/Charts/Core/Common.types.d.ts +1 -0
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +3 -3
- package/dist/pace-chart-lib.es.js +224 -140
- package/dist/pace-chart-lib.umd.js +224 -140
- package/package.json +1 -1
|
@@ -16195,7 +16195,7 @@ const fileName$b = "CommonFunctions.ts";
|
|
|
16195
16195
|
chartTypes.Speedometer,
|
|
16196
16196
|
chartTypes.RadialBarChart
|
|
16197
16197
|
];
|
|
16198
|
-
function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width, legendMargin, formatOptions, seriesData, chartId, dataTableHeight, margin, legendShape, chartType) {
|
|
16198
|
+
function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width, legendMargin, formatOptions, seriesData, chartId, dataTableHeight, margin, legendShape, chartType, addLocalFilterFromLib) {
|
|
16199
16199
|
try {
|
|
16200
16200
|
let position = formatOptions.legends.legendPosition;
|
|
16201
16201
|
let horizontalLegendAlignment = formatOptions.legends.legendAlignmentTopBottom;
|
|
@@ -16217,7 +16217,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16217
16217
|
verticalLegendAlignment,
|
|
16218
16218
|
legendShape,
|
|
16219
16219
|
formatOptions,
|
|
16220
|
-
chartId
|
|
16220
|
+
chartId,
|
|
16221
|
+
false,
|
|
16222
|
+
addLocalFilterFromLib
|
|
16221
16223
|
);
|
|
16222
16224
|
break;
|
|
16223
16225
|
case staticLegendPosition.top:
|
|
@@ -16232,7 +16234,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16232
16234
|
horizontalLegendAlignment,
|
|
16233
16235
|
legendShape,
|
|
16234
16236
|
formatOptions,
|
|
16235
|
-
chartId
|
|
16237
|
+
chartId,
|
|
16238
|
+
false,
|
|
16239
|
+
addLocalFilterFromLib
|
|
16236
16240
|
);
|
|
16237
16241
|
break;
|
|
16238
16242
|
case staticLegendPosition.left:
|
|
@@ -16249,7 +16253,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16249
16253
|
verticalLegendAlignment,
|
|
16250
16254
|
legendShape,
|
|
16251
16255
|
formatOptions,
|
|
16252
|
-
chartId
|
|
16256
|
+
chartId,
|
|
16257
|
+
false,
|
|
16258
|
+
addLocalFilterFromLib
|
|
16253
16259
|
);
|
|
16254
16260
|
break;
|
|
16255
16261
|
case staticLegendPosition.bottom:
|
|
@@ -16264,7 +16270,9 @@ function drawLegends(height, svg, maxLegendDimensions, chartTitleHeight, width,
|
|
|
16264
16270
|
horizontalLegendAlignment,
|
|
16265
16271
|
legendShape,
|
|
16266
16272
|
formatOptions,
|
|
16267
|
-
chartId
|
|
16273
|
+
chartId,
|
|
16274
|
+
false,
|
|
16275
|
+
addLocalFilterFromLib
|
|
16268
16276
|
);
|
|
16269
16277
|
break;
|
|
16270
16278
|
}
|
|
@@ -16789,7 +16797,7 @@ const findStringWithLongestLength = (data, key) => {
|
|
|
16789
16797
|
logError$2(fileName$b, "findStringWithLongestLength", error);
|
|
16790
16798
|
}
|
|
16791
16799
|
};
|
|
16792
|
-
const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPosition, alignment, legendShape, chartFormatOptions, chartId, isVennChart = false) => {
|
|
16800
|
+
const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPosition, alignment, legendShape, chartFormatOptions, chartId, isVennChart = false, addLocalFilterFromLib) => {
|
|
16793
16801
|
try {
|
|
16794
16802
|
if (chartFormatOptions.legends.legendVisibility) {
|
|
16795
16803
|
let justifyContent = "";
|
|
@@ -16812,7 +16820,9 @@ const legendsWithScroll = (svg, seriesData, x2, y2, width, height, legendPositio
|
|
|
16812
16820
|
if (legendPosition == staticLegendPosition.top || legendPosition == staticLegendPosition.bottom)
|
|
16813
16821
|
div.style("flex-direction", "row");
|
|
16814
16822
|
seriesData.forEach((d, i) => {
|
|
16815
|
-
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("width", "fit-content").style("margin", "3px 0px").style("flex-wrap", "nowrap").style("white-space", "nowrap").on("
|
|
16823
|
+
let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("width", "fit-content").style("margin", "3px 0px").style("flex-wrap", "nowrap").style("white-space", "nowrap").on("dblclick", function() {
|
|
16824
|
+
addLocalFilterFromLib(d?.properties);
|
|
16825
|
+
}).on("mousemove", function() {
|
|
16816
16826
|
if (chartFormatOptions.legends.onHoverEffect) {
|
|
16817
16827
|
const hoverId = this.textContent.replace(/\s+/g, "-");
|
|
16818
16828
|
svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
|
|
@@ -17080,7 +17090,7 @@ const marginCalculationsForChartsWithoutAxis = (chartFormatOptions, width, heigh
|
|
|
17080
17090
|
logError$2(fileName$b, "marginCalculationsForChartsWithoutAxis", error);
|
|
17081
17091
|
}
|
|
17082
17092
|
};
|
|
17083
|
-
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true) => {
|
|
17093
|
+
const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true, addLocalFilterFromLib) => {
|
|
17084
17094
|
try {
|
|
17085
17095
|
let position = chartFormatOptions.legends.legendPosition;
|
|
17086
17096
|
let totalPosition = chartFormatOptions.total.totalPosition;
|
|
@@ -17103,7 +17113,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17103
17113
|
verticalLegendAlignment,
|
|
17104
17114
|
staticLegendShape2,
|
|
17105
17115
|
chartFormatOptions,
|
|
17106
|
-
chartId
|
|
17116
|
+
chartId,
|
|
17117
|
+
false,
|
|
17118
|
+
addLocalFilterFromLib
|
|
17107
17119
|
);
|
|
17108
17120
|
break;
|
|
17109
17121
|
case staticLegendPosition.top:
|
|
@@ -17118,7 +17130,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17118
17130
|
horizontalLegendAlignment,
|
|
17119
17131
|
staticLegendShape2,
|
|
17120
17132
|
chartFormatOptions,
|
|
17121
|
-
chartId
|
|
17133
|
+
chartId,
|
|
17134
|
+
false,
|
|
17135
|
+
addLocalFilterFromLib
|
|
17122
17136
|
);
|
|
17123
17137
|
break;
|
|
17124
17138
|
case staticLegendPosition.left:
|
|
@@ -17133,7 +17147,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17133
17147
|
verticalLegendAlignment,
|
|
17134
17148
|
staticLegendShape2,
|
|
17135
17149
|
chartFormatOptions,
|
|
17136
|
-
chartId
|
|
17150
|
+
chartId,
|
|
17151
|
+
false,
|
|
17152
|
+
addLocalFilterFromLib
|
|
17137
17153
|
);
|
|
17138
17154
|
break;
|
|
17139
17155
|
case staticLegendPosition.bottom:
|
|
@@ -17148,7 +17164,9 @@ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesDa
|
|
|
17148
17164
|
horizontalLegendAlignment,
|
|
17149
17165
|
staticLegendShape2,
|
|
17150
17166
|
chartFormatOptions,
|
|
17151
|
-
chartId
|
|
17167
|
+
chartId,
|
|
17168
|
+
false,
|
|
17169
|
+
addLocalFilterFromLib
|
|
17152
17170
|
);
|
|
17153
17171
|
break;
|
|
17154
17172
|
}
|
|
@@ -17382,7 +17400,8 @@ const ColumnChart = ({
|
|
|
17382
17400
|
formatOptions,
|
|
17383
17401
|
data,
|
|
17384
17402
|
isReportEditable,
|
|
17385
|
-
onDataLabelCoordinatesChange
|
|
17403
|
+
onDataLabelCoordinatesChange,
|
|
17404
|
+
addLocalFilterFromLib
|
|
17386
17405
|
}) => {
|
|
17387
17406
|
const chartId = crypto.randomUUID();
|
|
17388
17407
|
let columnWidth = 0;
|
|
@@ -17598,7 +17617,9 @@ const ColumnChart = ({
|
|
|
17598
17617
|
chartId,
|
|
17599
17618
|
dataTableHeight,
|
|
17600
17619
|
margin,
|
|
17601
|
-
staticLegendShape.rectangle
|
|
17620
|
+
staticLegendShape.rectangle,
|
|
17621
|
+
chartType,
|
|
17622
|
+
addLocalFilterFromLib
|
|
17602
17623
|
);
|
|
17603
17624
|
horizontalScrollBar(
|
|
17604
17625
|
seriesData,
|
|
@@ -17954,7 +17975,8 @@ const CustomColumnChart = ({
|
|
|
17954
17975
|
formatOptions,
|
|
17955
17976
|
data,
|
|
17956
17977
|
isReportEditable,
|
|
17957
|
-
onDataLabelCoordinatesChange
|
|
17978
|
+
onDataLabelCoordinatesChange,
|
|
17979
|
+
addLocalFilterFromLib
|
|
17958
17980
|
}) => {
|
|
17959
17981
|
const chartId = crypto.randomUUID();
|
|
17960
17982
|
let columnWidth = 0;
|
|
@@ -18182,8 +18204,9 @@ const CustomColumnChart = ({
|
|
|
18182
18204
|
chartId,
|
|
18183
18205
|
dataTableHeight,
|
|
18184
18206
|
margin,
|
|
18185
|
-
null
|
|
18186
|
-
|
|
18207
|
+
null,
|
|
18208
|
+
chartType,
|
|
18209
|
+
addLocalFilterFromLib
|
|
18187
18210
|
);
|
|
18188
18211
|
horizontalScrollBar(
|
|
18189
18212
|
seriesData,
|
|
@@ -19097,7 +19120,8 @@ const LayeredColumnChart = ({
|
|
|
19097
19120
|
formatOptions,
|
|
19098
19121
|
data,
|
|
19099
19122
|
isReportEditable,
|
|
19100
|
-
onDataLabelCoordinatesChange
|
|
19123
|
+
onDataLabelCoordinatesChange,
|
|
19124
|
+
addLocalFilterFromLib
|
|
19101
19125
|
}) => {
|
|
19102
19126
|
const chartId = crypto.randomUUID();
|
|
19103
19127
|
let columnWidth = 0;
|
|
@@ -19300,7 +19324,9 @@ const LayeredColumnChart = ({
|
|
|
19300
19324
|
chartId,
|
|
19301
19325
|
dataTableHeight,
|
|
19302
19326
|
margin,
|
|
19303
|
-
staticLegendShape.rectangle
|
|
19327
|
+
staticLegendShape.rectangle,
|
|
19328
|
+
chartType,
|
|
19329
|
+
addLocalFilterFromLib
|
|
19304
19330
|
);
|
|
19305
19331
|
horizontalScrollBar(
|
|
19306
19332
|
seriesData,
|
|
@@ -19651,7 +19677,8 @@ const StackColumnChart = ({
|
|
|
19651
19677
|
formatOptions,
|
|
19652
19678
|
data,
|
|
19653
19679
|
isReportEditable,
|
|
19654
|
-
onDataLabelCoordinatesChange
|
|
19680
|
+
onDataLabelCoordinatesChange,
|
|
19681
|
+
addLocalFilterFromLib
|
|
19655
19682
|
}) => {
|
|
19656
19683
|
const chartId = crypto.randomUUID();
|
|
19657
19684
|
let columnWidth = 0;
|
|
@@ -19853,7 +19880,9 @@ const StackColumnChart = ({
|
|
|
19853
19880
|
chartId,
|
|
19854
19881
|
dataTableHeight,
|
|
19855
19882
|
margin,
|
|
19856
|
-
staticLegendShape.rectangle
|
|
19883
|
+
staticLegendShape.rectangle,
|
|
19884
|
+
chartType,
|
|
19885
|
+
addLocalFilterFromLib
|
|
19857
19886
|
);
|
|
19858
19887
|
horizontalScrollBar(
|
|
19859
19888
|
seriesData,
|
|
@@ -20387,7 +20416,8 @@ const NormalizedStackColumnChart = ({
|
|
|
20387
20416
|
formatOptions,
|
|
20388
20417
|
data,
|
|
20389
20418
|
isReportEditable,
|
|
20390
|
-
onDataLabelCoordinatesChange
|
|
20419
|
+
onDataLabelCoordinatesChange,
|
|
20420
|
+
addLocalFilterFromLib
|
|
20391
20421
|
}) => {
|
|
20392
20422
|
const chartId = crypto.randomUUID();
|
|
20393
20423
|
let columnWidth = 0;
|
|
@@ -20588,7 +20618,9 @@ const NormalizedStackColumnChart = ({
|
|
|
20588
20618
|
chartId,
|
|
20589
20619
|
dataTableHeight,
|
|
20590
20620
|
margin,
|
|
20591
|
-
staticLegendShape.rectangle
|
|
20621
|
+
staticLegendShape.rectangle,
|
|
20622
|
+
chartType,
|
|
20623
|
+
addLocalFilterFromLib
|
|
20592
20624
|
);
|
|
20593
20625
|
horizontalScrollBar(
|
|
20594
20626
|
seriesData,
|
|
@@ -22223,7 +22255,8 @@ const LineChart = ({
|
|
|
22223
22255
|
formatOptions,
|
|
22224
22256
|
data,
|
|
22225
22257
|
isReportEditable,
|
|
22226
|
-
onDataLabelCoordinatesChange
|
|
22258
|
+
onDataLabelCoordinatesChange,
|
|
22259
|
+
addLocalFilterFromLib
|
|
22227
22260
|
}) => {
|
|
22228
22261
|
const chartId = crypto.randomUUID();
|
|
22229
22262
|
const barWidth = 0;
|
|
@@ -22441,7 +22474,9 @@ const LineChart = ({
|
|
|
22441
22474
|
chartId,
|
|
22442
22475
|
dataTableHeight,
|
|
22443
22476
|
margin,
|
|
22444
|
-
staticLegendShape.line
|
|
22477
|
+
staticLegendShape.line,
|
|
22478
|
+
chartType,
|
|
22479
|
+
addLocalFilterFromLib
|
|
22445
22480
|
);
|
|
22446
22481
|
horizontalScrollBar(
|
|
22447
22482
|
seriesData,
|
|
@@ -22796,7 +22831,8 @@ const StackLineChart = ({
|
|
|
22796
22831
|
formatOptions,
|
|
22797
22832
|
data,
|
|
22798
22833
|
isReportEditable,
|
|
22799
|
-
onDataLabelCoordinatesChange
|
|
22834
|
+
onDataLabelCoordinatesChange,
|
|
22835
|
+
addLocalFilterFromLib
|
|
22800
22836
|
}) => {
|
|
22801
22837
|
const chartId = crypto.randomUUID();
|
|
22802
22838
|
const barWidth = 0;
|
|
@@ -22999,7 +23035,9 @@ const StackLineChart = ({
|
|
|
22999
23035
|
chartId,
|
|
23000
23036
|
dataTableHeight,
|
|
23001
23037
|
margin,
|
|
23002
|
-
staticLegendShape.line
|
|
23038
|
+
staticLegendShape.line,
|
|
23039
|
+
chartType,
|
|
23040
|
+
addLocalFilterFromLib
|
|
23003
23041
|
);
|
|
23004
23042
|
horizontalScrollBar(
|
|
23005
23043
|
seriesData,
|
|
@@ -23381,7 +23419,8 @@ const NormalisedStackLineChart = ({
|
|
|
23381
23419
|
formatOptions,
|
|
23382
23420
|
data,
|
|
23383
23421
|
isReportEditable,
|
|
23384
|
-
onDataLabelCoordinatesChange
|
|
23422
|
+
onDataLabelCoordinatesChange,
|
|
23423
|
+
addLocalFilterFromLib
|
|
23385
23424
|
}) => {
|
|
23386
23425
|
const chartId = crypto.randomUUID();
|
|
23387
23426
|
const barWidth = 0;
|
|
@@ -23575,7 +23614,9 @@ const NormalisedStackLineChart = ({
|
|
|
23575
23614
|
chartId,
|
|
23576
23615
|
dataTableHeight,
|
|
23577
23616
|
margin,
|
|
23578
|
-
staticLegendShape.line
|
|
23617
|
+
staticLegendShape.line,
|
|
23618
|
+
chartType,
|
|
23619
|
+
addLocalFilterFromLib
|
|
23579
23620
|
);
|
|
23580
23621
|
horizontalScrollBar(
|
|
23581
23622
|
seriesData,
|
|
@@ -23909,7 +23950,8 @@ const HorizontalBarChart = ({
|
|
|
23909
23950
|
formatOptions,
|
|
23910
23951
|
data,
|
|
23911
23952
|
isReportEditable,
|
|
23912
|
-
onDataLabelCoordinatesChange
|
|
23953
|
+
onDataLabelCoordinatesChange,
|
|
23954
|
+
addLocalFilterFromLib
|
|
23913
23955
|
}) => {
|
|
23914
23956
|
const chartId = crypto.randomUUID();
|
|
23915
23957
|
let columnWidth = 0;
|
|
@@ -24111,7 +24153,9 @@ const HorizontalBarChart = ({
|
|
|
24111
24153
|
chartId,
|
|
24112
24154
|
dataTableHeight,
|
|
24113
24155
|
margin,
|
|
24114
|
-
staticLegendShape.rectangle
|
|
24156
|
+
staticLegendShape.rectangle,
|
|
24157
|
+
chartType,
|
|
24158
|
+
addLocalFilterFromLib
|
|
24115
24159
|
);
|
|
24116
24160
|
horizontalScrollBar(
|
|
24117
24161
|
seriesData,
|
|
@@ -24459,7 +24503,8 @@ const StackHorizontalChart = ({
|
|
|
24459
24503
|
formatOptions,
|
|
24460
24504
|
data,
|
|
24461
24505
|
isReportEditable,
|
|
24462
|
-
onDataLabelCoordinatesChange
|
|
24506
|
+
onDataLabelCoordinatesChange,
|
|
24507
|
+
addLocalFilterFromLib
|
|
24463
24508
|
}) => {
|
|
24464
24509
|
const chartId = crypto.randomUUID();
|
|
24465
24510
|
let columnWidth = 0;
|
|
@@ -24633,7 +24678,9 @@ const StackHorizontalChart = ({
|
|
|
24633
24678
|
chartId,
|
|
24634
24679
|
0,
|
|
24635
24680
|
margin,
|
|
24636
|
-
staticLegendShape.rectangle
|
|
24681
|
+
staticLegendShape.rectangle,
|
|
24682
|
+
chartType,
|
|
24683
|
+
addLocalFilterFromLib
|
|
24637
24684
|
);
|
|
24638
24685
|
horizontalScrollBar(
|
|
24639
24686
|
seriesData,
|
|
@@ -25181,7 +25228,8 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
25181
25228
|
formatOptions,
|
|
25182
25229
|
data,
|
|
25183
25230
|
isReportEditable,
|
|
25184
|
-
onDataLabelCoordinatesChange
|
|
25231
|
+
onDataLabelCoordinatesChange,
|
|
25232
|
+
addLocalFilterFromLib
|
|
25185
25233
|
}) => {
|
|
25186
25234
|
const chartId = crypto.randomUUID();
|
|
25187
25235
|
let columnWidth = 0;
|
|
@@ -25354,7 +25402,9 @@ const NormalizedStackHorizontalBarChart = ({
|
|
|
25354
25402
|
chartId,
|
|
25355
25403
|
0,
|
|
25356
25404
|
margin,
|
|
25357
|
-
staticLegendShape.rectangle
|
|
25405
|
+
staticLegendShape.rectangle,
|
|
25406
|
+
chartType,
|
|
25407
|
+
addLocalFilterFromLib
|
|
25358
25408
|
);
|
|
25359
25409
|
horizontalScrollBar(
|
|
25360
25410
|
seriesData,
|
|
@@ -25659,7 +25709,8 @@ const LayeredHorizontalBarChart = ({
|
|
|
25659
25709
|
formatOptions,
|
|
25660
25710
|
data,
|
|
25661
25711
|
isReportEditable,
|
|
25662
|
-
onDataLabelCoordinatesChange
|
|
25712
|
+
onDataLabelCoordinatesChange,
|
|
25713
|
+
addLocalFilterFromLib
|
|
25663
25714
|
}) => {
|
|
25664
25715
|
const chartId = crypto.randomUUID();
|
|
25665
25716
|
let columnWidth = 0;
|
|
@@ -25831,7 +25882,9 @@ const LayeredHorizontalBarChart = ({
|
|
|
25831
25882
|
chartId,
|
|
25832
25883
|
0,
|
|
25833
25884
|
margin,
|
|
25834
|
-
staticLegendShape.rectangle
|
|
25885
|
+
staticLegendShape.rectangle,
|
|
25886
|
+
chartType,
|
|
25887
|
+
addLocalFilterFromLib
|
|
25835
25888
|
);
|
|
25836
25889
|
horizontalScrollBar(
|
|
25837
25890
|
seriesData,
|
|
@@ -26873,7 +26926,8 @@ const AreaChart = ({
|
|
|
26873
26926
|
formatOptions,
|
|
26874
26927
|
data,
|
|
26875
26928
|
isReportEditable,
|
|
26876
|
-
onDataLabelCoordinatesChange
|
|
26929
|
+
onDataLabelCoordinatesChange,
|
|
26930
|
+
addLocalFilterFromLib
|
|
26877
26931
|
}) => {
|
|
26878
26932
|
const chartId = crypto.randomUUID();
|
|
26879
26933
|
const barWidth = 0;
|
|
@@ -27089,7 +27143,9 @@ const AreaChart = ({
|
|
|
27089
27143
|
chartId,
|
|
27090
27144
|
dataTableHeight,
|
|
27091
27145
|
margin,
|
|
27092
|
-
staticLegendShape.areaWithLine
|
|
27146
|
+
staticLegendShape.areaWithLine,
|
|
27147
|
+
chartType,
|
|
27148
|
+
addLocalFilterFromLib
|
|
27093
27149
|
);
|
|
27094
27150
|
horizontalScrollBar(
|
|
27095
27151
|
seriesData,
|
|
@@ -27463,7 +27519,8 @@ const StackAreaChart = ({
|
|
|
27463
27519
|
formatOptions,
|
|
27464
27520
|
data,
|
|
27465
27521
|
isReportEditable,
|
|
27466
|
-
onDataLabelCoordinatesChange
|
|
27522
|
+
onDataLabelCoordinatesChange,
|
|
27523
|
+
addLocalFilterFromLib
|
|
27467
27524
|
}) => {
|
|
27468
27525
|
const chartId = crypto.randomUUID();
|
|
27469
27526
|
const barWidth = 0;
|
|
@@ -27666,7 +27723,9 @@ const StackAreaChart = ({
|
|
|
27666
27723
|
chartId,
|
|
27667
27724
|
dataTableHeight,
|
|
27668
27725
|
margin,
|
|
27669
|
-
staticLegendShape.areaWithLine
|
|
27726
|
+
staticLegendShape.areaWithLine,
|
|
27727
|
+
chartType,
|
|
27728
|
+
addLocalFilterFromLib
|
|
27670
27729
|
);
|
|
27671
27730
|
horizontalScrollBar(
|
|
27672
27731
|
seriesData,
|
|
@@ -28063,7 +28122,8 @@ const NormalizedStackAreaChart = ({
|
|
|
28063
28122
|
formatOptions,
|
|
28064
28123
|
data,
|
|
28065
28124
|
isReportEditable,
|
|
28066
|
-
onDataLabelCoordinatesChange
|
|
28125
|
+
onDataLabelCoordinatesChange,
|
|
28126
|
+
addLocalFilterFromLib
|
|
28067
28127
|
}) => {
|
|
28068
28128
|
const chartId = crypto.randomUUID();
|
|
28069
28129
|
const barWidth = 0;
|
|
@@ -28256,7 +28316,9 @@ const NormalizedStackAreaChart = ({
|
|
|
28256
28316
|
chartId,
|
|
28257
28317
|
dataTableHeight,
|
|
28258
28318
|
margin,
|
|
28259
|
-
staticLegendShape.areaWithLine
|
|
28319
|
+
staticLegendShape.areaWithLine,
|
|
28320
|
+
chartType,
|
|
28321
|
+
addLocalFilterFromLib
|
|
28260
28322
|
);
|
|
28261
28323
|
horizontalScrollBar(
|
|
28262
28324
|
seriesData,
|
|
@@ -28720,7 +28782,7 @@ const drawTotalValue = (chartFormatOptions, totalValue, chartTitleHeight, chartA
|
|
|
28720
28782
|
}
|
|
28721
28783
|
};
|
|
28722
28784
|
const fileName$8 = "PieChart.tsx";
|
|
28723
|
-
const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelCoordinatesChange }) => {
|
|
28785
|
+
const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelCoordinatesChange, addLocalFilterFromLib }) => {
|
|
28724
28786
|
const svgRef = useRef();
|
|
28725
28787
|
const seriesData = generalizedChartData(data.ChartData);
|
|
28726
28788
|
let chartFormatOptions;
|
|
@@ -28772,7 +28834,9 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
|
|
|
28772
28834
|
chartTitleHeight,
|
|
28773
28835
|
chartId,
|
|
28774
28836
|
margins,
|
|
28775
|
-
staticLegendShape.circle
|
|
28837
|
+
staticLegendShape.circle,
|
|
28838
|
+
void 0,
|
|
28839
|
+
addLocalFilterFromLib
|
|
28776
28840
|
);
|
|
28777
28841
|
initPieChartData();
|
|
28778
28842
|
drawPieChart();
|
|
@@ -29150,7 +29214,8 @@ const DonutChart = ({
|
|
|
29150
29214
|
formatOptions,
|
|
29151
29215
|
chartId,
|
|
29152
29216
|
isReportEditable,
|
|
29153
|
-
onDataLabelCoordinatesChange
|
|
29217
|
+
onDataLabelCoordinatesChange,
|
|
29218
|
+
addLocalFilterFromLib
|
|
29154
29219
|
}) => {
|
|
29155
29220
|
const svgRef = useRef();
|
|
29156
29221
|
const seriesData = generalizedChartData(data.ChartData);
|
|
@@ -29205,7 +29270,8 @@ const DonutChart = ({
|
|
|
29205
29270
|
chartId,
|
|
29206
29271
|
margins,
|
|
29207
29272
|
staticLegendShape.hollowCircle,
|
|
29208
|
-
false
|
|
29273
|
+
false,
|
|
29274
|
+
addLocalFilterFromLib
|
|
29209
29275
|
);
|
|
29210
29276
|
initPieChartData();
|
|
29211
29277
|
drawDonutChart();
|
|
@@ -30316,7 +30382,8 @@ const PyramidChart = ({
|
|
|
30316
30382
|
data,
|
|
30317
30383
|
formatOptions,
|
|
30318
30384
|
chartId,
|
|
30319
|
-
onDataLabelCoordinatesChange
|
|
30385
|
+
onDataLabelCoordinatesChange,
|
|
30386
|
+
addLocalFilterFromLib
|
|
30320
30387
|
}) => {
|
|
30321
30388
|
const svgRef = useRef();
|
|
30322
30389
|
let seriesData = generalizedChartData(data.ChartData);
|
|
@@ -30370,7 +30437,8 @@ const PyramidChart = ({
|
|
|
30370
30437
|
chartId,
|
|
30371
30438
|
margins,
|
|
30372
30439
|
staticLegendShape.rectangle,
|
|
30373
|
-
false
|
|
30440
|
+
false,
|
|
30441
|
+
addLocalFilterFromLib
|
|
30374
30442
|
);
|
|
30375
30443
|
initPyramidData();
|
|
30376
30444
|
drawPyramidChart();
|
|
@@ -30704,7 +30772,8 @@ const fileName$3 = "ProgressChart.tsx";
|
|
|
30704
30772
|
const ProgressChart = ({
|
|
30705
30773
|
data: { ChartData },
|
|
30706
30774
|
formatOptions,
|
|
30707
|
-
chartId
|
|
30775
|
+
chartId,
|
|
30776
|
+
addLocalFilterFromLib
|
|
30708
30777
|
}) => {
|
|
30709
30778
|
const svgRef = useRef();
|
|
30710
30779
|
let seriesData = generalizedChartData(ChartData);
|
|
@@ -30757,7 +30826,9 @@ const ProgressChart = ({
|
|
|
30757
30826
|
chartTitleHeight,
|
|
30758
30827
|
chartId,
|
|
30759
30828
|
margins,
|
|
30760
|
-
staticLegendShape.hollowCircle
|
|
30829
|
+
staticLegendShape.hollowCircle,
|
|
30830
|
+
true,
|
|
30831
|
+
addLocalFilterFromLib
|
|
30761
30832
|
);
|
|
30762
30833
|
initProgressChartData();
|
|
30763
30834
|
drawProgressChart();
|
|
@@ -31484,7 +31555,8 @@ function logError(fileName2, functionName, error) {
|
|
|
31484
31555
|
const RadialBarChart = ({
|
|
31485
31556
|
data: { ChartData },
|
|
31486
31557
|
formatOptions,
|
|
31487
|
-
chartId
|
|
31558
|
+
chartId,
|
|
31559
|
+
addLocalFilterFromLib
|
|
31488
31560
|
}) => {
|
|
31489
31561
|
const svgRef = useRef();
|
|
31490
31562
|
const seriesData = generalizedChartData(ChartData);
|
|
@@ -31533,7 +31605,9 @@ const RadialBarChart = ({
|
|
|
31533
31605
|
chartTitleHeight,
|
|
31534
31606
|
chartId,
|
|
31535
31607
|
margins,
|
|
31536
|
-
staticLegendShape.hollowCircle
|
|
31608
|
+
staticLegendShape.hollowCircle,
|
|
31609
|
+
false,
|
|
31610
|
+
addLocalFilterFromLib
|
|
31537
31611
|
);
|
|
31538
31612
|
initRadialBarChart();
|
|
31539
31613
|
};
|
|
@@ -54179,9 +54253,10 @@ const fileName$1 = "OrganizationChart.tsx";
|
|
|
54179
54253
|
const OrganizationChart = ({
|
|
54180
54254
|
data,
|
|
54181
54255
|
formatOptions,
|
|
54182
|
-
legendEntries,
|
|
54256
|
+
// legendEntries,
|
|
54183
54257
|
legendSequence
|
|
54184
54258
|
}) => {
|
|
54259
|
+
let legendEntries = data.LegendList ?? [];
|
|
54185
54260
|
const chartId = crypto.randomUUID();
|
|
54186
54261
|
const svgRef = useRef();
|
|
54187
54262
|
const floatingSvgRef = useRef();
|
|
@@ -54221,20 +54296,11 @@ const OrganizationChart = ({
|
|
|
54221
54296
|
chartDirection = chartFormatOptions.plotArea.chartDirection || orgChartDirection.left;
|
|
54222
54297
|
var sum2 = 0;
|
|
54223
54298
|
var absoluteSum = 0;
|
|
54224
|
-
|
|
54225
|
-
|
|
54226
|
-
|
|
54227
|
-
});
|
|
54228
|
-
var newObj = {
|
|
54229
|
-
id: 0,
|
|
54230
|
-
children: data,
|
|
54231
|
-
value: sum2,
|
|
54232
|
-
// Total value of all children
|
|
54233
|
-
absoluteValue: absoluteSum,
|
|
54234
|
-
nodeLabel: "",
|
|
54235
|
-
UID: ""
|
|
54299
|
+
const rootNode = {
|
|
54300
|
+
...data.ChartData,
|
|
54301
|
+
UID: void 0
|
|
54236
54302
|
};
|
|
54237
|
-
let tempData = getFlattenedData(
|
|
54303
|
+
let tempData = getFlattenedData(rootNode).filter(
|
|
54238
54304
|
(data2) => data2.value !== null
|
|
54239
54305
|
);
|
|
54240
54306
|
createIdIndexMap(tempData);
|
|
@@ -54283,8 +54349,7 @@ const OrganizationChart = ({
|
|
|
54283
54349
|
data2.forEach((nodeObject, i) => {
|
|
54284
54350
|
if (nodeObject.id != 0) {
|
|
54285
54351
|
let parentUID = data2[idIndexMap.get(nodeObject.parentId)].UID;
|
|
54286
|
-
parentUID ===
|
|
54287
|
-
indexMapForStyleObject.set(nodeObject.UID, i);
|
|
54352
|
+
parentUID === void 0 ? nodeObject.UID = nodeObject.nodeLabel : nodeObject.UID = parentUID + "-" + nodeObject.nodeLabel;
|
|
54288
54353
|
}
|
|
54289
54354
|
});
|
|
54290
54355
|
} catch (error) {
|
|
@@ -54293,12 +54358,15 @@ const OrganizationChart = ({
|
|
|
54293
54358
|
};
|
|
54294
54359
|
const addStyleObjectToChartData = (data2) => {
|
|
54295
54360
|
try {
|
|
54296
|
-
data2[0] = { ...data2[0], styleObject: legendEntries[0] };
|
|
54297
54361
|
legendEntries.forEach((styleObject) => {
|
|
54298
|
-
|
|
54299
|
-
|
|
54300
|
-
|
|
54301
|
-
data2[
|
|
54362
|
+
indexMapForStyleObject.set(styleObject.name, styleObject);
|
|
54363
|
+
});
|
|
54364
|
+
Object.keys(data2).forEach((key) => {
|
|
54365
|
+
const legendObject = indexMapForStyleObject.get(data2[key].UID ?? data2[key].nodeLabel);
|
|
54366
|
+
data2[key] = {
|
|
54367
|
+
...data2[key],
|
|
54368
|
+
styleObject: legendObject || legendEntries[0]
|
|
54369
|
+
};
|
|
54302
54370
|
});
|
|
54303
54371
|
return data2;
|
|
54304
54372
|
} catch (error) {
|
|
@@ -54512,7 +54580,7 @@ const OrganizationChart = ({
|
|
|
54512
54580
|
justify-content: center;
|
|
54513
54581
|
align-items: center;
|
|
54514
54582
|
text-align: center;
|
|
54515
|
-
background-color: ${d.data.styleObject.
|
|
54583
|
+
background-color: ${d.data.styleObject.color ? d.data.styleObject.color : d.data.styleObject.backgroundColor};
|
|
54516
54584
|
z-index: 99;
|
|
54517
54585
|
transform: ${transform};
|
|
54518
54586
|
transition: unset;">
|
|
@@ -54689,7 +54757,8 @@ const OrganizationChart = ({
|
|
|
54689
54757
|
const BubbleChart = ({
|
|
54690
54758
|
data,
|
|
54691
54759
|
formatOptions,
|
|
54692
|
-
chartId
|
|
54760
|
+
chartId,
|
|
54761
|
+
addLocalFilterFromLib
|
|
54693
54762
|
}) => {
|
|
54694
54763
|
let legendEntries = data.LegendList;
|
|
54695
54764
|
const svgRef = useRef();
|
|
@@ -55103,7 +55172,9 @@ const BubbleChart = ({
|
|
|
55103
55172
|
chartTitleHeight,
|
|
55104
55173
|
chartId,
|
|
55105
55174
|
margins,
|
|
55106
|
-
staticLegendShape.circle
|
|
55175
|
+
staticLegendShape.circle,
|
|
55176
|
+
false,
|
|
55177
|
+
addLocalFilterFromLib
|
|
55107
55178
|
);
|
|
55108
55179
|
} catch (e) {
|
|
55109
55180
|
logError$2("BubbleChart", "initLegendList", e);
|
|
@@ -55147,10 +55218,11 @@ const fileName = "ScatterChart.tsx";
|
|
|
55147
55218
|
const ScatterChart = ({
|
|
55148
55219
|
data,
|
|
55149
55220
|
formatOptions,
|
|
55150
|
-
chartId
|
|
55151
|
-
shapesList,
|
|
55152
|
-
colorsList
|
|
55221
|
+
chartId
|
|
55153
55222
|
}) => {
|
|
55223
|
+
const colorsList = data.ColorElements ?? [];
|
|
55224
|
+
const shapesList = data.ShapeElements ?? [];
|
|
55225
|
+
let modifiedData = [];
|
|
55154
55226
|
const svgRef = useRef();
|
|
55155
55227
|
let chartFormatOptions;
|
|
55156
55228
|
let maxLegendDimensions = [0, 0];
|
|
@@ -55162,12 +55234,12 @@ const ScatterChart = ({
|
|
|
55162
55234
|
let innerWidth2;
|
|
55163
55235
|
let chartAreaTagG;
|
|
55164
55236
|
let svg;
|
|
55165
|
-
let
|
|
55166
|
-
let
|
|
55167
|
-
let
|
|
55168
|
-
let
|
|
55169
|
-
let
|
|
55170
|
-
let
|
|
55237
|
+
let minDimension = Number.POSITIVE_INFINITY;
|
|
55238
|
+
let maxDimension = Number.NEGATIVE_INFINITY;
|
|
55239
|
+
let minMeasure = Number.POSITIVE_INFINITY;
|
|
55240
|
+
let maxMeasure = Number.NEGATIVE_INFINITY;
|
|
55241
|
+
let sizeValueMin = Number.POSITIVE_INFINITY;
|
|
55242
|
+
let sizeValueMax = Number.NEGATIVE_INFINITY;
|
|
55171
55243
|
let yLabel;
|
|
55172
55244
|
let xLabel;
|
|
55173
55245
|
let yTitle;
|
|
@@ -55183,6 +55255,7 @@ const ScatterChart = ({
|
|
|
55183
55255
|
let customYaxisMinValue;
|
|
55184
55256
|
let xScale;
|
|
55185
55257
|
let yScale;
|
|
55258
|
+
let sizeScale;
|
|
55186
55259
|
let colorsMap = /* @__PURE__ */ new Map();
|
|
55187
55260
|
let shapesMap = /* @__PURE__ */ new Map();
|
|
55188
55261
|
useEffect(() => {
|
|
@@ -55284,7 +55357,7 @@ const ScatterChart = ({
|
|
|
55284
55357
|
innerHeight2,
|
|
55285
55358
|
xTitle,
|
|
55286
55359
|
xLabel,
|
|
55287
|
-
|
|
55360
|
+
modifiedData.length
|
|
55288
55361
|
);
|
|
55289
55362
|
};
|
|
55290
55363
|
const initCircles = () => {
|
|
@@ -55294,17 +55367,11 @@ const ScatterChart = ({
|
|
|
55294
55367
|
};
|
|
55295
55368
|
const circles = chartAreaTagG.append("g").attr("class", "circles").attr("class", "parentGroup");
|
|
55296
55369
|
const shouldAnimate = chartFormatOptions.animation.animationEnabled;
|
|
55297
|
-
const scatterPaths = circles.append("g").selectAll(".bubbleScatter").data(
|
|
55298
|
-
"colorId",
|
|
55299
|
-
(d) => d.legendName.includes("-") ? d.legendName.split("-")[0].replace(/ /g, "-") : d.legendName.replace(/ /g, "-")
|
|
55300
|
-
).attr(
|
|
55301
|
-
"shapeId",
|
|
55302
|
-
(d) => d.legendName.includes("-") ? d.legendName.split("-")[1].replace(/ /g, "-") : d.legendName.replace(/ /g, "-")
|
|
55303
|
-
).append("path").attr("class", "path").attr("id", function(d, i) {
|
|
55370
|
+
const scatterPaths = circles.append("g").selectAll(".bubbleScatter").data(modifiedData).enter().append("g").attr("fill", (d) => d.color).attr("colorId", (d) => d.colorName.replace(/ /g, "-")).attr("shapeId", (d) => d.shapeName?.replace(/ /g, "-")).append("path").attr("class", "path").attr("id", function(d, i) {
|
|
55304
55371
|
select$2(this).attr(
|
|
55305
55372
|
"d",
|
|
55306
|
-
Symbol$1().type(getMarkershapes(d.
|
|
55307
|
-
(d.sizeValue ? d.sizeValue : 10) * 2 * convertStringToNumber(
|
|
55373
|
+
Symbol$1().type(getMarkershapes(d.shape)).size(
|
|
55374
|
+
(d.sizeValue ? sizeScale(d.sizeValue) : 10) * 2 * convertStringToNumber(
|
|
55308
55375
|
chartFormatOptions.plotArea.scatterSizeIndex
|
|
55309
55376
|
)
|
|
55310
55377
|
)
|
|
@@ -55317,24 +55384,26 @@ const ScatterChart = ({
|
|
|
55317
55384
|
).on("mousemove", (event2, d) => {
|
|
55318
55385
|
showTooltipOnMouseMove(
|
|
55319
55386
|
[
|
|
55320
|
-
|
|
55321
|
-
|
|
55322
|
-
|
|
55323
|
-
|
|
55324
|
-
|
|
55325
|
-
|
|
55326
|
-
|
|
55327
|
-
|
|
55328
|
-
|
|
55329
|
-
|
|
55330
|
-
|
|
55331
|
-
|
|
55332
|
-
|
|
55333
|
-
|
|
55334
|
-
|
|
55335
|
-
|
|
55336
|
-
|
|
55337
|
-
|
|
55387
|
+
...[
|
|
55388
|
+
{
|
|
55389
|
+
key: chartFormatOptions.xAxisTitle.xAxisTitleText,
|
|
55390
|
+
value: getNumberWithFormatFunction(
|
|
55391
|
+
chartFormatOptions.toolTip.toolTipDisplayUnits,
|
|
55392
|
+
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
55393
|
+
chartFormatOptions.toolTip.toolTipDecimalPrecision
|
|
55394
|
+
)(d.dimension)
|
|
55395
|
+
},
|
|
55396
|
+
{
|
|
55397
|
+
key: chartFormatOptions.yAxisTitle.yAxisTitleText,
|
|
55398
|
+
value: getNumberWithFormatFunction(
|
|
55399
|
+
chartFormatOptions.toolTip.toolTipDisplayUnits,
|
|
55400
|
+
chartFormatOptions.toolTip.toolTipNumberFormat,
|
|
55401
|
+
chartFormatOptions.toolTip.toolTipDecimalPrecision
|
|
55402
|
+
)(d.measure)
|
|
55403
|
+
},
|
|
55404
|
+
{ key: "Color", value: d.colorName }
|
|
55405
|
+
],
|
|
55406
|
+
...d.shapeName ? [{ key: "Shape", value: d.shapeName }] : []
|
|
55338
55407
|
],
|
|
55339
55408
|
chartFormatOptions
|
|
55340
55409
|
);
|
|
@@ -55350,33 +55419,41 @@ const ScatterChart = ({
|
|
|
55350
55419
|
};
|
|
55351
55420
|
const iterateOverChartData = () => {
|
|
55352
55421
|
try {
|
|
55422
|
+
let addDataToModifiedData = function(dataPoint, legend, shape) {
|
|
55423
|
+
minMeasure = Math.min(minMeasure, dataPoint.value);
|
|
55424
|
+
maxMeasure = Math.max(maxMeasure, dataPoint.value);
|
|
55425
|
+
minDimension = Math.min(minDimension, dataPoint.dimension);
|
|
55426
|
+
maxDimension = Math.max(maxDimension, dataPoint.dimension);
|
|
55427
|
+
sizeValueMin = Math.min(sizeValueMin, dataPoint.value2 ?? 10);
|
|
55428
|
+
sizeValueMax = Math.max(sizeValueMax, dataPoint.value2 ?? 10);
|
|
55429
|
+
modifiedData.push({
|
|
55430
|
+
dimension: dataPoint.dimension,
|
|
55431
|
+
measure: dataPoint.value,
|
|
55432
|
+
sizeValue: dataPoint.value2,
|
|
55433
|
+
colorName: legend,
|
|
55434
|
+
shapeName: shape,
|
|
55435
|
+
shape: shapesMap.get(shape) || "Circle",
|
|
55436
|
+
color: colorsMap.get(legend) || "#6ba2b8ff"
|
|
55437
|
+
});
|
|
55438
|
+
};
|
|
55353
55439
|
colorsList.forEach((colorObject) => {
|
|
55354
55440
|
colorsMap.set(colorObject.name, colorObject.color);
|
|
55355
55441
|
});
|
|
55356
55442
|
shapesList.forEach((shapeObject) => {
|
|
55357
55443
|
shapesMap.set(shapeObject.name, shapeObject.markerShape);
|
|
55358
55444
|
});
|
|
55359
|
-
data.forEach((d) => {
|
|
55360
|
-
|
|
55361
|
-
|
|
55362
|
-
|
|
55363
|
-
|
|
55364
|
-
|
|
55365
|
-
|
|
55366
|
-
minMeasure = d.measure;
|
|
55367
|
-
}
|
|
55368
|
-
if (d.measure > maxMeasure || maxMeasure === void 0) {
|
|
55369
|
-
maxMeasure = d.measure;
|
|
55370
|
-
}
|
|
55445
|
+
data.ChartData.forEach((d) => {
|
|
55446
|
+
if (d.children && d.children.length > 0) {
|
|
55447
|
+
d.children.forEach((child) => {
|
|
55448
|
+
child.data.forEach((dataPoint) => {
|
|
55449
|
+
addDataToModifiedData(dataPoint, d.legend, child.legend);
|
|
55450
|
+
});
|
|
55451
|
+
});
|
|
55371
55452
|
}
|
|
55372
|
-
if (d.
|
|
55373
|
-
|
|
55374
|
-
|
|
55375
|
-
|
|
55376
|
-
}
|
|
55377
|
-
if (d.dimension > maxDimension || maxDimension === void 0) {
|
|
55378
|
-
maxDimension = d.dimension;
|
|
55379
|
-
}
|
|
55453
|
+
if (d.data && d.data.length > 0) {
|
|
55454
|
+
d.data.forEach((dataPoint) => {
|
|
55455
|
+
addDataToModifiedData(dataPoint, d.legend);
|
|
55456
|
+
});
|
|
55380
55457
|
}
|
|
55381
55458
|
});
|
|
55382
55459
|
} catch (e) {
|
|
@@ -55391,6 +55468,7 @@ const ScatterChart = ({
|
|
|
55391
55468
|
let yEndValue = chartFormatOptions.yAxisLabel.yAxisIntervalsVisibility && chartFormatOptions.yAxisLabel.yAxisMaxText !== "" ? parseFloat(chartFormatOptions.yAxisLabel.yAxisMaxText) : maxMeasure * 1.1;
|
|
55392
55469
|
xScale = linear$1().domain([xStartValue, xEndValue]).range([0, innerWidth2]);
|
|
55393
55470
|
yScale = linear$1().domain([yStartValue, yEndValue]).range([innerHeight2, 0]);
|
|
55471
|
+
sizeScale = linear$1().domain([sizeValueMin, sizeValueMax]).range([1, 10]);
|
|
55394
55472
|
} catch (e) {
|
|
55395
55473
|
logError$2(fileName, "initScale", e);
|
|
55396
55474
|
}
|
|
@@ -55468,10 +55546,10 @@ const ScatterChart = ({
|
|
|
55468
55546
|
let xCordinate;
|
|
55469
55547
|
switch (chartFormatOptions.plotArea.xCoordinate) {
|
|
55470
55548
|
case referenceLineTypes.Mean:
|
|
55471
|
-
xCordinate = mean(
|
|
55549
|
+
xCordinate = mean(modifiedData, (d) => d.dimension);
|
|
55472
55550
|
break;
|
|
55473
55551
|
case referenceLineTypes.Median:
|
|
55474
|
-
xCordinate = median(
|
|
55552
|
+
xCordinate = median(modifiedData, (d) => d.dimension);
|
|
55475
55553
|
break;
|
|
55476
55554
|
case referenceLineTypes.Custom:
|
|
55477
55555
|
xCordinate = convertStringToNumber(
|
|
@@ -55488,10 +55566,13 @@ const ScatterChart = ({
|
|
|
55488
55566
|
let yCordinate;
|
|
55489
55567
|
switch (chartFormatOptions.plotArea.yCoordinate) {
|
|
55490
55568
|
case referenceLineTypes.Mean:
|
|
55491
|
-
yCordinate = mean(
|
|
55569
|
+
yCordinate = mean(modifiedData, (d) => d.value);
|
|
55492
55570
|
break;
|
|
55493
55571
|
case referenceLineTypes.Median:
|
|
55494
|
-
yCordinate = median(
|
|
55572
|
+
yCordinate = median(
|
|
55573
|
+
modifiedData,
|
|
55574
|
+
(d) => d.value
|
|
55575
|
+
);
|
|
55495
55576
|
break;
|
|
55496
55577
|
case referenceLineTypes.Custom:
|
|
55497
55578
|
yCordinate = convertStringToNumber(
|
|
@@ -57114,7 +57195,8 @@ const DotPlot = ({
|
|
|
57114
57195
|
formatOptions,
|
|
57115
57196
|
data,
|
|
57116
57197
|
isReportEditable,
|
|
57117
|
-
onDataLabelCoordinatesChange
|
|
57198
|
+
onDataLabelCoordinatesChange,
|
|
57199
|
+
addLocalFilterFromLib
|
|
57118
57200
|
}) => {
|
|
57119
57201
|
const chartId = crypto.randomUUID();
|
|
57120
57202
|
let columnWidth = 0;
|
|
@@ -57285,7 +57367,9 @@ const DotPlot = ({
|
|
|
57285
57367
|
chartId,
|
|
57286
57368
|
0,
|
|
57287
57369
|
margin,
|
|
57288
|
-
staticLegendShape.rectangle
|
|
57370
|
+
staticLegendShape.rectangle,
|
|
57371
|
+
chartType,
|
|
57372
|
+
addLocalFilterFromLib
|
|
57289
57373
|
);
|
|
57290
57374
|
horizontalScrollBar(
|
|
57291
57375
|
seriesData,
|