pace-chart-lib 1.0.65 → 1.0.67

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.
Files changed (72) hide show
  1. package/dist/pace-chart-lib.es.js +226 -115
  2. package/dist/pace-chart-lib.umd.js +226 -115
  3. package/package.json +1 -1
  4. package/dist/Components/Charts/ChartJS/charts/CJSAreaChart.d.ts +0 -19
  5. package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +0 -17
  6. package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +0 -19
  7. package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +0 -19
  8. package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +0 -18
  9. package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +0 -19
  10. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +0 -17
  11. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +0 -17
  12. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +0 -17
  13. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +0 -17
  14. package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +0 -23
  15. package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +0 -19
  16. package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +0 -16
  17. package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +0 -16
  18. package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +0 -15
  19. package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +0 -15
  20. package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +0 -15
  21. package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +0 -15
  22. package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +0 -31
  23. package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +0 -9
  24. package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +0 -27
  25. package/dist/Components/Charts/ChartJS/index.d.ts +0 -21
  26. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +0 -4
  27. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +0 -4
  28. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +0 -4
  29. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +0 -638
  30. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -172
  31. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +0 -4
  32. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +0 -4
  33. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +0 -4
  34. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +0 -4
  35. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +0 -4
  36. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +0 -4
  37. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +0 -4
  38. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +0 -4
  39. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +0 -4
  40. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +0 -4
  41. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +0 -4
  42. package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +0 -4
  43. package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +0 -4
  44. package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +0 -4
  45. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot.d.ts +0 -4
  46. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +0 -4
  47. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +0 -4
  48. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +0 -96
  49. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +0 -111
  50. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +0 -26
  51. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +0 -4
  52. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +0 -4
  53. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +0 -4
  54. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +0 -3
  55. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +0 -3
  56. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +0 -4
  57. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +0 -4
  58. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +0 -4
  59. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +0 -3
  60. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +0 -4
  61. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +0 -4
  62. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +0 -4
  63. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +0 -4
  64. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +0 -10
  65. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +0 -3
  66. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +0 -3
  67. package/dist/Components/Charts/Core/Common.types.d.ts +0 -410
  68. package/dist/Components/Charts/Core/CommonFunctions.d.ts +0 -250
  69. package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +0 -66
  70. package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +0 -630
  71. package/dist/Services/ErrorLog.d.ts +0 -1
  72. package/dist/index.d.ts +0 -37
@@ -13097,7 +13097,7 @@ function setChartTitle(svg, formatOptions, width, chartTitleHeight) {
13097
13097
  let object2 = svg.append("foreignObject").attr(
13098
13098
  "visibility",
13099
13099
  formatOptions.chartTitle.chartTitleVisibility ? "visible" : "hidden"
13100
- ).attr("transform", `translate(2,2)`).attr("class", "chartTitle").attr("width", width).attr("height", chartTitleHeight + "px");
13100
+ ).attr("transform", `translate(2,2)`).attr("class", "chartTitle").attr("width", width - 4).attr("height", chartTitleHeight + "px");
13101
13101
  const parseHTMLText = (html) => {
13102
13102
  const temp = document.createElement("div");
13103
13103
  temp.innerHTML = html;
@@ -13593,16 +13593,42 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
13593
13593
  const duration = formatOptions.animation.animationDuration;
13594
13594
  const ease = effectsMap[formatOptions.animation.animationEffect];
13595
13595
  const accessors = makeAnnotations.accessors();
13596
- annotations.selectAll(".annotation").attr("transform", function(d) {
13597
- const x2 = accessors.x(d.data);
13598
- const yScale = d.data?.y?.axis === axisTypes.primary ? yScaleLeft : yScaleRight;
13599
- const startY = yScale(0);
13600
- return `translate(${x2}, ${startY})`;
13601
- }).transition().duration(duration).ease(ease).attr("transform", function(d) {
13602
- const x2 = accessors.x(d.data);
13603
- const y2 = accessors.y(d.data);
13604
- return `translate(${x2}, ${y2})`;
13605
- });
13596
+ const isLineChartType = chartType === chartTypes.LineChart;
13597
+ if (isLineChartType) {
13598
+ const xRange = xScale.range ? xScale.range() : [0, 1];
13599
+ const xRangeMin = Math.min(xRange[0], xRange[1]);
13600
+ const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
13601
+ const invertEase = (progress, steps = 100) => {
13602
+ for (let i = 0; i <= steps; i++) {
13603
+ const t = i / steps;
13604
+ if ((ease ?? linear$2)(t) >= progress) return t;
13605
+ }
13606
+ return 1;
13607
+ };
13608
+ annotations.selectAll(".annotation").attr("opacity", 0).each(function(d) {
13609
+ const x2 = accessors.x(d.data) ?? xRangeMin;
13610
+ const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
13611
+ const delay = invertEase(fraction) * duration;
13612
+ select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
13613
+ });
13614
+ } else {
13615
+ annotations.selectAll(".annotation").attr("transform", function(d) {
13616
+ if (barChart) {
13617
+ const startX = yScaleLeft ? yScaleLeft(0) : 0;
13618
+ const y2 = accessors.y(d.data);
13619
+ return `translate(${startX}, ${y2})`;
13620
+ } else {
13621
+ const x2 = accessors.x(d.data);
13622
+ const scale2 = d.data?.y?.axis === axisTypes.primary ? yScaleLeft : yScaleRight ?? yScaleLeft;
13623
+ const startY = scale2 ? scale2(0) : 0;
13624
+ return `translate(${x2}, ${startY})`;
13625
+ }
13626
+ }).transition().duration(duration).ease(ease).attr("transform", function(d) {
13627
+ const x2 = accessors.x(d.data);
13628
+ const y2 = accessors.y(d.data);
13629
+ return `translate(${x2}, ${y2})`;
13630
+ });
13631
+ }
13606
13632
  }
