pace-chart-lib 1.0.68 → 1.0.70
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/ChartJS/charts/CJSAreaChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +18 -0
- package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +17 -0
- package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +23 -0
- package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +19 -0
- package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +16 -0
- package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +16 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +15 -0
- package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +31 -0
- package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +9 -0
- package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +27 -0
- package/dist/Components/Charts/ChartJS/index.d.ts +21 -0
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +638 -0
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +172 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +96 -0
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +111 -0
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +26 -0
- package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +4 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +10 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +3 -0
- package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +3 -0
- package/dist/Components/Charts/Core/Common.types.d.ts +410 -0
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +250 -0
- package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +66 -0
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +631 -0
- package/dist/Services/ErrorLog.d.ts +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/pace-chart-lib.es.js +93 -52
- package/dist/pace-chart-lib.umd.js +93 -52
- package/package.json +1 -1
|
@@ -11332,7 +11332,8 @@
|
|
|
11332
11332
|
totalHideZeroValues: true,
|
|
11333
11333
|
totalDisplayUnits: "None",
|
|
11334
11334
|
editTotalTextToggle: false,
|
|
11335
|
-
editTotalText: "Total"
|
|
11335
|
+
editTotalText: "Total",
|
|
11336
|
+
showTotalLabel: true
|
|
11336
11337
|
},
|
|
11337
11338
|
toolTip: {
|
|
11338
11339
|
toolTipVisibility: true,
|
|
@@ -13597,7 +13598,15 @@
|
|
|
13597
13598
|
const ease = effectsMap[formatOptions.animation.animationEffect];
|
|
13598
13599
|
const accessors = makeAnnotations.accessors();
|
|
13599
13600
|
const isLineChartType = chartType === chartTypes.LineChart;
|
|
13600
|
-
|
|
13601
|
+
const isDotPlot = chartType === chartTypes.DotPlot;
|
|
13602
|
+
const toTranslate = (d, dx = 0) => {
|
|
13603
|
+
const x2 = accessors.x(d.data);
|
|
13604
|
+
const y2 = accessors.y(d.data);
|
|
13605
|
+
return `translate(${x2 + dx}, ${y2})`;
|
|
13606
|
+
};
|
|
13607
|
+
if (isDotPlot) {
|
|
13608
|
+
annotations.selectAll(".annotation").attr("opacity", 0).attr("transform", (d) => toTranslate(d, -15)).transition().duration(duration).ease(ease).attr("opacity", 1).attr("transform", (d) => toTranslate(d));
|
|
13609
|
+
} else if (isLineChartType) {
|
|
13601
13610
|
const xRange = xScale.range ? xScale.range() : [0, 1];
|
|
13602
13611
|
const xRangeMin = Math.min(xRange[0], xRange[1]);
|
|
13603
13612
|
const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
|
|
@@ -14253,38 +14262,49 @@
|
|
|
14253
14262
|
throw e;
|
|
14254
14263
|
}
|
|
14255
14264
|
};
|
|
14256
|
-
const dataTablePreCalculation = (formatOptions, yLabel, yTitle, seriesData, dimensionList) => {
|
|
14265
|
+
const dataTablePreCalculation = (formatOptions, yLabel, yTitle, seriesData, dimensionList, data) => {
|
|
14257
14266
|
try {
|
|
14267
|
+
const extraDataTableFields = data?.DataTableData ?? [];
|
|
14258
14268
|
let dataTable = [];
|
|
14259
14269
|
let dataTableHeight = 20;
|
|
14260
14270
|
if (formatOptions.dataTableProperties && formatOptions.dataTableProperties.dataTable) {
|
|
14271
|
+
const dataTableData = [...seriesData, ...extraDataTableFields];
|
|
14261
14272
|
formatOptions.xAxisLabel.xAxisLabelVisibility = false;
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14273
|
+
const isLegendIconVisible = formatOptions.dataTableProperties.disableLegendIcon ? false : true;
|
|
14274
|
+
const widthToSubtract = isLegendIconVisible ? 35 : 0;
|
|
14275
|
+
let exactAvailableWidth = yLabel + yTitle - widthToSubtract;
|
|
14276
|
+
dataTableData.forEach((data2, i) => {
|
|
14277
|
+
if (data2?.properties?.showInDataTable ?? true) {
|
|
14278
|
+
let tempObj = {
|
|
14279
|
+
data: data2.data.filter(
|
|
14280
|
+
(data3) => dimensionList.includes(data3.dimension)
|
|
14281
|
+
),
|
|
14282
|
+
properties: {
|
|
14283
|
+
legend: data2.properties.alias,
|
|
14284
|
+
color: data2.properties.color,
|
|
14285
|
+
markerColor: data2.properties.markerColor,
|
|
14286
|
+
markerShape: data2.properties.markerShape,
|
|
14287
|
+
lineStyle: data2.properties.lineStyle,
|
|
14288
|
+
height: calculateDataTableObjectHeight(
|
|
14289
|
+
data2.properties.alias.includes("~$~") ? data2.properties.alias.split("~$~")[1] : data2.properties.alias,
|
|
14290
|
+
exactAvailableWidth,
|
|
14291
|
+
formatOptions
|
|
14292
|
+
)
|
|
14293
|
+
}
|
|
14294
|
+
};
|
|
14295
|
+
dataTableHeight += tempObj.properties.height;
|
|
14296
|
+
dataTable.push(tempObj);
|
|
14297
|
+
}
|
|
14283
14298
|
});
|
|
14284
14299
|
} else {
|
|
14285
14300
|
dataTableHeight = 0;
|
|
14286
14301
|
dataTable = [];
|
|
14287
14302
|
}
|
|
14303
|
+
if (dataTable.length == 0) {
|
|
14304
|
+
dataTableHeight = 0;
|
|
14305
|
+
dataTable = [];
|
|
14306
|
+
formatOptions.dataTableProperties.dataTable = false;
|
|
14307
|
+
}
|
|
14288
14308
|
return { dataTable, dataTableHeight };
|
|
14289
14309
|
} catch (e) {
|
|
14290
14310
|
}
|
|
@@ -14327,7 +14347,7 @@
|
|
|
14327
14347
|
).style("text-align", "center").style("vertical-align", "middle").text("");
|
|
14328
14348
|
}
|
|
14329
14349
|
let legendsParentTag = temp.append("foreignObject").attr("x", -margin.left).attr("y", tableStartY + yCordinate).attr("width", margin.left).attr("height", cellHeight2);
|
|
14330
|
-
let innerdiv = legendsParentTag.append("xhtml:div").style("display", "flex").style("justify-content", "
|
|
14350
|
+
let innerdiv = legendsParentTag.append("xhtml:div").style("display", "flex").style("justify-content", "center").style("align-items", "center").attr("class", "parentClass").style("flex-wrap", "wrap").style("flex-direction", "row").style("pointer-events", "auto").style("width", cellWidth).style("height", `${cellHeight2}px`).style("padding-left", formatOptions.dataTableProperties.disableLegendIcon ? `2px` : `5px`).style("padding-right", `3px`).style(
|
|
14331
14351
|
"border-width",
|
|
14332
14352
|
getBorderStyle(
|
|
14333
14353
|
formatOptions,
|
|
@@ -14390,7 +14410,7 @@
|
|
|
14390
14410
|
).style("font-style", fontStyle.includes("Italic") ? "Italic" : "").style(
|
|
14391
14411
|
"text-decoration",
|
|
14392
14412
|
fontStyle.includes("Underline") ? "Underline" : ""
|
|
14393
|
-
).style("padding-left", `5px`).style("white-space", "normal").style("overflow-wrap", "break-word").style("color", "black").style("width", "100%").style("font-weight", fontStyle.includes("Bold") ? "Bold" : "").attr("title", text).text(text);
|
|
14413
|
+
).style("padding-left", `5px`).style("white-space", "normal").style("overflow-wrap", "break-word").style("color", "black").style("width", formatOptions.dataTableProperties.disableLegendIcon ? "100%" : "calc(100% - 30px)").style("font-weight", fontStyle.includes("Bold") ? "Bold" : "").attr("title", text).text(text);
|
|
14394
14414
|
};
|
|
14395
14415
|
let innerVerticalBorderLineWidth = formatOptions.dataTableInnerBorder.verticalBorderLineWidth;
|
|
14396
14416
|
let innerHorizontalBorderLineWidth = formatOptions.dataTableInnerBorder.horizontalBorderLineWidth;
|
|
@@ -17606,7 +17626,8 @@
|
|
|
17606
17626
|
yLabel,
|
|
17607
17627
|
yTitle,
|
|
17608
17628
|
seriesData,
|
|
17609
|
-
chartJSON.dimensionList
|
|
17629
|
+
chartJSON.dimensionList,
|
|
17630
|
+
data
|
|
17610
17631
|
));
|
|
17611
17632
|
initSvg$1(
|
|
17612
17633
|
// for svg creation
|
|
@@ -18192,7 +18213,8 @@
|
|
|
18192
18213
|
yLabel,
|
|
18193
18214
|
yTitle,
|
|
18194
18215
|
seriesData,
|
|
18195
|
-
chartJSON.dimensionList
|
|
18216
|
+
chartJSON.dimensionList,
|
|
18217
|
+
data
|
|
18196
18218
|
));
|
|
18197
18219
|
initSvg$1(
|
|
18198
18220
|
// for svg creation
|
|
@@ -19315,7 +19337,8 @@
|
|
|
19315
19337
|
yLabel,
|
|
19316
19338
|
yTitle,
|
|
19317
19339
|
seriesData,
|
|
19318
|
-
chartJSON.dimensionList
|
|
19340
|
+
chartJSON.dimensionList,
|
|
19341
|
+
data
|
|
19319
19342
|
));
|
|
19320
19343
|
initSvg$1(
|
|
19321
19344
|
// for svg creation
|
|
@@ -19871,7 +19894,8 @@
|
|
|
19871
19894
|
yLabel,
|
|
19872
19895
|
yTitle,
|
|
19873
19896
|
seriesData,
|
|
19874
|
-
chartJSON.dimensionList
|
|
19897
|
+
chartJSON.dimensionList,
|
|
19898
|
+
data
|
|
19875
19899
|
));
|
|
19876
19900
|
initSvg$1(
|
|
19877
19901
|
// for svg creation
|
|
@@ -20610,7 +20634,8 @@
|
|
|
20610
20634
|
yLabel,
|
|
20611
20635
|
yTitle,
|
|
20612
20636
|
seriesData,
|
|
20613
|
-
chartJSON.dimensionList
|
|
20637
|
+
chartJSON.dimensionList,
|
|
20638
|
+
data
|
|
20614
20639
|
));
|
|
20615
20640
|
initSvg$1(
|
|
20616
20641
|
// for svg creation
|
|
@@ -22453,7 +22478,8 @@
|
|
|
22453
22478
|
yLabel,
|
|
22454
22479
|
yTitle,
|
|
22455
22480
|
seriesData,
|
|
22456
|
-
chartJSON.dimensionList
|
|
22481
|
+
chartJSON.dimensionList,
|
|
22482
|
+
data
|
|
22457
22483
|
));
|
|
22458
22484
|
initSvg$1(
|
|
22459
22485
|
// for svg creation
|
|
@@ -23027,7 +23053,8 @@
|
|
|
23027
23053
|
yLabel,
|
|
23028
23054
|
yTitle,
|
|
23029
23055
|
seriesData,
|
|
23030
|
-
chartJSON.dimensionList
|
|
23056
|
+
chartJSON.dimensionList,
|
|
23057
|
+
data
|
|
23031
23058
|
));
|
|
23032
23059
|
initSvg$1(
|
|
23033
23060
|
// for svg creation
|
|
@@ -23606,7 +23633,8 @@
|
|
|
23606
23633
|
yLabel,
|
|
23607
23634
|
yTitle,
|
|
23608
23635
|
seriesData,
|
|
23609
|
-
chartJSON.dimensionList
|
|
23636
|
+
chartJSON.dimensionList,
|
|
23637
|
+
data
|
|
23610
23638
|
));
|
|
23611
23639
|
initSvg$1(
|
|
23612
23640
|
// for svg creation
|
|
@@ -27124,7 +27152,8 @@
|
|
|
27124
27152
|
yLabel,
|
|
27125
27153
|
yTitle,
|
|
27126
27154
|
seriesData,
|
|
27127
|
-
chartJSON.dimensionList
|
|
27155
|
+
chartJSON.dimensionList,
|
|
27156
|
+
data
|
|
27128
27157
|
));
|
|
27129
27158
|
initSvg$1(
|
|
27130
27159
|
// for svg creation
|
|
@@ -27719,7 +27748,8 @@
|
|
|
27719
27748
|
yLabel,
|
|
27720
27749
|
yTitle,
|
|
27721
27750
|
seriesData,
|
|
27722
|
-
chartJSON.dimensionList
|
|
27751
|
+
chartJSON.dimensionList,
|
|
27752
|
+
data
|
|
27723
27753
|
));
|
|
27724
27754
|
initSvg$1(
|
|
27725
27755
|
// for svg creation
|
|
@@ -28317,7 +28347,8 @@
|
|
|
28317
28347
|
yLabel,
|
|
28318
28348
|
yTitle,
|
|
28319
28349
|
seriesData,
|
|
28320
|
-
chartJSON.dimensionList
|
|
28350
|
+
chartJSON.dimensionList,
|
|
28351
|
+
data
|
|
28321
28352
|
));
|
|
28322
28353
|
initSvg$1(
|
|
28323
28354
|
// for svg creation
|
|
@@ -28846,7 +28877,9 @@
|
|
|
28846
28877
|
chartFormatOptions.total.totalDecimalPrecision
|
|
28847
28878
|
)(totalValue);
|
|
28848
28879
|
let cords = getTotalValueCords(chartFormatOptions, chartTitleHeight, innerWidth2, innerHeight2);
|
|
28849
|
-
chartAreaTagG.append("g").attr("transform", `translate(${cords.x}, ${cords.y})`).style("user-select", "none").append("text").text(
|
|
28880
|
+
chartAreaTagG.append("g").attr("transform", `translate(${cords.x}, ${cords.y})`).style("user-select", "none").append("text").text(
|
|
28881
|
+
chartFormatOptions.total.showTotalLabel !== false ? `${chartFormatOptions.total.editTotalTextToggle ? chartFormatOptions.total.editTotalText : "Total"} : ${formatedTotalValue}` : formatedTotalValue
|
|
28882
|
+
).style(
|
|
28850
28883
|
"fill",
|
|
28851
28884
|
chartFormatOptions.total.totalColor !== commonColors.white ? chartFormatOptions.total.totalColor : "none"
|
|
28852
28885
|
).style("font-family", chartFormatOptions.total.totalFontFamily).style("font-size", chartFormatOptions.total.totalFontSize).style("font-style", fontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : "").style(
|
|
@@ -29751,7 +29784,8 @@
|
|
|
29751
29784
|
if (chartFormatOptions.total && chartFormatOptions.total.totalVisibility) {
|
|
29752
29785
|
let total = pieTotalValue;
|
|
29753
29786
|
let fontStyle = chartFormatOptions.total.totalFontStyle;
|
|
29754
|
-
chartAreaTagG.append("g").attr("transform", getPiePosition()).attr("pointer-events", "none").attr("text-anchor", "middle")
|
|
29787
|
+
const totalGroup = chartAreaTagG.append("g").attr("transform", getPiePosition()).attr("pointer-events", "none").attr("text-anchor", "middle");
|
|
29788
|
+
totalGroup.append("text").style(
|
|
29755
29789
|
"fill",
|
|
29756
29790
|
chartFormatOptions.total.totalColor !== commonColors.white ? chartFormatOptions.total.totalColor : "none"
|
|
29757
29791
|
).style("font-family", chartFormatOptions.total.totalFontFamily).style("font-size", chartFormatOptions.total.totalFontSize).style(
|
|
@@ -29766,7 +29800,7 @@
|
|
|
29766
29800
|
).attr("text-anchor", "middle").attr(
|
|
29767
29801
|
"visibility",
|
|
29768
29802
|
chartFormatOptions.plotArea.dataLabelValue ? "visible" : "hidden"
|
|
29769
|
-
).text(chartFormatOptions.total.editTotalText).append("tspan").attr("x", 0).attr("y", "1.3em").attr(
|
|
29803
|
+
).text(chartFormatOptions.total.showTotalLabel !== false ? chartFormatOptions.total.editTotalText : "").append("tspan").attr("x", 0).attr("y", chartFormatOptions.total.showTotalLabel !== false ? "1.3em" : "0").attr(
|
|
29770
29804
|
"font-weight",
|
|
29771
29805
|
fontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : 300
|
|
29772
29806
|
).text(
|
|
@@ -29776,6 +29810,9 @@
|
|
|
29776
29810
|
chartFormatOptions.total.totalDecimalPrecision
|
|
29777
29811
|
)(total)
|
|
29778
29812
|
);
|
|
29813
|
+
if (chartFormatOptions.animation.animationEnabled) {
|
|
29814
|
+
totalGroup.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
|
|
29815
|
+
}
|
|
29779
29816
|
}
|
|
29780
29817
|
} catch (error) {
|
|
29781
29818
|
logError$2(fileName$7, "drawTotalValue", error);
|
|
@@ -31427,7 +31464,17 @@
|
|
|
31427
31464
|
)(d)
|
|
31428
31465
|
).attr("visibility", (d) => d === "" ? "hidden" : "visible");
|
|
31429
31466
|
if (chartFormatOptions.animation.animationEnabled) {
|
|
31430
|
-
|
|
31467
|
+
const duration = chartFormatOptions.animation.animationDuration;
|
|
31468
|
+
const ease = effectsMap[chartFormatOptions.animation.animationEffect];
|
|
31469
|
+
lg.selectAll("text").attr("opacity", 0).attr("transform", function(d, i) {
|
|
31470
|
+
const factor = range2 / config.majorTicks * i;
|
|
31471
|
+
const tickAngle = config.minAngle + factor;
|
|
31472
|
+
return `rotate(${tickAngle}) translate(0, ${config.labelInset - radius + 20})`;
|
|
31473
|
+
}).transition().duration(duration).ease(ease).attr("opacity", 1).attr("transform", function(d, i) {
|
|
31474
|
+
const factor = range2 / config.majorTicks * i;
|
|
31475
|
+
const tickAngle = config.minAngle + factor;
|
|
31476
|
+
return `rotate(${tickAngle}) translate(0, ${config.labelInset - radius})`;
|
|
31477
|
+
});
|
|
31431
31478
|
}
|
|
31432
31479
|
}
|
|
31433
31480
|
if (chartFormatOptions.pointerValue.showPointerValue && seriesData.length === 2) {
|
|
@@ -56492,7 +56539,7 @@
|
|
|
56492
56539
|
rects = rectsEnter.merge(rects);
|
|
56493
56540
|
if (formatOptions.plotArea.plotAreaDataLabel == "2" && k2 != 1) {
|
|
56494
56541
|
const textGroups = barGroups.selectAll("text").data((d) => d);
|
|
56495
|
-
textGroups.enter().append("text").text(
|
|
56542
|
+
const textEnter = textGroups.enter().append("text").text(
|
|
56496
56543
|
(d) => getNumberWithFormat(
|
|
56497
56544
|
d[1] - d[0],
|
|
56498
56545
|
formatOptions.plotArea.plotAreaDisplayUnits,
|
|
@@ -56504,10 +56551,12 @@
|
|
|
56504
56551
|
(d) => xScale(
|
|
56505
56552
|
!isAdvancedWaterfall ? d.data.dimension || d.data.legend : d.data.xKey
|
|
56506
56553
|
) + xScale.bandwidth() / 2
|
|
56507
|
-
).attr("y",
|
|
56554
|
+
).attr("y", yScaleLeft(0) ?? 0).style("font-size", "11px").attr("text-anchor", "middle").attr(
|
|
56508
56555
|
"visibility",
|
|
56509
56556
|
(d) => d[1] - d[0] !== 0 && yScaleLeft(d[1]) ? "visible" : "hidden"
|
|
56510
56557
|
);
|
|
56558
|
+
const finalTexts = shouldAnimate ? textEnter.transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]) : textEnter;
|
|
56559
|
+
finalTexts.attr("y", (d) => d[1] ? yScaleLeft(d[1]) - 15 : 0);
|
|
56511
56560
|
textGroups.exit().remove();
|
|
56512
56561
|
}
|
|
56513
56562
|
}
|
|
@@ -56830,14 +56879,6 @@
|
|
|
56830
56879
|
chartJSON
|
|
56831
56880
|
));
|
|
56832
56881
|
setSVGContainer(margin);
|
|
56833
|
-
({ dataTable, dataTableHeight } = dataTablePreCalculation(
|
|
56834
|
-
// calculations for data tables
|
|
56835
|
-
formatOptions,
|
|
56836
|
-
yLabel,
|
|
56837
|
-
yTitle,
|
|
56838
|
-
seriesData,
|
|
56839
|
-
chartJSON.dimensionList
|
|
56840
|
-
));
|
|
56841
56882
|
initSvg$1(
|
|
56842
56883
|
// for svg creation
|
|
56843
56884
|
svg,
|
|
@@ -57123,7 +57164,7 @@
|
|
|
57123
57164
|
customYaxisMaxValue,
|
|
57124
57165
|
barChart,
|
|
57125
57166
|
innerWidth2
|
|
57126
|
-
).customTickValue ??
|
|
57167
|
+
).customTickValue ?? innerWidth2 / 30
|
|
57127
57168
|
).tickPadding(8).tickSizeOuter(0);
|
|
57128
57169
|
};
|
|
57129
57170
|
const getChartType = () => {
|