pace-chart-lib 1.0.60 → 1.0.62

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/Components/Charts/ChartJS/charts/CJSAreaChart.d.ts +18 -0
  2. package/dist/Components/Charts/ChartJS/charts/CJSBubbleChart.d.ts +16 -0
  3. package/dist/Components/Charts/ChartJS/charts/CJSColumnChart.d.ts +18 -0
  4. package/dist/Components/Charts/ChartJS/charts/CJSDonutChart.d.ts +18 -0
  5. package/dist/Components/Charts/ChartJS/charts/CJSHorizontalBarChart.d.ts +17 -0
  6. package/dist/Components/Charts/ChartJS/charts/CJSLineChart.d.ts +18 -0
  7. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackAreaChart.d.ts +16 -0
  8. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackColumnChart.d.ts +16 -0
  9. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackHorizontalBarChart.d.ts +16 -0
  10. package/dist/Components/Charts/ChartJS/charts/CJSNormalizedStackLineChart.d.ts +16 -0
  11. package/dist/Components/Charts/ChartJS/charts/CJSPieChart.d.ts +22 -0
  12. package/dist/Components/Charts/ChartJS/charts/CJSPolarAreaChart.d.ts +18 -0
  13. package/dist/Components/Charts/ChartJS/charts/CJSRadarChart.d.ts +16 -0
  14. package/dist/Components/Charts/ChartJS/charts/CJSScatterChart.d.ts +16 -0
  15. package/dist/Components/Charts/ChartJS/charts/CJSStackAreaChart.d.ts +15 -0
  16. package/dist/Components/Charts/ChartJS/charts/CJSStackColumnChart.d.ts +15 -0
  17. package/dist/Components/Charts/ChartJS/charts/CJSStackHorizontalBarChart.d.ts +15 -0
  18. package/dist/Components/Charts/ChartJS/charts/CJSStackLineChart.d.ts +15 -0
  19. package/dist/Components/Charts/ChartJS/core/ChartJSDataTransformer.d.ts +31 -0
  20. package/dist/Components/Charts/ChartJS/core/ChartJSOptionsMapper.d.ts +9 -0
  21. package/dist/Components/Charts/ChartJS/core/ChartJSWrapper.d.ts +27 -0
  22. package/dist/Components/Charts/ChartJS/index.d.ts +21 -0
  23. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +4 -0
  24. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +4 -0
  25. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +4 -0
  26. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +638 -0
  27. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +171 -0
  28. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +4 -0
  29. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +4 -0
  30. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +4 -0
  31. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +4 -0
  32. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +4 -0
  33. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +4 -0
  34. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +4 -0
  35. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +4 -0
  36. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +4 -0
  37. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +4 -0
  38. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +4 -0
  39. package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +4 -0
  40. package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +4 -0
  41. package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +4 -0
  42. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot.d.ts +4 -0
  43. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +4 -0
  44. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +4 -0
  45. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +96 -0
  46. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +110 -0
  47. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +26 -0
  48. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +4 -0
  49. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +4 -0
  50. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +4 -0
  51. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +3 -0
  52. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +3 -0
  53. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +4 -0
  54. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +4 -0
  55. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +4 -0
  56. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +3 -0
  57. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +4 -0
  58. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +4 -0
  59. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +4 -0
  60. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +4 -0
  61. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +10 -0
  62. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +3 -0
  63. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +3 -0
  64. package/dist/Components/Charts/Core/Common.types.d.ts +409 -0
  65. package/dist/Components/Charts/Core/CommonFunctions.d.ts +250 -0
  66. package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +66 -0
  67. package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +630 -0
  68. package/dist/Services/ErrorLog.d.ts +1 -0
  69. package/dist/index.d.ts +37 -0
  70. package/dist/pace-chart-lib.es.js +187 -110
  71. package/dist/pace-chart-lib.umd.js +187 -110
  72. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ import "./Components/Charts/Core/ChartStyles.scss";