13607
13633
  }
13608
13634
  } catch (error) {
@@ -15560,16 +15586,41 @@ function stacklineAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin
15560
15586
  const duration = formatOptions.animation.animationDuration;
15561
15587
  const ease = effectsMap[formatOptions.animation.animationEffect];
15562
15588
  const accessors = makeAnnotations.accessors();
15563
- annotations.selectAll(".annotation").attr("transform", function(d) {
15564
- const x2 = accessors.x(d.data);
15565
- const yScale = d.data?.y?.axis === axisTypes.primary ? yScaleLeft : yScaleRight;
15566
- const startY = yScale ? yScale(0) : 0;
15567
- return `translate(${x2}, ${startY})`;
15568
- }).transition().duration(duration).ease(ease).attr("transform", function(d) {
15569
- const x2 = accessors.x(d.data);
15570
- const y2 = accessors.y(d.data);
15571
- return `translate(${x2}, ${y2})`;
15572
- });
15589
+ const isStackLineType = chartType === chartTypes.StackLineChart || chartType === chartTypes.NormalizedStackLineChart;
15590
+ if (isStackLineType) {
15591
+ const xRange = xScale.range ? xScale.range() : [0, 1];
15592
+ const xRangeMin = Math.min(xRange[0], xRange[1]);
15593
+ const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
15594
+ const invertEase = (progress, steps = 100) => {
15595
+ for (let i = 0; i <= steps; i++) {
15596
+ const t = i / steps;
15597
+ if ((ease ?? linear$2)(t) >= progress) return t;
15598
+ }
15599
+ return 1;
15600
+ };
15601
+ annotations.selectAll(".annotation").attr("opacity", 0).each(function(d) {
15602
+ const x2 = accessors.x(d.data) ?? xRangeMin;
15603
+ const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
15604
+ const delay = invertEase(fraction) * duration;
15605
+ select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
15606
+ });
15607
+ } else {
15608
+ annotations.selectAll(".annotation").attr("transform", function(d) {
15609
+ if (barChart) {
15610
+ const startX = yScaleLeft ? yScaleLeft(0) : 0;
15611
+ const y2 = accessors.y(d.data);
15612
+ return `translate(${startX}, ${y2})`;
15613
+ } else {
15614
+ const x2 = accessors.x(d.data);
15615
+ const startY = yScaleLeft ? yScaleLeft(0) : 0;
15616
+ return `translate(${x2}, ${startY})`;
15617
+ }
15618
+ }).transition().duration(duration).ease(ease).attr("transform", function(d) {
15619
+ const x2 = accessors.x(d.data);
15620
+ const y2 = accessors.y(d.data);
15621
+ return `translate(${x2}, ${y2})`;
15622
+ });
15623
+ }
15573
15624
  }
15574
15625
  }
15575
15626
  } catch (error) {
@@ -16393,22 +16444,44 @@ function lineMarkers(lines, chartData, type, xScale, yScale, yScaleRight, toolti
16393
16444
  if (formatOptions.animation.animationEnabled) {
16394
16445
  const duration = formatOptions.animation.animationDuration;
16395
16446
  const ease = effectsMap[formatOptions.animation.animationEffect] ?? linear$2;
16396
- const xRange = xScale.range();
16397
- const xRangeMin = Math.min(xRange[0], xRange[1]);
16398
- const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
16399
- const invertEase = (progress, steps = 100) => {
16400
- for (let i = 0; i <= steps; i++) {
16401
- const t = i / steps;
16402
- if (ease(t) >= progress) return t;
16403
- }
16404
- return 1;
16405
- };
16406
- mergedMarkers.attr("opacity", 0).each(function(d) {
16407
- const x2 = xScale(d.dimension) ?? xRangeMin;
16408
- const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
16409
- const delay = invertEase(fraction) * duration;
16410
- select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
16411
- });
16447
+ const isAreaType = [
16448
+ chartTypes.AreaChart,
16449
+ chartTypes.StackAreaChart,
16450
+ chartTypes.NormalizedStackAreaChart,
16451
+ chartTypes.CombinationArea,
16452
+ chartTypes.CombinationStackArea
16453
+ ].includes(type);
16454
+ if (isAreaType) {
16455
+ const stackedTypes = [
16456
+ chartTypes.StackAreaChart,
16457
+ chartTypes.NormalizedStackAreaChart,
16458
+ chartTypes.CombinationStackArea
16459
+ ];
16460
+ mergedMarkers.each(function(d) {
16461
+ const requiredYScale = d.axis === axisTypes.primary ? yScale : yScaleRight;
16462
+ const x2 = xScale(d.dimension);
16463
+ const finalY = stackedTypes.includes(type) ? d[1] > 0 ? requiredYScale(d[1]) : requiredYScale(d[0]) : requiredYScale(d.value);
16464
+ const baseY = yScale(0);
16465
+ select$2(this).attr("transform", `translate(${x2},${baseY})`).transition().duration(duration).ease(ease).attr("transform", `translate(${x2},${finalY})`);
16466
+ });
16467
+ } else {
16468
+ const xRange = xScale.range();
16469
+ const xRangeMin = Math.min(xRange[0], xRange[1]);
16470
+ const xRangeSpan = Math.max(xRange[0], xRange[1]) - xRangeMin;
16471
+ const invertEase = (progress, steps = 100) => {
16472
+ for (let i = 0; i <= steps; i++) {
16473
+ const t = i / steps;
16474
+ if (ease(t) >= progress) return t;
16475
+ }
16476
+ return 1;
16477
+ };
16478
+ mergedMarkers.attr("opacity", 0).each(function(d) {
16479
+ const x2 = xScale(d.dimension) ?? xRangeMin;
16480
+ const fraction = xRangeSpan > 0 ? Math.max(0, Math.min(1, (x2 - xRangeMin) / xRangeSpan)) : 0;
16481
+ const delay = invertEase(fraction) * duration;
16482
+ select$2(this).transition().delay(delay).duration(0).attr("opacity", 1);
16483
+ });
16484
+ }
16412
16485
  }
16413
16486
  });