2
+ export { default as ColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart";
3
+ export { default as CustomColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart";
4
+ export { default as LayeredColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart";
5
+ export { default as StackColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart";
6
+ export { default as NormalizedStackColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart";
7
+ export { default as ColumnHistogramChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart";
8
+ export { default as LineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/LineChart";
9
+ export { default as StackLineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/StackLineChart";
10
+ export { default as NormalizedStackLineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart";
11
+ export { default as HorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart";
12
+ export { default as StackHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart";
13
+ export { default as NormalizedStackHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart";
14
+ export { default as LayeredHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart";
15
+ export { default as HorizontalHistogramChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart";
16
+ export { default as AreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/AreaChart";
17
+ export { default as StackAreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart";
18
+ export { default as NormalizedStackAreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart";
19
+ export { default as PieChart } from "./Components/Charts/ChartsWithoutAxis/PieFamily/PieChart";
20
+ export { default as DonutChart } from "./Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart";
21
+ export { default as Treemap } from "./Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart";
22
+ export { default as PieofPie } from "./Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart";
23
+ export { default as PyramidChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart";
24
+ export { default as ProgressChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart";
25
+ export { default as Speedometer } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer";
26
+ export { default as RadialBarChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart";
27
+ export { default as WordCloud } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud";
28
+ export { default as VennChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart";
29
+ export { default as SankeyChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart";
30
+ export { default as Maps } from "./Components/Charts/ChartsWithoutAxis/Maps/Maps";
31
+ export { default as OrganizationChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart";
32
+ export { default as BubbleChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart";
33
+ export { default as ScatterChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart";
34
+ export { default as WaterfallChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart";
35
+ export { default as TornadoChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart";
36
+ export { default as DotPlot } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot";
37
+ export { CJSColumnChart, CJSStackColumnChart, CJSHorizontalBarChart, CJSStackHorizontalBarChart, CJSLineChart, CJSStackLineChart, CJSAreaChart, CJSStackAreaChart, CJSPieChart, CJSDonutChart, CJSScatterChart, CJSBubbleChart, CJSRadarChart, CJSPolarAreaChart, CJSNormalizedStackColumnChart, CJSNormalizedStackHorizontalBarChart, CJSNormalizedStackLineChart, CJSNormalizedStackAreaChart, ChartJSWrapper, transformToChartJSData, transformToNormalizedChartJSData, mapFormatOptionsToChartJS, hexToRgba, CJS_DEFAULT_COLORS, } from "./Components/Charts/ChartJS/index";
@@ -11261,7 +11261,13 @@ const defaultChartFormatOptions = {
11261
11261
  dataLabelsCoordinates: [],
11262
11262
  hideInsignificantValue: false,
11263
11263
  sortBy: "default",
11264
- chartDirection: "top"
11264
+ chartDirection: "top",
11265
+ plotAreaRangeFilter: {
11266
+ enabled: false,
11267
+ condition: "lt",
11268
+ minVal: 0,
11269
+ maxVal: 100
11270
+ }
11265
11271
  },
11266
11272
  heatMap: {
11267
11273
  showHeatMap: false,
@@ -13147,9 +13153,9 @@ function applyAnnotationRangeFilter(annotationsList, formatOptions, getMeasure)
13147
13153
  const measure = getMeasure(item);
13148
13154
  switch (condition) {
13149
13155
  case "lt":
13150
- return measure < maxVal;
13156
+ return measure <= maxVal;
13151
13157
  case "gt":
13152
- return measure > minVal;
13158
+ return measure >= minVal;
13153
13159
  case "in":
13154
13160
  return measure >= minVal && measure <= maxVal;
13155
13161
  case "not-in":
@@ -20935,6 +20941,25 @@ const NormalizedStackColumnChart = ({
20935
20941
  ) });
20936
20942
  };
20937
20943
  const fileName$a = "ChartsWithoutAxisFunctions.ts";
20944
+ function applyPlotAreaRangeFilter(labelsList, formatOptions, getMeasure) {
20945
+ if (!formatOptions?.plotArea?.plotAreaRangeFilter?.enabled) return labelsList;
20946
+ const { condition, minVal, maxVal } = formatOptions.plotArea.plotAreaRangeFilter;
20947
+ return labelsList.filter((item) => {
20948
+ const measure = getMeasure(item);
20949
+ switch (condition) {
20950
+ case "lt":
20951
+ return measure <= maxVal;
20952
+ case "gt":
20953
+ return measure >= minVal;
20954
+ case "in":
20955
+ return measure >= minVal && measure <= maxVal;
20956
+ case "not-in":
20957
+ return measure < minVal || measure > maxVal;
20958
+ default:
20959
+ return true;
20960
+ }
20961
+ });
20962
+ }
20938
20963
  function marginCalculationForBubbleScatter(width, height, maxMeasure, formatOptions, maxDimension, maxLegendDimensions) {
20939
20964
  try {
20940
20965
  formatOptions.xAxisLabel.xAxisDateFormat = formatOptions.xAxisLabel.xAxisDateFormat == "DD-MM-YYYY" ? "," : formatOptions.xAxisLabel.xAxisDateFormat;
@@ -28905,8 +28930,10 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
28905
28930
  if (chartFormatOptions.plotArea.dataLabels) {
28906
28931
  const isSingleDataLabel = pieChartData && pieChartData.length === 1;
28907
28932
  chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
28908
- pieChartData.filter(
28909
- (d) => d.data.properties.dataLabelPosition == "1"
28933
+ applyAnnotationRangeFilter(
28934
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
28935
+ chartFormatOptions,
28936
+ (d) => d.data.data[0].value
28910
28937
  )
28911
28938
  ).enter().append("text").attr(
28912
28939
  "hoverId",
@@ -28942,8 +28969,10 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
28942
28969
  return "";
28943
28970
  });
28944
28971
  chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
28945
- pieChartData.filter(
28946
- (d) => d.data.properties.dataLabelPosition == "1"
28972
+ applyAnnotationRangeFilter(
28973
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
28974
+ chartFormatOptions,
28975
+ (d) => d.data.data[0].value
28947
28976
  )
28948
28977
  ).enter().append("text").attr(
28949
28978
  "hoverId",
@@ -29010,8 +29039,10 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
29010
29039
  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);
29011
29040
  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);
29012
29041
  chartAreaTagG.selectAll("polyline").data(
29013
- pieChartData.filter(
29014
- (d) => d.data.properties.dataLabelPosition == "2"
29042
+ applyAnnotationRangeFilter(
29043
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29044
+ chartFormatOptions,
29045
+ (d) => d.data.data[0].value
29015
29046
  )
29016
29047
  ).join("polyline").attr("transform", getPiePosition()).style(
29017
29048
  "stroke",
@@ -29032,8 +29063,10 @@ const PieChart = ({ data, formatOptions, chartId, isReportEditable, onDataLabelC
29032
29063
  return [posA, posB, [xC, yC]].map((point2) => point2.join(",")).join(" ");
29033
29064
  });
29034
29065
  chartAreaTagG.append("g").attr("transform", getPiePosition()).selectAll("foreignObject").data(
29035
- pieChartData.filter(
29036
- (d) => d.data.properties.dataLabelPosition == "2"
29066
+ applyAnnotationRangeFilter(
29067
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29068
+ chartFormatOptions,
29069
+ (d) => d.data.data[0].value
29037
29070
  )
29038
29071
  ).join("foreignObject").attr("width", 80).attr("height", 60).attr("x", (d) => {
29039
29072
  let midangle = d.x0 + (d.x1 - d.x0) / 2;
@@ -29340,8 +29373,10 @@ const DonutChart = ({
29340
29373
  if (chartFormatOptions.plotArea.dataLabels) {
29341
29374
  const isSingleDataLabel = pieChartData && pieChartData.length === 1;
29342
29375
  chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29343
- pieChartData.filter(
29344
- (d) => d.data.properties.dataLabelPosition == "1"
29376
+ applyAnnotationRangeFilter(
29377
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
29378
+ chartFormatOptions,
29379
+ (d) => d.data.data[0].value
29345
29380
  )
29346
29381
  ).enter().append("text").attr(
29347
29382
  "hoverId",
@@ -29377,8 +29412,10 @@ const DonutChart = ({
29377
29412
  return "";
29378
29413
  });
29379
29414
  chartAreaTagG.append("g").attr("class", "parentGroup").attr("transform", `${getPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(
29380
- pieChartData.filter(
29381
- (d) => d.data.properties.dataLabelPosition == "1"
29415
+ applyAnnotationRangeFilter(
29416
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "1"),
29417
+ chartFormatOptions,
29418
+ (d) => d.data.data[0].value
29382
29419
  )
29383
29420
  ).enter().append("text").attr(
29384
29421
  "hoverId",
@@ -29451,8 +29488,10 @@ const DonutChart = ({
29451
29488
  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);
29452
29489
  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);
29453
29490
  chartAreaTagG.selectAll("polyline").data(
29454
- pieChartData.filter(
29455
- (d) => d.data.properties.dataLabelPosition == "2"
29491
+ applyAnnotationRangeFilter(
29492
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29493
+ chartFormatOptions,
29494
+ (d) => d.data.data[0].value
29456
29495
  )
29457
29496
  ).join("polyline").attr("transform", getPiePosition()).style(
29458
29497
  "stroke",
@@ -29473,8 +29512,10 @@ const DonutChart = ({
29473
29512
  return [posA, posB, [xC, yC]].map((point2) => point2.join(",")).join(" ");
29474
29513
  });
29475
29514
  chartAreaTagG.append("g").attr("transform", getPiePosition()).selectAll("foreignObject").data(
29476
- pieChartData.filter(
29477
- (d) => d.data.properties.dataLabelPosition == "2"
29515
+ applyAnnotationRangeFilter(
29516
+ pieChartData.filter((d) => d.data.properties.dataLabelPosition == "2"),
29517
+ chartFormatOptions,
29518
+ (d) => d.data.data[0].value
29478
29519
  )
29479
29520
  ).join("foreignObject").attr("width", 80).attr("height", 60).attr("x", (d) => {
29480
29521
  let midangle = d.x0 + (d.x1 - d.x0) / 2;
@@ -29773,7 +29814,23 @@ const Treemap = ({ data, formatOptions, chartId }) => {
29773
29814
  }
29774
29815
  leaf.append("clipPath").attr("id", (d, i) => `clip-${i}-${chartId}`).append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0);
29775
29816
  if (chartFormatOptions.plotArea.dataLabels) {
29776
- leaf.append("text").style("fill", (d) => d.data.properties.labelFontColor).style("font-family", (d) => d.data.properties.fontFamily).style("font-size", (d) => d.data.properties.fontSize).style(
29817
+ const rf = chartFormatOptions.annotation.annotationRangeFilter;
29818
+ leaf.filter((d) => {
29819
+ if (!rf?.enabled) return true;
29820
+ const val = d.data.data[0].value;
29821
+ switch (rf.condition) {
29822
+ case "lt":
29823
+ return val < rf.maxVal;
29824
+ case "gt":
29825
+ return val > rf.minVal;
29826
+ case "in":
29827
+ return val >= rf.minVal && val <= rf.maxVal;
29828
+ case "not-in":
29829
+ return val < rf.minVal || val > rf.maxVal;
29830
+ default:
29831
+ return true;
29832
+ }
29833
+ }).append("text").style("fill", (d) => d.data.properties.labelFontColor).style("font-family", (d) => d.data.properties.fontFamily).style("font-size", (d) => d.data.properties.fontSize).style(
29777
29834
  "font-style",
29778
29835
  (d) => d.data.properties.fontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""
29779
29836
  ).style(
@@ -30082,7 +30139,7 @@ const PieofPie = ({
30082
30139
  const drawParentPieDataLabels = () => {
30083
30140
  try {
30084
30141
  if (chartFormatOptions.plotArea.dataLabels) {
30085
- chartAreaTagG.append("g").attr("class", "parentLabels parentGroup").attr("transform", `${getParentPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(pieOfPieData).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.labelFontSize ?? 11).attr(
30142
+ chartAreaTagG.append("g").attr("class", "parentLabels parentGroup").attr("transform", `${getParentPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(applyAnnotationRangeFilter(pieOfPieData, chartFormatOptions, (d) => d.data.data[0].value)).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.labelFontSize ?? 11).attr(
30086
30143
  "fill",
30087
30144
  (d) => d.data.properties?.labelFontColor ?? commonColors.black
30088
30145
  ).attr(
@@ -30106,7 +30163,7 @@ const PieofPie = ({
30106
30163
  }
30107
30164
  return "";
30108
30165
  });
30109
- chartAreaTagG.append("g").attr("class", "parentLabels parentGroup").attr("transform", `${getParentPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(pieOfPieData).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr(
30166
+ chartAreaTagG.append("g").attr("class", "parentLabels parentGroup").attr("transform", `${getParentPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(applyAnnotationRangeFilter(pieOfPieData, chartFormatOptions, (d) => d.data.data[0].value)).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr(
30110
30167
  "fill",
30111
30168
  (d) => d.data.properties?.valueFontColor ?? commonColors.black
30112
30169
  ).attr(
@@ -30152,7 +30209,7 @@ const PieofPie = ({
30152
30209
  const drawChildPieDataLabels = (childData) => {
30153
30210
  try {
30154
30211
  if (chartFormatOptions.plotArea.dataLabels) {
30155
- chartAreaTagG.append("g").attr("class", "childLabels parentGroup").attr("transform", `${getChildPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(childData).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.labelFontSize ?? 11).attr(
30212
+ chartAreaTagG.append("g").attr("class", "childLabels parentGroup").attr("transform", `${getChildPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(applyAnnotationRangeFilter(childData, chartFormatOptions, (d) => d.data.data[0].value)).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.labelFontSize ?? 11).attr(
30156
30213
  "fill",
30157
30214
  (d) => d.data.properties?.labelFontColor ?? commonColors.black
30158
30215
  ).attr(
@@ -30176,7 +30233,7 @@ const PieofPie = ({
30176
30233
  }
30177
30234
  return "";
30178
30235
  });
30179
- chartAreaTagG.append("g").attr("class", "childLabels parentGroup").attr("transform", `${getChildPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(childData).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr(
30236
+ chartAreaTagG.append("g").attr("class", "childLabels parentGroup").attr("transform", `${getChildPiePosition()}`).attr("pointer-events", "none").attr("text-anchor", "middle").selectAll("text").data(applyAnnotationRangeFilter(childData, chartFormatOptions, (d) => d.data.data[0].value)).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr(
30180
30237
  "fill",
30181
30238
  (d) => d.data.properties?.valueFontColor ?? commonColors.black
30182
30239
  ).attr(
@@ -30425,7 +30482,11 @@ const PyramidChart = ({
30425
30482
  if (chartFormatOptions.annotation.annotationVisibility) {
30426
30483
  let makeAnnotations = annotation();
30427
30484
  let ConnectorType = chartFormatOptions.annotation.connectorType ? chartFormatOptions.annotation.connectorType.toLowerCase() : "None";
30428
- let finalAnnotationList = annotationsList;
30485
+ let finalAnnotationList = applyAnnotationRangeFilter(
30486
+ annotationsList,
30487
+ chartFormatOptions,
30488
+ (item) => item.data.measure
30489
+ );
30429
30490
  const connectorStyleKey = chartFormatOptions.annotation.connectorStyle?.toLowerCase();
30430
30491
  makeAnnotations.editMode(chartFormatOptions.annotation.annotationDraggable).accessors({
30431
30492
  x: function() {
@@ -30847,7 +30908,15 @@ const ProgressChart = ({
30847
30908
  });
30848
30909
  chartAreaTagG.append("text").attr("transform", getTransformString()).attr("dy", "0.35em").attr("text-anchor", "middle").attr(
30849
30910
  "visibility",
30850
- chartFormatOptions.plotArea.dataLabels ? "visible" : "hidden"
30911
+ () => {
30912
+ if (!chartFormatOptions.plotArea.dataLabels) return "hidden";
30913
+ const passed = applyPlotAreaRangeFilter(
30914
+ [{ value: progressValue }],
30915
+ chartFormatOptions,
30916
+ (d) => d?.value ?? 0
30917
+ );
30918
+ return passed.length > 0 ? "visible" : "hidden";
30919
+ }
30851
30920
  ).attr(
30852
30921
  "fill",
30853
30922
  chartFormatOptions.plotArea.dataLabelValueColor !== commonColors.white ? chartFormatOptions.plotArea.dataLabelValueColor : chartFormatOptions.toolTip.toolTipDisplayUnits
@@ -31651,7 +31720,11 @@ const RadialBarChart = ({
31651
31720
  arcs.attr("d", (d, i) => animArc({ ...d, endAngle: scale2(Math.abs(d.data[0].value)) }, i));
31652
31721
  }
31653
31722
  if (chartFormatOptions.plotArea.dataLabels) {
31654
- const labelsData = getModifiedDataForLabels(ChartData);
31723
+ const labelsData = applyPlotAreaRangeFilter(
31724
+ getModifiedDataForLabels(ChartData),
31725
+ chartFormatOptions,
31726
+ (d) => d?.data?.[0]?.value ?? 0
31727
+ );
31655
31728
  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(
31656
31729
  (d) => `  ${d.properties.alias}
31657
31730
   ${chartFormatOptions.plotArea.dataLabelValue ? getNumberWithFormatFunction(
@@ -54106,9 +54179,10 @@ const fileName$1 = "OrganizationChart.tsx";
54106
54179
  const OrganizationChart = ({
54107
54180
  data,
54108
54181
  formatOptions,
54109
- legendEntries,
54182
+ // legendEntries,
54110
54183
  legendSequence
54111
54184
  }) => {
54185
+ let legendEntries = data.LegendList ?? [];
54112
54186
  const chartId = crypto.randomUUID();
54113
54187
  const svgRef = useRef();
54114
54188
  const floatingSvgRef = useRef();
@@ -54148,20 +54222,11 @@ const OrganizationChart = ({
54148
54222
  chartDirection = chartFormatOptions.plotArea.chartDirection || orgChartDirection.left;
54149
54223
  var sum2 = 0;
54150
54224
  var absoluteSum = 0;
54151
- data.forEach((item) => {
54152
- sum2 = sum2 + item.value;
54153
- absoluteSum = absoluteSum + item.absoluteValue;
54154
- });
54155
- var newObj = {
54156
- id: 0,
54157
- children: data,
54158
- value: sum2,
54159
- // Total value of all children
54160
- absoluteValue: absoluteSum,
54161
- nodeLabel: "",
54162
- UID: ""
54225
+ const rootNode = {
54226
+ ...data.ChartData,
54227
+ UID: void 0
54163
54228
  };
54164
- let tempData = getFlattenedData(newObj).filter(
54229
+ let tempData = getFlattenedData(rootNode).filter(
54165
54230
  (data2) => data2.value !== null
54166
54231
  );
54167
54232
  createIdIndexMap(tempData);
@@ -54210,8 +54275,7 @@ const OrganizationChart = ({
54210
54275
  data2.forEach((nodeObject, i) => {
54211
54276
  if (nodeObject.id != 0) {
54212
54277
  let parentUID = data2[idIndexMap.get(nodeObject.parentId)].UID;
54213
- parentUID === "" ? nodeObject.UID = nodeObject.nodeLabel : nodeObject.UID = parentUID + "-" + nodeObject.nodeLabel;
54214
- indexMapForStyleObject.set(nodeObject.UID, i);
54278
+ parentUID === void 0 ? nodeObject.UID = nodeObject.nodeLabel : nodeObject.UID = parentUID + "-" + nodeObject.nodeLabel;
54215
54279
  }
54216
54280
  });
54217
54281
  } catch (error) {
@@ -54220,12 +54284,15 @@ const OrganizationChart = ({
54220
54284
  };
54221
54285
  const addStyleObjectToChartData = (data2) => {
54222
54286
  try {
54223
- data2[0] = { ...data2[0], styleObject: legendEntries[0] };
54224
54287
  legendEntries.forEach((styleObject) => {
54225
- if (styleObject === legendEntries[0]) return;
54226
- let dataIndex = indexMapForStyleObject.get(styleObject.name);
54227
- let obj = data2[dataIndex];
54228
- data2[dataIndex] = { ...obj, styleObject };
54288
+ indexMapForStyleObject.set(styleObject.name, styleObject);
54289
+ });
54290
+ Object.keys(data2).forEach((key) => {
54291
+ const legendObject = indexMapForStyleObject.get(data2[key].UID ?? data2[key].nodeLabel);
54292
+ data2[key] = {
54293
+ ...data2[key],
54294
+ styleObject: legendObject || legendEntries[0]
54295
+ };
54229
54296
  });
54230
54297
  return data2;
54231
54298
  } catch (error) {
@@ -54439,7 +54506,7 @@ const OrganizationChart = ({
54439
54506
  justify-content: center;
54440
54507
  align-items: center;
54441
54508
  text-align: center;
54442
- background-color: ${d.data.styleObject.backgroundColor ? d.data.styleObject.backgroundColor : d.data.styleObject.Color};
54509
+ background-color: ${d.data.styleObject.color ? d.data.styleObject.color : d.data.styleObject.backgroundColor};
54443
54510
  z-index: 99;
54444
54511
  transform: ${transform};
54445
54512
  transition: unset;">
@@ -55074,10 +55141,11 @@ const fileName = "ScatterChart.tsx";
55074
55141
  const ScatterChart = ({
55075
55142
  data,
55076
55143
  formatOptions,
55077
- chartId,
55078
- shapesList,
55079
- colorsList
55144
+ chartId
55080
55145
  }) => {
55146
+ const colorsList = data.ColorElements ?? [];
55147
+ const shapesList = data.ShapeElements ?? [];
55148
+ let modifiedData = [];
55081
55149
  const svgRef = useRef();
55082
55150
  let chartFormatOptions;
55083
55151
  let maxLegendDimensions = [0, 0];
@@ -55089,12 +55157,12 @@ const ScatterChart = ({
55089
55157
  let innerWidth2;
55090
55158
  let chartAreaTagG;
55091
55159
  let svg;
55092
- let measuresList = [];
55093
- let dimensionsList = [];
55094
- let minDimension;
55095
- let maxDimension;
55096
- let minMeasure;
55097
- let maxMeasure;
55160
+ let minDimension = Number.POSITIVE_INFINITY;
55161
+ let maxDimension = Number.NEGATIVE_INFINITY;
55162
+ let minMeasure = Number.POSITIVE_INFINITY;
55163
+ let maxMeasure = Number.NEGATIVE_INFINITY;
55164
+ let sizeValueMin = Number.POSITIVE_INFINITY;
55165
+ let sizeValueMax = Number.NEGATIVE_INFINITY;
55098
55166
  let yLabel;
55099
55167
  let xLabel;
55100
55168
  let yTitle;
@@ -55110,6 +55178,7 @@ const ScatterChart = ({
55110
55178
  let customYaxisMinValue;
55111
55179
  let xScale;
55112
55180
  let yScale;
55181
+ let sizeScale;
55113
55182
  let colorsMap = /* @__PURE__ */ new Map();
55114
55183
  let shapesMap = /* @__PURE__ */ new Map();
55115
55184
  useEffect(() => {
@@ -55211,7 +55280,7 @@ const ScatterChart = ({
55211
55280
  innerHeight2,
55212
55281
  xTitle,
55213
55282
  xLabel,
55214
- data.length
55283
+ modifiedData.length
55215
55284
  );
55216
55285
  };
55217
55286
  const initCircles = () => {
@@ -55221,17 +55290,11 @@ const ScatterChart = ({
55221
55290
  };
55222
55291
  const circles = chartAreaTagG.append("g").attr("class", "circles").attr("class", "parentGroup");
55223
55292
  const shouldAnimate = chartFormatOptions.animation.animationEnabled;
55224
- const scatterPaths = circles.append("g").selectAll(".bubbleScatter").data(data).enter().append("g").attr("fill", (d) => d.selectedColor).attr(
55225
- "colorId",
55226
- (d) => d.legendName.includes("-") ? d.legendName.split("-")[0].replace(/ /g, "-") : d.legendName.replace(/ /g, "-")
55227
- ).attr(
55228
- "shapeId",
55229
- (d) => d.legendName.includes("-") ? d.legendName.split("-")[1].replace(/ /g, "-") : d.legendName.replace(/ /g, "-")
55230
- ).append("path").attr("class", "path").attr("id", function(d, i) {
55293
+ 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) {
55231
55294
  select$2(this).attr(
55232
55295
  "d",
55233
- Symbol$1().type(getMarkershapes(d.selectedShape)).size(
55234
- (d.sizeValue ? d.sizeValue : 10) * 2 * convertStringToNumber(
55296
+ Symbol$1().type(getMarkershapes(d.shape)).size(
55297
+ (d.sizeValue ? sizeScale(d.sizeValue) : 10) * 2 * convertStringToNumber(
55235
55298
  chartFormatOptions.plotArea.scatterSizeIndex
55236
55299
  )
55237
55300
  )
@@ -55244,24 +55307,26 @@ const ScatterChart = ({
55244
55307
  ).on("mousemove", (event2, d) => {
55245
55308
  showTooltipOnMouseMove(
55246
55309
  [
55247
- {
55248
- key: chartFormatOptions.xAxisTitle.xAxisTitleText,
55249
- value: getNumberWithFormatFunction(
55250
- chartFormatOptions.toolTip.toolTipDisplayUnits,
55251
- chartFormatOptions.toolTip.toolTipNumberFormat,
55252
- chartFormatOptions.toolTip.toolTipDecimalPrecision
55253
- )(d.dimension)
55254
- },
55255
- {
55256
- key: chartFormatOptions.yAxisTitle.yAxisTitleText,
55257
- value: getNumberWithFormatFunction(
55258
- chartFormatOptions.toolTip.toolTipDisplayUnits,
55259
- chartFormatOptions.toolTip.toolTipNumberFormat,
55260
- chartFormatOptions.toolTip.toolTipDecimalPrecision
55261
- )(d.measure)
55262
- },
55263
- { key: "Legend", value: d.legendName }
55264
- // { key: "Calculated Tooltip", value: d.tooltip },
55310
+ ...[
55311
+ {
55312
+ key: chartFormatOptions.xAxisTitle.xAxisTitleText,
55313
+ value: getNumberWithFormatFunction(
55314
+ chartFormatOptions.toolTip.toolTipDisplayUnits,
55315
+ chartFormatOptions.toolTip.toolTipNumberFormat,
55316
+ chartFormatOptions.toolTip.toolTipDecimalPrecision
55317
+ )(d.dimension)
55318
+ },
55319
+ {
55320
+ key: chartFormatOptions.yAxisTitle.yAxisTitleText,
55321
+ value: getNumberWithFormatFunction(
55322
+ chartFormatOptions.toolTip.toolTipDisplayUnits,
55323
+ chartFormatOptions.toolTip.toolTipNumberFormat,
55324
+ chartFormatOptions.toolTip.toolTipDecimalPrecision
55325
+ )(d.measure)
55326
+ },
55327
+ { key: "Color", value: d.colorName }
55328
+ ],
55329
+ ...d.shapeName ? [{ key: "Shape", value: d.shapeName }] : []
55265
55330
  ],
55266
55331
  chartFormatOptions
55267
55332
  );
@@ -55277,33 +55342,41 @@ const ScatterChart = ({
55277
55342
  };
55278
55343
  const iterateOverChartData = () => {
55279
55344
  try {
55345
+ let addDataToModifiedData = function(dataPoint, legend, shape) {
55346
+ minMeasure = Math.min(minMeasure, dataPoint.value);
55347
+ maxMeasure = Math.max(maxMeasure, dataPoint.value);
55348
+ minDimension = Math.min(minDimension, dataPoint.dimension);
55349
+ maxDimension = Math.max(maxDimension, dataPoint.dimension);
55350
+ sizeValueMin = Math.min(sizeValueMin, dataPoint.value2 ?? 10);
55351
+ sizeValueMax = Math.max(sizeValueMax, dataPoint.value2 ?? 10);
55352
+ modifiedData.push({
55353
+ dimension: dataPoint.dimension,
55354
+ measure: dataPoint.value,
55355
+ sizeValue: dataPoint.value2,
55356
+ colorName: legend,
55357
+ shapeName: shape,
55358
+ shape: shapesMap.get(shape) || "Circle",
55359
+ color: colorsMap.get(legend) || "#6ba2b8ff"
55360
+ });
55361
+ };
55280
55362
  colorsList.forEach((colorObject) => {
55281
55363
  colorsMap.set(colorObject.name, colorObject.color);
55282
55364
  });
55283
55365
  shapesList.forEach((shapeObject) => {
55284
55366
  shapesMap.set(shapeObject.name, shapeObject.markerShape);
55285
55367
  });
55286
- data.forEach((d) => {
55287
- let legendNameArr = d.legendName.split("-");
55288
- d["selectedColor"] = colorsMap.get(legendNameArr[0]) || "#6ba2b8ff";
55289
- d["selectedShape"] = shapesMap.get(legendNameArr[1]) || "Circle";
55290
- if (d.measureName) {
55291
- measuresList.push(d.measure);
55292
- if (d.measure < minMeasure || minMeasure === void 0) {
55293
- minMeasure = d.measure;
55294
- }
55295
- if (d.measure > maxMeasure || maxMeasure === void 0) {
55296
- maxMeasure = d.measure;
55297
- }
55368
+ data.ChartData.forEach((d) => {
55369
+ if (d.children && d.children.length > 0) {
55370
+ d.children.forEach((child) => {
55371
+ child.data.forEach((dataPoint) => {
55372
+ addDataToModifiedData(dataPoint, d.legend, child.legend);
55373
+ });
55374
+ });
55298
55375
  }
55299
- if (d.dimensionName) {
55300
- dimensionsList.push(d.dimension);
55301
- if (d.dimension < minDimension || minDimension === void 0) {
55302
- minDimension = d.dimension;
55303
- }
55304
- if (d.dimension > maxDimension || maxDimension === void 0) {
55305
- maxDimension = d.dimension;
55306
- }
55376
+ if (d.data && d.data.length > 0) {
55377
+ d.data.forEach((dataPoint) => {
55378
+ addDataToModifiedData(dataPoint, d.legend);
55379
+ });
55307
55380
  }
55308
55381
  });
55309
55382
  } catch (e) {
@@ -55318,6 +55391,7 @@ const ScatterChart = ({
55318
55391
  let yEndValue = chartFormatOptions.yAxisLabel.yAxisIntervalsVisibility && chartFormatOptions.yAxisLabel.yAxisMaxText !== "" ? parseFloat(chartFormatOptions.yAxisLabel.yAxisMaxText) : maxMeasure * 1.1;
55319
55392
  xScale = linear$1().domain([xStartValue, xEndValue]).range([0, innerWidth2]);
55320
55393
  yScale = linear$1().domain([yStartValue, yEndValue]).range([innerHeight2, 0]);
55394
+ sizeScale = linear$1().domain([sizeValueMin, sizeValueMax]).range([1, 10]);
55321
55395
  } catch (e) {
55322
55396
  logError$2(fileName, "initScale", e);
55323
55397
  }
@@ -55395,10 +55469,10 @@ const ScatterChart = ({
55395
55469
  let xCordinate;
55396
55470
  switch (chartFormatOptions.plotArea.xCoordinate) {
55397
55471
  case referenceLineTypes.Mean:
55398
- xCordinate = mean(data, (d) => d.dimension);
55472
+ xCordinate = mean(modifiedData, (d) => d.dimension);
55399
55473
  break;
55400
55474
  case referenceLineTypes.Median:
55401
- xCordinate = median(data, (d) => d.dimension);
55475
+ xCordinate = median(modifiedData, (d) => d.dimension);
55402
55476
  break;
55403
55477
  case referenceLineTypes.Custom:
55404
55478
  xCordinate = convertStringToNumber(
@@ -55415,10 +55489,13 @@ const ScatterChart = ({
55415
55489
  let yCordinate;
55416
55490
  switch (chartFormatOptions.plotArea.yCoordinate) {
55417
55491
  case referenceLineTypes.Mean:
55418
- yCordinate = mean(data, (d) => d.measure);
55492
+ yCordinate = mean(modifiedData, (d) => d.value);
55419
55493
  break;
55420
55494
  case referenceLineTypes.Median:
55421
- yCordinate = median(data, (d) => d.measure);
55495
+ yCordinate = median(
55496
+ modifiedData,
55497
+ (d) => d.value
55498
+ );
55422
55499
  break;
55423
55500
  case referenceLineTypes.Custom:
55424
55501
  yCordinate = convertStringToNumber(