16414
16487
  } catch (error) {
@@ -18042,7 +18115,6 @@ const CustomColumnChart = ({
18042
18115
  let requiredData = [];
18043
18116
  let scrollPosition = 0;
18044
18117
  let visibleBars;
18045
- let annotationTimeoutId;
18046
18118
  let chartJSON = {
18047
18119
  dimensionList,
18048
18120
  chartType,
@@ -18980,7 +19052,6 @@ const CustomColumnChart = ({
18980
19052
  filteredDimension,
18981
19053
  xScale
18982
19054
  );
18983
- clearTimeout(annotationTimeoutId);
18984
19055
  const renderAnnotationsAndTotals = () => {
18985
19056
  commonAnnotationsForCustomChart(
18986
19057
  filteredData,
@@ -19025,15 +19096,8 @@ const CustomColumnChart = ({
19025
19096
  isReportEditable
19026
19097
  );
19027
19098
  };
19028
- if (formatOptions.animation.animationEnabled) {
19029
- svg.selectAll(".annotation-group").remove();
19030
- annotationTimeoutId = setTimeout(
19031
- renderAnnotationsAndTotals,
19032
- formatOptions.animation.animationDuration
19033
- );
19034
- } else {
19035
- renderAnnotationsAndTotals();
19036
- }
19099
+ svg.selectAll(".annotation-group").remove();
19100
+ renderAnnotationsAndTotals();
19037
19101
  };
19038
19102
  const createStackData = (requiredStackChatData) => {
19039
19103
  let legendList = requiredStackChatData.data.map((d) => d.legend);
@@ -21000,19 +21064,20 @@ function marginCalculationForBubbleScatter(width, height, maxMeasure, formatOpti
21000
21064
  let maxLegendWidth = maxLegendDimensions[0];
21001
21065
  let legendMargin = width15Percent < maxLegendWidth + 10 ? width15Percent : maxLegendWidth + 10;
21002
21066
  let totalHeight = formatOptions.plotArea.numberOfBubbles ? 20 : 0;
21003
- let dimensionHeightWidth = preCalculateTextDimensions(
21004
- getNumberWithFormatFunction(
21005
- formatOptions.xAxisLabel.xAxisDisplayUnits,
21006
- formatOptions.xAxisLabel.xAxisNumberFormat,
21007
- formatOptions.xAxisLabel.xAxisLabelDecimalPrecision ?? "2"
21008
- )(
21009
- maxDimension
21010
- ).toString(),
21011
- convertStringToNumber(formatOptions.xAxisLabel.xAxisLabelFontSize),
21067
+ const maxDim = getNumberWithFormatFunction(
21068
+ formatOptions.xAxisLabel.xAxisDisplayUnits,
21069
+ formatOptions.xAxisLabel.xAxisNumberFormat,
21070
+ formatOptions.xAxisLabel.xAxisLabelDecimalPrecision ?? "2"
21071
+ )(
21072
+ maxDimension
21073
+ ).toString();
21074
+ let dimensionHeightWidth = calculateWidthHeightDynamically(
21075
+ maxDim,
21076
+ formatOptions.xAxisLabel.xAxisLabelFontSize,
21012
21077
  formatOptions.xAxisLabel.xAxisLabelFontFamily,
21013
21078
  formatOptions.xAxisLabel.xAxisLabelRotation
21014
21079
  );
21015
- let maxDimensionWidth = dimensionHeightWidth.width + 10;
21080
+ let maxDimensionWidth = dimensionHeightWidth[3] + 10;
21016
21081
  let xTitle = formatOptions.xAxisTitle.xAxisTitleVisibility ? formatOptions.xAxisTitle.xAxisDynamicTitleText.length !== 0 ? preCalculateTextDimensions(
21017
21082
  formatOptions.xAxisTitle.xAxisTitleHTML,
21018
21083
  void 0,
@@ -27357,7 +27422,7 @@ const AreaChart = ({
27357
27422
  });
27358
27423
  areaGroupsEnter.merge(areaGroups).each(function(d) {
27359
27424
  const g = select$2(this);
27360
- g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2.data)).attr(
27425
+ g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => enableTransition ? areaGeneratorStart(d2.data) : areaGenerator(d2.data)).attr(
27361
27426
  "stroke",
27362
27427
  (d2) => d2.properties.areaBorderColor !== commonColors.white ? d2.properties.areaBorderColor : "none"
27363
27428
  ).attr("stroke-dasharray", (d2) => {
@@ -27376,7 +27441,11 @@ const AreaChart = ({
27376
27441
  ).attr(
27377
27442
  "stroke-width",
27378
27443
  (d2) => !isLinesAndMarkersVisible ? 0 : d2.properties.lineStyle !== staticLineStyle.none && formatOptions.plotArea.plotAreaHideLineAndMarkers ? d2.properties.lineWidth : "0"
27379
- ).attr("fill", "none");
27444
+ ).attr("fill", "none").each(function(d2) {
27445
+ if (enableTransition) {
27446
+ select$2(this).transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]).attr("d", areaGenerator(d2.data));
27447
+ }
27448
+ });
27380
27449
  g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => areaGenerator(d2.data)).attr("fill", commonColors.transparent).attr("stroke", "none").style("pointer-events", "all").raise();
27381
27450
  onHoverMarkerForAreaChartFamily(
27382
27451
  formatOptions,
@@ -27910,7 +27979,7 @@ const StackAreaChart = ({
27910
27979
  });
27911
27980
  areaGroupsEnter.merge(areaGroups).each(function(d, i) {
27912
27981
  const g = select$2(this);
27913
- g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => areaGenerator(d2)).attr(
27982
+ g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => enableTransition ? areaGeneratorStart(d2) : areaGenerator(d2)).attr(
27914
27983
  "stroke",
27915
27984
  (d2) => d2.color !== commonColors.white ? seriesData[i].properties.areaBorderColor : "none"
27916
27985
  ).attr("stroke-dasharray", (d2) => {
@@ -27931,7 +28000,11 @@ const StackAreaChart = ({
27931
28000
  ).attr(
27932
28001
  "stroke-width",
27933
28002
  () => !isLinesAndMarkersVisible ? 0 : seriesData[i].properties.lineStyle !== staticLineStyle.none ? seriesData[i].properties.lineWidth : "0"
27934
- ).attr("fill", "none").style("pointer-events", "none");
28003
+ ).attr("fill", "none").style("pointer-events", "none").each(function(d2) {
28004
+ if (enableTransition) {
28005
+ select$2(this).transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]).attr("d", areaGenerator(d2));
28006
+ }
28007
+ });
27935
28008
  g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => areaGenerator(d2)).attr("fill", commonColors.transparent).attr("stroke", "none").style("pointer-events", "all").raise();
27936
28009
  svg.selectAll(
27937
28010
  '[hoverId="' + (seriesData[d.index].properties.alias || seriesData[d.index].properties.name || "Legend").replace(/ /g, "-") + '"]'
@@ -28458,7 +28531,7 @@ const NormalizedStackAreaChart = ({
28458
28531
  ).y0((d) => yScaleLeft(d[0])).y1((d) => yScaleLeft(d[1])).defined((d) => d.data.hideZero ? Boolean(d[0]) : true).curve(curveLinear$1);
28459
28532
  const columnGeneratorStart = area().x(
28460
28533
  (d) => xScale(d.data.dimension) ? xScale(d.data.dimension) : null
28461
- ).y0((d) => yScaleLeft(d[0])).y1((d) => yScaleLeft(d[1])).defined(
28534
+ ).y0(() => yScaleLeft(0)).y1(() => yScaleLeft(0)).defined(
28462
28535
  (d) => d.data.hideZero ? Boolean(d.data.key) : true
28463
28536
  ).curve(getCurveType(formatOptions));
28464
28537
  let areas = gTag.selectAll(".lineGroup").data([stackChartData]);
@@ -28479,7 +28552,7 @@ const NormalizedStackAreaChart = ({
28479
28552
  });
28480
28553
  areaGroupsEnter.merge(areaGroups).each(function(d, i) {
28481
28554
  const g = select$2(this);
28482
- g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => columnGenerator(d2)).attr(
28555
+ g.selectAll("path.visibleLine").data([d]).join("path").attr("class", "visibleLine parentGroup").attr("d", (d2) => enableTransition ? columnGeneratorStart(d2) : columnGenerator(d2)).attr(
28483
28556
  "stroke",
28484
28557
  (d2) => d2.color !== commonColors.white ? seriesData[i].properties.areaBorderColor : "none"
28485
28558
  ).attr("stroke-dasharray", (d2) => {
@@ -28500,7 +28573,11 @@ const NormalizedStackAreaChart = ({
28500
28573
  ).attr(
28501
28574
  "stroke-width",
28502
28575
  () => !isLinesAndMarkersVisible ? 0 : seriesData[i].properties.lineStyle !== staticLineStyle.none ? seriesData[i].properties.lineWidth : "0"
28503
- ).attr("fill", "none").style("pointer-events", "none");
28576
+ ).attr("fill", "none").style("pointer-events", "none").each(function(d2) {
28577
+ if (enableTransition) {
28578
+ select$2(this).transition().duration(formatOptions.animation.animationDuration).ease(effectsMap[formatOptions.animation.animationEffect]).attr("d", columnGenerator(d2));
28579
+ }
28580
+ });
28504
28581
  g.selectAll("path.hoverLine").data([d]).join("path").attr("class", "hoverLine").attr("d", (d2) => columnGenerator(d2)).attr("fill", commonColors.transparent).style("pointer-events", "all").raise();
28505
28582
  svg.selectAll(
28506
28583
  '[hoverId="' + getJQuerySelector(
@@ -28993,7 +29070,7 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
28993
29070
  try {
28994
29071
  if (chartFormatOptions.plotArea.dataLabels) {
28995
29072
  const isSingleDataLabel = pieChartData && pieChartData.length === 1;
28996
- chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29073
+ chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
28997
29074
  applyAnnotationRangeFilter(
28998
29075
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
28999
29076
  chartFormatOptions,
@@ -29032,7 +29109,7 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
29032
29109
  }
29033
29110
  return "";
29034
29111
  });
29035
- chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29112
+ chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29036
29113
  applyAnnotationRangeFilter(
29037
29114
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
29038
29115
  chartFormatOptions,
@@ -29102,13 +29179,13 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
29102
29179
  });
29103
29180
  let outerRadius = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0).outerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0);
29104
29181
  let innerRadius = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 2 ? d.y0 : 0).outerRadius((d) => d.y1 + radius / 1.5);
29105
- chartAreaTagG.selectAll("polyline").data(
29182
+ chartAreaTagG.selectAll("polyline.pie-label-connector").data(
29106
29183
  applyAnnotationRangeFilter(
29107
29184
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29108
29185
  chartFormatOptions,
29109
29186
  (d) => d.data.data[0].value
29110
29187
  )
29111
- ).join("polyline").attr("transform", getPiePosition()).style(
29188
+ ).join("polyline").attr("class", "pie-label-connector").attr("transform", getPiePosition()).style(
29112
29189
  "stroke",
29113
29190
  (d) => chartFormatOptions.connector.connectorColorOption == "Uniform" ? chartFormatOptions.connector.connectorUniformLineColor : d.data.properties.color
29114
29191
  ).style("fill", "none").style(
@@ -29126,7 +29203,7 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
29126
29203
  const yC = posB[1];
29127
29204
  return [posA, posB, [xC, yC]].map((point2) => point2.join(",")).join(" ");
29128
29205
  });
29129
- chartAreaTagG.append("g").attr("transform", getPiePosition()).selectAll("foreignObject").data(
29206
+ chartAreaTagG.append("g").attr("class", "pie-label-group").attr("transform", getPiePosition()).selectAll("foreignObject").data(
29130
29207
  applyAnnotationRangeFilter(
29131
29208
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29132
29209
  chartFormatOptions,
@@ -29193,6 +29270,9 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
29193
29270
  }
29194
29271
  return htmlString;
29195
29272
  });
29273
+ if (chartFormatOptions.animation.animationEnabled) {
29274
+ chartAreaTagG.selectAll(".pie-label-group, .pie-label-connector").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
29275
+ }
29196
29276
  }
29197
29277
  } catch (error) {
29198
29278
  logError$2(fileName$8, "drawPieDataLabels", error);
@@ -29438,7 +29518,7 @@ const DonutChart = ({
29438
29518
  try {
29439
29519
  if (chartFormatOptions.plotArea.dataLabels) {
29440
29520
  const isSingleDataLabel = pieChartData && pieChartData.length === 1;
29441
- chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29521
+ chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29442
29522
  applyAnnotationRangeFilter(
29443
29523
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
29444
29524
  chartFormatOptions,
@@ -29477,7 +29557,7 @@ const DonutChart = ({
29477
29557
  }
29478
29558
  return "";
29479
29559
  });
29480
- chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29560
+ chartAreaTagG.append("g").attr("class", "parentGroup pie-label-group").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29481
29561
  applyAnnotationRangeFilter(
29482
29562
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
29483
29563
  chartFormatOptions,
@@ -29553,13 +29633,13 @@ const DonutChart = ({
29553
29633
  });
29554
29634
  let outerRadius = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0).outerRadius((d) => d.depth > 1 ? d.y1 - 1 + radius / 7 : 0);
29555
29635
  let innerRadius2 = arc$1().startAngle((d) => d.x0).endAngle((d) => d.x1).innerRadius((d) => d.depth > 2 ? d.y0 : 0).outerRadius((d) => d.y1 + radius / 1.5);
29556
- chartAreaTagG.selectAll("polyline").data(
29636
+ chartAreaTagG.selectAll("polyline.pie-label-connector").data(
29557
29637
  applyAnnotationRangeFilter(
29558
29638
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29559
29639
  chartFormatOptions,
29560
29640
  (d) => d.data.data[0].value
29561
29641
  )
29562
- ).join("polyline").attr("transform", getPiePosition()).style(
29642
+ ).join("polyline").attr("class", "pie-label-connector").attr("transform", getPiePosition()).style(
29563
29643
  "stroke",
29564
29644
  (d) => chartFormatOptions.connector.connectorColorOption == "Uniform" ? chartFormatOptions.connector.connectorUniformLineColor : d.data.properties.color
29565
29645
  ).style("fill", "none").style(
@@ -29577,7 +29657,7 @@ const DonutChart = ({
29577
29657
  const yC = posB[1];
29578
29658
  return [posA, posB, [xC, yC]].map((point2) => point2.join(",")).join(" ");
29579
29659
  });
29580
- chartAreaTagG.append("g").attr("transform", getPiePosition()).selectAll("foreignObject").data(
29660
+ chartAreaTagG.append("g").attr("class", "pie-label-group").attr("transform", getPiePosition()).selectAll("foreignObject").data(
29581
29661
  applyAnnotationRangeFilter(
29582
29662
  pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29583
29663
  chartFormatOptions,
@@ -29655,6 +29735,9 @@ const DonutChart = ({
29655
29735
  return "";
29656
29736
  }
29657
29737
  });
29738
+ if (chartFormatOptions.animation.animationEnabled) {
29739
+ chartAreaTagG.selectAll(".pie-label-group, .pie-label-connector").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
29740
+ }
29658
29741
  }
29659
29742
  } catch (error) {
29660
29743
  logError$2(fileName$7, "drawDonutDataLabels", error);
@@ -29921,6 +30004,9 @@ const Treemap = ({ data, formatOptions, chartId }) => {
29921
30004
  )(d.data.data[0].value)
29922
30005
  );
29923
30006
  }
30007
+ if (shouldAnimate) {
30008
+ leaf.selectAll("text").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
30009
+ }
29924
30010
  }
29925
30011
  } catch (error) {
29926
30012
  logError$2(fileName$6, "initChartRect", error);
@@ -30606,6 +30692,9 @@ const PyramidChart = ({
30606
30692
  }
30607
30693
  }).notePadding(0).annotations(finalAnnotationList);
30608
30694
  let annotations = chartAreaTagG.append("g").attr("class", "annotation-group parentGroup").call(makeAnnotations);
30695
+ if (chartFormatOptions.animation.animationEnabled) {
30696
+ annotations.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
30697
+ }
30609
30698
  annotations.selectAll("rect").style("visibility", "hidden");
30610
30699
  annotations.selectAll(".annotation-subject").remove();
30611
30700
  annotations.selectAll(".connector").style(
@@ -30977,7 +31066,7 @@ const ProgressChart = ({
30977
31066
  return () => "";
30978
31067
  }
30979
31068
  });
30980
- chartAreaTagG.append("text").attr("transform", getTransformString()).attr("dy", "0.35em").attr("text-anchor", "middle").attr(
31069
+ const centerLabel = chartAreaTagG.append("text").attr("transform", getTransformString()).attr("dy", "0.35em").attr("text-anchor", "middle").attr(
30981
31070
  "visibility",
30982
31071
  () => {
30983
31072
  if (!chartFormatOptions.plotArea.dataLabels) return "hidden";
@@ -31010,6 +31099,9 @@ const ProgressChart = ({
31010
31099
  chartFormatOptions.plotArea.dataLabelDecimalPrecision
31011
31100
  )(progressValue);
31012
31101
  });
31102
+ if (chartFormatOptions.animation.animationEnabled) {
31103
+ centerLabel.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
31104
+ }
31013
31105
  } catch (error) {
31014
31106
  logError$2(fileName$3, "drawProgressChart", error);
31015
31107
  }
@@ -31331,6 +31423,9 @@ const Speedometer = ({
31331
31423
  chartFormatOptions.plotArea.dataLabelDecimalPrecision
31332
31424
  )(d)
31333
31425
  ).attr("visibility", (d) => d === "" ? "hidden" : "visible");
31426
+ if (chartFormatOptions.animation.animationEnabled) {
31427
+ lg.selectAll("text").attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
31428
+ }
31334
31429
  }
31335
31430
  if (chartFormatOptions.pointerValue.showPointerValue && seriesData.length === 2) {
31336
31431
  setPointerValueText(positionTransformString);
@@ -31799,7 +31894,8 @@ const RadialBarChart = ({
31799
31894
  chartFormatOptions,
31800
31895
  (d) => d?.data?.[0]?.value ?? 0
31801
31896
  );
31802
- svg2.selectAll(".arc-label-" + chartId).data(labelsData).enter().append("text").attr("class", "arc-label-" + chartId).attr("class", "parentGroup").attr("text-anchor", "start").attr("dy", (d, i) => (getOuterRadius(d.index ?? i) - getInnerRadius(d.index ?? i)) / 1.75).append("textPath").attr("xlink:href", (d, i) => `#arc-path-${d.index ?? i}-` + chartId).style("startOffset", "50%").attr("hoverId", (d) => d.legend.replaceAll(" ", "-")).text(
31897
+ const arcLabelTexts = svg2.selectAll(".arc-label-" + chartId).data(labelsData).enter().append("text").attr("class", "arc-label-" + chartId).attr("class", "parentGroup").attr("text-anchor", "start").attr("dy", (d, i) => (getOuterRadius(d.index ?? i) - getInnerRadius(d.index ?? i)) / 1.75);
31898
+ arcLabelTexts.append("textPath").attr("xlink:href", (d, i) => `#arc-path-${d.index ?? i}-` + chartId).style("startOffset", "50%").attr("hoverId", (d) => d.legend.replaceAll(" ", "-")).text(
31803
31899
  (d) => `  ${d.properties.alias}
31804
31900
   ${chartFormatOptions.plotArea.dataLabelValue ? getNumberWithFormatFunction(
31805
31901
  chartFormatOptions.plotArea.plotAreaDisplayUnits,
@@ -31842,6 +31938,9 @@ const RadialBarChart = ({
31842
31938
  }).on("mouseout", () => {
31843
31939
  hideTooltipOnMouseOut();
31844
31940
  });
31941
+ if (chartFormatOptions.animation.animationEnabled) {
31942
+ arcLabelTexts.attr("opacity", 0).transition().duration(chartFormatOptions.animation.animationDuration).ease(effectsMap[chartFormatOptions.animation.animationEffect]).attr("opacity", 1);
31943
+ }
31845
31944
  arcs.each((d, i) => {
31846
31945
  svg2.append("path").attr("id", `arc-path-${i}-` + chartId).attr("d", dummyArc(d, i)).attr("fill", "none").attr("stroke", "none");
31847
31946
  });
@@ -54343,6 +54442,7 @@ const OrganizationChart = ({
54343
54442
  };
54344
54443
  const dataPreparation = () => {
54345
54444
  try {
54445
+ const sortType = formatOptions?.plotArea?.sortBy ?? "default";
54346
54446
  chartDirection = chartFormatOptions.plotArea.chartDirection || orgChartDirection.left;
54347
54447
  var sum2 = 0;
54348
54448
  var absoluteSum = 0;
@@ -54353,12 +54453,17 @@ const OrganizationChart = ({
54353
54453
  let tempData = getFlattenedData(rootNode).filter(
54354
54454
  (data2) => data2.value !== null
54355
54455
  );
54456
+ if (sortType !== "default") {
54457
+ tempData = tempData.sort(
54458
+ (a2, b) => sortType === "asc" ? a2.value - b.value : b.value - a2.value
54459
+ );
54460
+ }
54356
54461
  createIdIndexMap(tempData);
54357
54462
  generateUID(tempData);
54358
54463
  chartData = addStyleObjectToChartData(tempData);
54359
54464
  if (chartFormatOptions.heatMap.showHeatMap) {
54360
54465
  heatMapScale = sequential().domain([minMeasure, maxMeasure]).interpolator(
54361
- interpolateRgb$1(chartFormatOptions.heatMap.heatMapMaxColor, chartFormatOptions.heatMap.heatMapMinColor)
54466
+ interpolateRgb$1(chartFormatOptions.heatMap.heatMapMinColor, chartFormatOptions.heatMap.heatMapMaxColor)
54362
54467
  );
54363
54468
  }
54364
54469
  } catch (error) {
@@ -55383,6 +55488,15 @@ const ScatterChart = ({
55383
55488
  ));
55384
55489
  initSvg(svgRef, width, height, chartFormatOptions);
55385
55490
  chartAreaTagG = initChartArea(svg, margins);
55491
+ initPlotArea(
55492
+ chartAreaTagG,
55493
+ formatOptions,
55494
+ 0,
55495
+ innerWidth2,
55496
+ innerHeight2,
55497
+ "Scatter",
55498
+ chartId
55499
+ );
55386
55500
  drawChartTitle(svgRef, chartTitleHeight, width, chartFormatOptions);
55387
55501
  initScale();
55388
55502
  drawXAxis();
@@ -55529,11 +55643,8 @@ const ScatterChart = ({
55529
55643
  };
55530
55644
  const initScale = () => {
55531
55645
  try {
55532
- let xStartValue = chartFormatOptions.xAxisLabel.xAxisIntervalsVisibility && chartFormatOptions.xAxisLabel.xAxisMinText !== "" ? parseFloat(chartFormatOptions.xAxisLabel.xAxisMinText) : minDimension > 0 ? 0 : minDimension * 1.1;
55533
- let xEndValue = chartFormatOptions.xAxisLabel.xAxisIntervalsVisibility && chartFormatOptions.xAxisLabel.xAxisMaxText !== "" ? parseFloat(chartFormatOptions.xAxisLabel.xAxisMaxText) : maxDimension * 1.1;
55534
55646
  let yStartValue = chartFormatOptions.yAxisLabel.yAxisIntervalsVisibility && chartFormatOptions.yAxisLabel.yAxisMinText !== "" ? parseFloat(chartFormatOptions.yAxisLabel.yAxisMinText) : minMeasure > 0 ? 0 : minMeasure * 1.1;
55535
55647
  let yEndValue = chartFormatOptions.yAxisLabel.yAxisIntervalsVisibility && chartFormatOptions.yAxisLabel.yAxisMaxText !== "" ? parseFloat(chartFormatOptions.yAxisLabel.yAxisMaxText) : maxMeasure * 1.1;
55536
- xScale = linear$1().domain([xStartValue, xEndValue]).range([0, innerWidth2]);
55537
55648
  yScale = linear$1().domain([yStartValue, yEndValue]).range([innerHeight2, 0]);
55538
55649
  sizeScale = linear$1().domain([sizeValueMin, sizeValueMax]).range([1, 10]);
55539
55650
  } catch (e) {
@@ -55542,6 +55653,8 @@ const ScatterChart = ({
55542
55653
  };
55543
55654
  const drawXAxis = () => {
55544
55655
  try {
55656
+ const tickHeightPercentage = parseFloat(formatOptions.plotArea.ticksHeight) || 100;
55657
+ const tickSize = tickHeightPercentage / 100 * innerHeight2;
55545
55658
  let { xAxisLabelArray, customTickValue } = responsiveXaxisLabelForNumericValue(
55546
55659
  maxDimension,
55547
55660
  minDimension,
@@ -55552,6 +55665,11 @@ const ScatterChart = ({
55552
55665
  innerHeight2,
55553
55666
  false
55554
55667
  );
55668
+ if (xAxisLabelArray.length > 0) {
55669
+ xScale = linear$1().domain([xAxisLabelArray[0], xAxisLabelArray[xAxisLabelArray.length - 1]]).range([0, innerWidth2]);
55670
+ } else {
55671
+ xScale = linear$1().domain([customXaxisMinValue, customXaxisMaxValue]).range([0, innerWidth2]);
55672
+ }
55555
55673
  const xAxis = axisBottom(xScale).tickFormat(
55556
55674
  getNumberWithFormatFunction(
55557
55675
  formatOptions.xAxisLabel.xAxisDisplayUnits,
@@ -55559,7 +55677,7 @@ const ScatterChart = ({
55559
55677
  formatOptions.xAxisLabel.xAxisLabelDecimalPrecision ?? "2"
55560
55678
  )
55561
55679
  ).tickSize(
55562
- chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -innerHeight2 : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? innerHeight2 : 0 : 0 : 0
55680
+ chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesVertical ? chartFormatOptions.xAxisLabel.xAxisPosition === "0" ? -tickSize : chartFormatOptions.xAxisLabel.xAxisPosition === "1" ? tickSize : 0 : 0 : 0
55563
55681
  ).tickValues(xAxisLabelArray.length > 0 ? xAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
55564
55682
  initXaxis(
55565
55683
  chartAreaTagG,
@@ -55578,6 +55696,8 @@ const ScatterChart = ({
55578
55696
  };
55579
55697
  const drawYAxis = () => {
55580
55698
  try {
55699
+ const tickWidthPercentage = parseFloat(formatOptions.plotArea.ticksWidth) || 100;
55700
+ const tickSize = tickWidthPercentage / 100 * innerWidth2;
55581
55701
  let { yAxisLabelArray, customTickValue } = responsiveYaxisLabel(
55582
55702
  maxMeasure,
55583
55703
  minMeasure,
@@ -55593,7 +55713,7 @@ const ScatterChart = ({
55593
55713
  formatOptions.yAxisLabel.yAxisLabelDecimalPrecision ?? "2"
55594
55714
  )
55595
55715
  ).tickSize(
55596
- chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 : 0 : 0
55716
+ chartFormatOptions.plotArea.gridLinesVisibility ? chartFormatOptions.plotArea.gridLinesHorizontal ? -tickSize : 0 : 0
55597
55717
  ).tickValues(yAxisLabelArray.length > 0 ? yAxisLabelArray : null).ticks(customTickValue).tickPadding(8).tickSizeOuter(0);
55598
55718
  initYaxis(
55599
55719
  chartAreaTagG,
@@ -55776,10 +55896,12 @@ const ScatterChart = ({
55776
55896
  ).style("flex-wrap", "nowrap").style("padding-left", "3px");
55777
55897
  ColorList.forEach((d, i) => {
55778
55898
  let innerdiv = div.append("div").style("display", "inline-flex").style("justify-content", "flex-start").style("align-items", "center").style("margin", "3px 0px").style("width", "fit-content").style("flex-wrap", "nowrap").style("white-space", "nowrap").style("font-size", chartFormatOptions.legends.legendFontSize + "px").style("font-family", chartFormatOptions.legends.legendFontFamily).on("mousemove", function(d2) {
55779
- svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
55780
- svg.selectAll(
55781
- '[colorId="' + getJQuerySelector2(this.textContent.replace(/ /g, "-")) + '"]'
55782
- ).classed("highlight", true).classed("unhighlight", false);
55899
+ if (chartFormatOptions.legends.onHoverEffect) {
55900
+ svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
55901
+ svg.selectAll(
55902
+ '[colorId="' + getJQuerySelector2(this.textContent.replace(/ /g, "-")) + '"]'
55903
+ ).classed("highlight", true).classed("unhighlight", false);
55904
+ }
55783
55905
  }).on("mouseout", function(d2) {
55784
55906
  svg.selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
55785
55907
  svg.selectAll(
@@ -55862,35 +55984,24 @@ const ScatterChart = ({
55862
55984
  logError$2(fileName, "shapeListWithScroll", e);
55863
55985
  }
55864
55986
  };
55865
- const shapesForScatterPlot = (innerdiv, shapes) => {
55987
+ const shapesForScatterPlot = (innerdiv, shape) => {
55866
55988
  try {
55867
- shapes = shapes.toLowerCase();
55868
- switch (shapes) {
55869
- case "circle":
55870
- case "none":
55871
- innerdiv.append("svg").attr("height", "10px").attr("width", "10px").append("circle").attr("cx", "5px").attr("cy", "5px").attr("r", "5px").style("fill", "black");
55872
- break;
55873
- case "square":
55874
- innerdiv.append("div").style("height", "10px").style("width", "10px").style("background", "black").style("border-radius", "1px");
55875
- break;
55876
- case "triangle":
55877
- innerdiv.append("div").style("border-left", "6px solid transparent").style("border-right", "6px solid transparent").style("border-bottom", "10px solid black");
55878
- break;
55879
- case "cross":
55880
- innerdiv.append("div").style("height", "4px").style("width", "10px").style("background", "black").style("border-radius", "1px").append("div").style("height", "10px").style("width", "4px").style("background", "black").style("border-radius", "1px").style("position", "relative").style("top", "-3px").style("left", "3px");
55881
- break;
55882
- case "diamond":
55883
- innerdiv.append("div").style("height", "10px").style("width", "10px").style("background", "black").style("border-radius", "1px").style("transform", "rotate(45deg)");
55884
- break;
55885
- case "star":
55886
- innerdiv.append("div").style("border-left", "6px solid transparent").style("border-right", "6px solid transparent").style("border-bottom", "10px solid black").style("position", "relative").style("top", "-2px").style("transform", "rotate(0deg)").append("div").style("border-left", "6px solid transparent").style("border-right", "6px solid transparent").style("border-top", "10px solid black").style("position", "absolute").style("top", "2px").style("left", "-5.5px").style("transform", "rotate(360deg)");
55887
- break;
55888
- case "wye":
55889
- innerdiv.append("div").style("height", "6.5px").style("width", "3px").style("background", "black").append("div").style("height", "5px").style("width", "3px").style("background", "black").style("transform", "rotate(-55deg)").style("position", "relative").style("top", "-2px").style("left", "-2px").append("div").style("height", "5px").style("width", "3px").style("background", "black").style("transform", "rotate(108deg)").style("position", "relative").style("top", "3px").style("left", "2px");
55890
- break;
55891
- default:
55892
- break;
55893
- }
55989
+ const symbolMap = {
55990
+ none: circle,
55991
+ circle,
55992
+ square,
55993
+ triangle,
55994
+ cross,
55995
+ diamond,
55996
+ star,
55997
+ wye
55998
+ };
55999
+ const symbolType = symbolMap[shape?.toLowerCase()] || circle;
56000
+ const size = 80;
56001
+ innerdiv.append("svg").attr("width", 14).attr("height", 14).append("path").attr(
56002
+ "d",
56003
+ Symbol$1().type(symbolType).size(size)()
56004
+ ).attr("transform", "translate(7,7)").attr("fill", "black");
55894
56005
  } catch (error) {
55895
56006
  logError$2(fileName, "shapesForScatterPlot", error);
55896
56007
  }