@fluentui/react-charting 5.24.22 → 5.24.24

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 (90) hide show
  1. package/CHANGELOG.json +37 -1
  2. package/CHANGELOG.md +21 -2
  3. package/dist/react-charting.d.ts +6 -2
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +3 -2
  7. package/lib/components/CommonComponents/CartesianChart.base.js +1 -0
  8. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  9. package/lib/components/DeclarativeChart/DeclarativeChart.js +2 -1
  10. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  11. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +1 -1
  12. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +2 -1
  13. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  14. package/lib/components/GaugeChart/GaugeChart.base.d.ts +1 -1
  15. package/lib/components/HeatMapChart/HeatMapChart.base.js +1 -1
  16. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  17. package/lib/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  18. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  19. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  20. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  21. package/lib/components/ScatterChart/ScatterChart.base.js +66 -13
  22. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  23. package/lib/components/ScatterChart/ScatterChart.types.d.ts +4 -0
  24. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  25. package/lib/utilities/utilities.d.ts +10 -10
  26. package/lib-amd/components/CommonComponents/CartesianChart.base.js +1 -0
  27. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  28. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +2 -1
  29. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  30. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +1 -1
  31. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +4 -3
  32. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  33. package/lib-amd/components/FunnelChart/funnelGeometry.js +5 -6
  34. package/lib-amd/components/FunnelChart/funnelGeometry.js.map +1 -1
  35. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +1 -1
  36. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +1 -1
  37. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  38. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  39. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  40. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  41. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  42. package/lib-amd/components/ResponsiveContainer/withResponsiveContainer.js +1 -2
  43. package/lib-amd/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  44. package/lib-amd/components/SankeyChart/SankeyChart.base.js +4 -4
  45. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  46. package/lib-amd/components/ScatterChart/ScatterChart.base.js +64 -11
  47. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  48. package/lib-amd/components/ScatterChart/ScatterChart.types.d.ts +4 -0
  49. package/lib-amd/components/ScatterChart/ScatterChart.types.js.map +1 -1
  50. package/lib-amd/utilities/image-export-utils.js +2 -3
  51. package/lib-amd/utilities/image-export-utils.js.map +1 -1
  52. package/lib-amd/utilities/scatterpolar-utils.js +2 -3
  53. package/lib-amd/utilities/scatterpolar-utils.js.map +1 -1
  54. package/lib-amd/utilities/utilities.d.ts +10 -10
  55. package/lib-amd/utilities/utilities.js +39 -39
  56. package/lib-amd/utilities/utilities.js.map +1 -1
  57. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +1 -0
  58. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  59. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +2 -1
  60. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  61. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +1 -1
  62. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +4 -3
  63. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  64. package/lib-commonjs/components/FunnelChart/funnelGeometry.js +5 -6
  65. package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +1 -1
  66. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +1 -1
  67. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +1 -1
  68. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  69. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  70. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  71. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  72. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  73. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js +1 -2
  74. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  75. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +4 -4
  76. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  77. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +64 -11
  78. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  79. package/lib-commonjs/components/ScatterChart/ScatterChart.types.d.ts +4 -0
  80. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  81. package/lib-commonjs/utilities/image-export-utils.js +2 -3
  82. package/lib-commonjs/utilities/image-export-utils.js.map +1 -1
  83. package/lib-commonjs/utilities/scatterpolar-utils.js +2 -3
  84. package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -1
  85. package/lib-commonjs/utilities/utilities.d.ts +10 -10
  86. package/lib-commonjs/utilities/utilities.js +39 -40
  87. package/lib-commonjs/utilities/utilities.js.map +1 -1
  88. package/package.json +2 -2
  89. package/src/components/HeatMapChart/HeatMapChart.types.ts +2 -2
  90. package/src/components/ScatterChart/ScatterChart.types.ts +5 -0
@@ -1,8 +1,45 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.areArraysEqual = exports.getSecureProps = exports.isScalePaddingDefined = exports.getScalePadding = exports.getBarWidth = exports.formatScientificLimitWidth = exports.wrapTextInsideDonut = exports.rotateXAxisLabels = exports.getAccessibleDataObject = exports.pointTypes = exports.CustomPoints = exports.Points = exports.getTypeOfAxis = exports.findHBCWANumericMinMaxOfY = exports.findVerticalNumericMinMaxOfY = exports.findVSBCNumericMinMaxOfY = exports.findNumericMinMaxOfY = exports.domainRageOfVerticalNumeric = exports.domainRangeOfDateForAreaLineScatterVerticalBarCharts = exports.domainRangeOfVSBCNumeric = exports.domainRangeOfXStringAxis = exports.domainRangeOfNumericForHorizontalBarChartWithAxis = exports.computeLongestBars = exports.groupChartDataByYValue = exports.domainRangeOfNumericForAreaLineScatterCharts = exports.getXAxisType = exports.tooltipOfAxislabels = exports.calculateLongestLabelWidth = exports.wrapContent = exports.createYAxisLabels = exports.createWrapOfXLabels = exports.DEFAULT_WRAP_WIDTH = exports.silceOrAppendToArray = exports.getUnique = exports.calloutData = exports.createStringYAxis = exports.createStringYAxisForHorizontalBarChartWithAxis = exports.createNumericYAxis = exports.createYAxisForHorizontalBarChartWithAxis = exports.prepareDatapoints = exports.createStringXAxis = exports.createDateXAxis = exports.getDateFormatLevel = exports.createNumericXAxis = exports.defaultYAxisTickFormatter = exports.YAxisType = exports.XAxisTypes = exports.ChartTypes = exports.MIN_DONUT_RADIUS = exports.MIN_DOMAIN_MARGIN = void 0;
5
- exports.getRangeForScatterMarkerSize = exports.getScatterXDomainExtent = exports.isPlottable = exports.isValidDomainValue = exports.getDomainPaddingForMarkers = exports.isTextMode = exports.isScatterPolarSeries = exports.getContrastTextColor = exports.getInvertedTextColor = exports.sortAxisCategories = exports.truncateString = exports.getCurveFactory = exports.createMeasurementSpan = exports.copyStyle = exports.resolveCSSVariables = void 0;
4
+ exports.getRangeForScatterMarkerSize = exports.getScatterXDomainExtent = exports.isPlottable = exports.isValidDomainValue = exports.getDomainPaddingForMarkers = exports.getInvertedTextColor = exports.sortAxisCategories = exports.truncateString = exports.createMeasurementSpan = exports.isScalePaddingDefined = exports.getScalePadding = exports.getBarWidth = exports.getAccessibleDataObject = exports.pointTypes = exports.CustomPoints = exports.Points = exports.getTypeOfAxis = exports.calculateLongestLabelWidth = exports.wrapContent = exports.DEFAULT_WRAP_WIDTH = exports.createStringYAxis = exports.createStringYAxisForHorizontalBarChartWithAxis = exports.YAxisType = exports.XAxisTypes = exports.ChartTypes = exports.MIN_DONUT_RADIUS = exports.MIN_DOMAIN_MARGIN = void 0;
5
+ exports.defaultYAxisTickFormatter = defaultYAxisTickFormatter;
6
+ exports.createNumericXAxis = createNumericXAxis;
7
+ exports.getDateFormatLevel = getDateFormatLevel;
8
+ exports.createDateXAxis = createDateXAxis;
9
+ exports.createStringXAxis = createStringXAxis;
10
+ exports.prepareDatapoints = prepareDatapoints;
11
+ exports.createYAxisForHorizontalBarChartWithAxis = createYAxisForHorizontalBarChartWithAxis;
12
+ exports.createNumericYAxis = createNumericYAxis;
13
+ exports.calloutData = calloutData;
14
+ exports.getUnique = getUnique;
15
+ exports.silceOrAppendToArray = silceOrAppendToArray;
16
+ exports.createWrapOfXLabels = createWrapOfXLabels;
17
+ exports.createYAxisLabels = createYAxisLabels;
18
+ exports.tooltipOfAxislabels = tooltipOfAxislabels;
19
+ exports.getXAxisType = getXAxisType;
20
+ exports.domainRangeOfNumericForAreaLineScatterCharts = domainRangeOfNumericForAreaLineScatterCharts;
21
+ exports.groupChartDataByYValue = groupChartDataByYValue;
22
+ exports.computeLongestBars = computeLongestBars;
23
+ exports.domainRangeOfNumericForHorizontalBarChartWithAxis = domainRangeOfNumericForHorizontalBarChartWithAxis;
24
+ exports.domainRangeOfXStringAxis = domainRangeOfXStringAxis;
25
+ exports.domainRangeOfVSBCNumeric = domainRangeOfVSBCNumeric;
26
+ exports.domainRangeOfDateForAreaLineScatterVerticalBarCharts = domainRangeOfDateForAreaLineScatterVerticalBarCharts;
27
+ exports.domainRageOfVerticalNumeric = domainRageOfVerticalNumeric;
28
+ exports.findNumericMinMaxOfY = findNumericMinMaxOfY;
29
+ exports.findVSBCNumericMinMaxOfY = findVSBCNumericMinMaxOfY;
30
+ exports.findVerticalNumericMinMaxOfY = findVerticalNumericMinMaxOfY;
31
+ exports.findHBCWANumericMinMaxOfY = findHBCWANumericMinMaxOfY;
32
+ exports.rotateXAxisLabels = rotateXAxisLabels;
33
+ exports.wrapTextInsideDonut = wrapTextInsideDonut;
34
+ exports.formatScientificLimitWidth = formatScientificLimitWidth;
35
+ exports.getSecureProps = getSecureProps;
36
+ exports.areArraysEqual = areArraysEqual;
37
+ exports.resolveCSSVariables = resolveCSSVariables;
38
+ exports.copyStyle = copyStyle;
39
+ exports.getCurveFactory = getCurveFactory;
40
+ exports.getContrastTextColor = getContrastTextColor;
41
+ exports.isScatterPolarSeries = isScatterPolarSeries;
42
+ exports.isTextMode = isTextMode;
6
43
  var tslib_1 = require("tslib");
7
44
  var d3_axis_1 = require("d3-axis");
8
45
  var d3_array_1 = require("d3-array");
@@ -69,7 +106,6 @@ function yAxisTickFormatterInternal(value, limitWidth) {
69
106
  function defaultYAxisTickFormatter(value) {
70
107
  return yAxisTickFormatterInternal(value);
71
108
  }
72
- exports.defaultYAxisTickFormatter = defaultYAxisTickFormatter;
73
109
  /**
74
110
  * Create Numeric X axis
75
111
  * @export
@@ -112,7 +148,6 @@ function createNumericXAxis(xAxisParams, tickParams, chartType, culture, scaleTy
112
148
  var tickValues = ((_a = tickParams.tickValues) !== null && _a !== void 0 ? _a : xAxisScale.ticks(tickCount)).map(xAxis.tickFormat());
113
149
  return { xScale: xAxisScale, tickValues: tickValues };
114
150
  }
115
- exports.createNumericXAxis = createNumericXAxis;
116
151
  /**
117
152
  * This function returns a multilevel formatter for a given date range.
118
153
  * It determines the appropriate date format to accommodate each tick value.
@@ -205,7 +240,6 @@ function getDateFormatLevel(date, useUTC) {
205
240
  });
206
241
  return (_a = matchedFormat === null || matchedFormat === void 0 ? void 0 : matchedFormat.formatLevel) !== null && _a !== void 0 ? _a : 7;
207
242
  }
208
- exports.getDateFormatLevel = getDateFormatLevel;
209
243
  function isPowerOf10(num) {
210
244
  var roundedfinalYMax = (0, chart_utilities_1.handleFloatingPointPrecisionError)(num);
211
245
  return Math.log10(roundedfinalYMax) % 1 === 0;
@@ -275,7 +309,6 @@ function createDateXAxis(xAxisParams, tickParams, culture, options, timeFormatLo
275
309
  var tickValues = ((_a = tickParams.tickValues) !== null && _a !== void 0 ? _a : xAxisScale.ticks(tickCount)).map(xAxis.tickFormat());
276
310
  return { xScale: xAxisScale, tickValues: tickValues };
277
311
  }
278
- exports.createDateXAxis = createDateXAxis;
279
312
  /**
280
313
  * Create String X axis
281
314
  * Currently using for only Vetical stacked bar chart and grouped vertical bar chart
@@ -328,7 +361,6 @@ function createStringXAxis(xAxisParams, tickParams, dataset, culture) {
328
361
  }
329
362
  return { xScale: xAxisScale, tickValues: tickValues };
330
363
  }
331
- exports.createStringXAxis = createStringXAxis;
332
364
  /**
333
365
  * This method is used to calculate the rounded tick values for the y-axis
334
366
  * @param {number} minVal
@@ -390,7 +422,6 @@ function prepareDatapoints(maxVal, minVal, splitInto, isIntegralDataset, rounded
390
422
  }
391
423
  return dataPointsArray;
392
424
  }
393
- exports.prepareDatapoints = prepareDatapoints;
394
425
  function createYAxisForHorizontalBarChartWithAxis(yAxisParams, isRtl) {
395
426
  var _a = yAxisParams.yMinMaxValues, yMinMaxValues = _a === void 0 ? { startValue: 0, endValue: 0 } : _a, _b = yAxisParams.yAxisElement, yAxisElement = _b === void 0 ? null : _b, _c = yAxisParams.yMaxValue, yMaxValue = _c === void 0 ? 0 : _c, _d = yAxisParams.yMinValue, yMinValue = _d === void 0 ? 0 : _d, containerHeight = yAxisParams.containerHeight, margins = yAxisParams.margins, _e = yAxisParams.tickPadding, tickPadding = _e === void 0 ? 12 : _e, _f = yAxisParams.maxOfYVal, maxOfYVal = _f === void 0 ? 0 : _f, yAxisTickFormat = yAxisParams.yAxisTickFormat, _g = yAxisParams.yAxisTickCount, yAxisTickCount = _g === void 0 ? 4 : _g;
396
427
  // maxOfYVal coming from horizontal bar chart with axis (Calculation done at base file)
@@ -406,7 +437,6 @@ function createYAxisForHorizontalBarChartWithAxis(yAxisParams, isRtl) {
406
437
  yAxisElement ? (0, d3_selection_1.select)(yAxisElement).call(yAxis).selectAll('text').attr('aria-hidden', 'true') : '';
407
438
  return yAxisScale;
408
439
  }
409
- exports.createYAxisForHorizontalBarChartWithAxis = createYAxisForHorizontalBarChartWithAxis;
410
440
  function createNumericYAxis(yAxisParams, isRtl, axisData, isIntegralDataset, useSecondaryYScale, supportNegativeData, roundedTicks, scaleType) {
411
441
  if (useSecondaryYScale === void 0) { useSecondaryYScale = false; }
412
442
  if (supportNegativeData === void 0) { supportNegativeData = false; }
@@ -452,7 +482,6 @@ function createNumericYAxis(yAxisParams, isRtl, axisData, isIntegralDataset, use
452
482
  axisData.yAxisDomainValues = domainValues;
453
483
  return yAxisScale;
454
484
  }
455
- exports.createNumericYAxis = createNumericYAxis;
456
485
  /**
457
486
  * Creating String Y axis of the chart for Horizontal Bar Chart With Axis
458
487
  * @param yAxisParams
@@ -555,7 +584,6 @@ function calloutData(values) {
555
584
  });
556
585
  return result;
557
586
  }
558
- exports.calloutData = calloutData;
559
587
  function getUnique(arr, comp) {
560
588
  var unique = arr
561
589
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -567,7 +595,6 @@ function getUnique(arr, comp) {
567
595
  .map(function (e) { return arr[e]; });
568
596
  return unique;
569
597
  }
570
- exports.getUnique = getUnique;
571
598
  /**
572
599
  * This function takes two paramerter
573
600
  * 1. an array of strings
@@ -589,7 +616,6 @@ function silceOrAppendToArray(array, value) {
589
616
  return array.slice(0, pos).concat(array.slice(pos + 1));
590
617
  }
591
618
  }
592
- exports.silceOrAppendToArray = silceOrAppendToArray;
593
619
  exports.DEFAULT_WRAP_WIDTH = 10;
594
620
  /**
595
621
  * This method used for wrapping of x axis labels (tick values).
@@ -679,7 +705,6 @@ function createWrapOfXLabels(wrapLabelProps) {
679
705
  }
680
706
  return removeVal > 0 ? removeVal : 0;
681
707
  }
682
- exports.createWrapOfXLabels = createWrapOfXLabels;
683
708
  /**
684
709
  * This method used for wrapping of y axis labels (tick values).
685
710
  */
@@ -732,7 +757,6 @@ yAxis, noOfCharsToTruncate, truncateLabel, isRtl) {
732
757
  }
733
758
  });
734
759
  }
735
- exports.createYAxisLabels = createYAxisLabels;
736
760
  var wrapContent = function (content, id, maxWidth) {
737
761
  var textElement = (0, d3_selection_1.select)("#".concat(id));
738
762
  textElement.text(content);
@@ -817,7 +841,6 @@ function tooltipOfAxislabels(axistooltipProps) {
817
841
  _loop_1(i);
818
842
  }
819
843
  }
820
- exports.tooltipOfAxislabels = tooltipOfAxislabels;
821
844
  /**
822
845
  * Find the axis type of line chart and area chart from given data
823
846
  * @param points
@@ -834,7 +857,6 @@ function getXAxisType(points) {
834
857
  }
835
858
  return isXAxisDateType;
836
859
  }
837
- exports.getXAxisType = getXAxisType;
838
860
  /**
839
861
  * Calculates Domain and range values for Numeric X axis.
840
862
  * This method calculates Area cart and line chart.
@@ -859,7 +881,6 @@ function domainRangeOfNumericForAreaLineScatterCharts(points, margins, width, is
859
881
  ? { dStartValue: isScatterPolar ? 1 : xMax, dEndValue: isScatterPolar ? -1 : xMin, rStartValue: rStartValue, rEndValue: rEndValue }
860
882
  : { dStartValue: isScatterPolar ? -1 : xMin, dEndValue: isScatterPolar ? 1 : xMax, rStartValue: rStartValue, rEndValue: rEndValue };
861
883
  }
862
- exports.domainRangeOfNumericForAreaLineScatterCharts = domainRangeOfNumericForAreaLineScatterCharts;
863
884
  /**
864
885
  * Groups HorizontalBarChart With Axis data based on YValue
865
886
  * Used for stacked case
@@ -877,7 +898,6 @@ function groupChartDataByYValue(chartData) {
877
898
  });
878
899
  return Object.values(map);
879
900
  }
880
- exports.groupChartDataByYValue = groupChartDataByYValue;
881
901
  /**
882
902
  * Calculates maximum domain values for Numeric x axis for both positive and negative values
883
903
  * works for Horizontal Bar Chart With axis
@@ -895,7 +915,6 @@ function computeLongestBars(stackedChartData, X_ORIGIN) {
895
915
  });
896
916
  return { longestPositiveBar: longestPositiveBar, longestNegativeBar: longestNegativeBar };
897
917
  }
898
- exports.computeLongestBars = computeLongestBars;
899
918
  /**
900
919
  * Calculates Domain and range values for Numeric X axis.
901
920
  * This method calculates Horizontal Chart with Axis
@@ -916,7 +935,6 @@ function domainRangeOfNumericForHorizontalBarChartWithAxis(points, margins, cont
916
935
  ? { dStartValue: xMax, dEndValue: Math.min(xMin, X_ORIGIN), rStartValue: rMin, rEndValue: rMax }
917
936
  : { dStartValue: Math.min(xMin, X_ORIGIN), dEndValue: xMax, rStartValue: rMin, rEndValue: rMax };
918
937
  }
919
- exports.domainRangeOfNumericForHorizontalBarChartWithAxis = domainRangeOfNumericForHorizontalBarChartWithAxis;
920
938
  /**
921
939
  * Calculates Range values of x Axis string axis
922
940
  * For String axis, we need to give domain values (Not start and end array values)
@@ -935,7 +953,6 @@ function domainRangeOfXStringAxis(margins, width, isRTL) {
935
953
  ? { dStartValue: 0, dEndValue: 0, rStartValue: rMax, rEndValue: rMin }
936
954
  : { dStartValue: 0, dEndValue: 0, rStartValue: rMin, rEndValue: rMax };
937
955
  }
938
- exports.domainRangeOfXStringAxis = domainRangeOfXStringAxis;
939
956
  /**
940
957
  * Calculate domain and range values to the Vertical stacked bar chart - For Numeric axis
941
958
  * @export
@@ -955,7 +972,6 @@ function domainRangeOfVSBCNumeric(points, margins, width, isRTL, barWidth) {
955
972
  ? { dStartValue: xMax, dEndValue: xMin, rStartValue: rMax, rEndValue: rMin }
956
973
  : { dStartValue: xMin, dEndValue: xMax, rStartValue: rMax, rEndValue: rMin };
957
974
  }
958
- exports.domainRangeOfVSBCNumeric = domainRangeOfVSBCNumeric;
959
975
  /**
960
976
  * Calculates Domain and range values for Date X axis.
961
977
  * This method calculates Bar chart.
@@ -998,7 +1014,6 @@ function domainRangeOfDateForAreaLineScatterVerticalBarCharts(points, margins, w
998
1014
  ? { dStartValue: lDate, dEndValue: sDate, rStartValue: rStartValue, rEndValue: rEndValue }
999
1015
  : { dStartValue: sDate, dEndValue: lDate, rStartValue: rStartValue, rEndValue: rEndValue };
1000
1016
  }
1001
- exports.domainRangeOfDateForAreaLineScatterVerticalBarCharts = domainRangeOfDateForAreaLineScatterVerticalBarCharts;
1002
1017
  /**
1003
1018
  * Calculate domain and range values to the Vertical bar chart - For Numeric axis
1004
1019
  * @export
@@ -1018,7 +1033,6 @@ function domainRageOfVerticalNumeric(points, margins, containerWidth, isRTL, bar
1018
1033
  ? { dStartValue: xMax, dEndValue: xMin, rStartValue: rMin, rEndValue: rMax }
1019
1034
  : { dStartValue: xMin, dEndValue: xMax, rStartValue: rMin, rEndValue: rMax };
1020
1035
  }
1021
- exports.domainRageOfVerticalNumeric = domainRageOfVerticalNumeric;
1022
1036
  /**
1023
1037
  * Calculating start and ending values of the Area chart and LineChart
1024
1038
  * @export
@@ -1041,7 +1055,6 @@ function findNumericMinMaxOfY(points, yAxisType, useSecondaryYScale, scaleType)
1041
1055
  endValue: (0, d3_array_1.max)(values),
1042
1056
  };
1043
1057
  }
1044
- exports.findNumericMinMaxOfY = findNumericMinMaxOfY;
1045
1058
  /**
1046
1059
  * Find the minimum and maximum values of the vertical stacked bar chart y axis data point. Used for create y axis.
1047
1060
  * @export
@@ -1053,7 +1066,6 @@ function findVSBCNumericMinMaxOfY(dataset) {
1053
1066
  var yMin = (0, d3_array_1.min)(dataset, function (point) { return point.y; });
1054
1067
  return { startValue: yMin, endValue: yMax };
1055
1068
  }
1056
- exports.findVSBCNumericMinMaxOfY = findVSBCNumericMinMaxOfY;
1057
1069
  /**
1058
1070
  * Fins the min and max values of the vertical bar chart y axis data point.
1059
1071
  * @export
@@ -1074,7 +1086,6 @@ function findVerticalNumericMinMaxOfY(points, yAxisType, useSecondaryYScale) {
1074
1086
  });
1075
1087
  return { startValue: (0, d3_array_1.min)(values), endValue: (0, d3_array_1.max)(values) };
1076
1088
  }
1077
- exports.findVerticalNumericMinMaxOfY = findVerticalNumericMinMaxOfY;
1078
1089
  /**
1079
1090
  * Fins the min and max values of the horizontal bar chart y axis data point.
1080
1091
  * @export
@@ -1089,7 +1100,6 @@ function findHBCWANumericMinMaxOfY(points, yAxisType) {
1089
1100
  }
1090
1101
  return { startValue: 0, endValue: 0 };
1091
1102
  }
1092
- exports.findHBCWANumericMinMaxOfY = findHBCWANumericMinMaxOfY;
1093
1103
  /**
1094
1104
  * @param p string or number or Date
1095
1105
  *
@@ -1226,7 +1236,6 @@ function rotateXAxisLabels(rotateLabelProps) {
1226
1236
  });
1227
1237
  return Math.floor(maxHeight / 1.414); // Compute maxHeight/tanInverse(45) to get the vertical height of labels.
1228
1238
  }
1229
- exports.rotateXAxisLabels = rotateXAxisLabels;
1230
1239
  function wrapTextInsideDonut(selectorClass, maxWidth) {
1231
1240
  var idx = 0;
1232
1241
  (0, d3_selection_1.selectAll)(".".concat(selectorClass)).each(function () {
@@ -1263,11 +1272,9 @@ function wrapTextInsideDonut(selectorClass, maxWidth) {
1263
1272
  idx += 1;
1264
1273
  });
1265
1274
  }
1266
- exports.wrapTextInsideDonut = wrapTextInsideDonut;
1267
1275
  function formatScientificLimitWidth(value) {
1268
1276
  return yAxisTickFormatterInternal(value, true);
1269
1277
  }
1270
- exports.formatScientificLimitWidth = formatScientificLimitWidth;
1271
1278
  var DEFAULT_BAR_WIDTH = 16;
1272
1279
  var MIN_BAR_WIDTH = 1;
1273
1280
  var getBarWidth = function (barWidthProp, maxBarWidthProp, adjustedValue, modeProp) {
@@ -1306,7 +1313,6 @@ function getSecureProps(props) {
1306
1313
  var dangerouslySetInnerHTML = props.dangerouslySetInnerHTML, result = tslib_1.__rest(props, ["dangerouslySetInnerHTML"]);
1307
1314
  return result;
1308
1315
  }
1309
- exports.getSecureProps = getSecureProps;
1310
1316
  function areArraysEqual(arr1, arr2) {
1311
1317
  if (arr1 === arr2) {
1312
1318
  return true;
@@ -1324,7 +1330,6 @@ function areArraysEqual(arr1, arr2) {
1324
1330
  }
1325
1331
  return true;
1326
1332
  }
1327
- exports.areArraysEqual = areArraysEqual;
1328
1333
  var cssVarRegExp = /var\((--[a-zA-Z0-9\-]+)\)/g;
1329
1334
  function resolveCSSVariables(chartContainer, styleRules) {
1330
1335
  var containerStyles = getComputedStyle(chartContainer);
@@ -1332,7 +1337,6 @@ function resolveCSSVariables(chartContainer, styleRules) {
1332
1337
  return containerStyles.getPropertyValue(group1);
1333
1338
  });
1334
1339
  }
1335
- exports.resolveCSSVariables = resolveCSSVariables;
1336
1340
  function copyStyle(properties, fromEl, toEl) {
1337
1341
  var styles = getComputedStyle(fromEl);
1338
1342
  if (Array.isArray(properties)) {
@@ -1347,7 +1351,6 @@ function copyStyle(properties, fromEl, toEl) {
1347
1351
  });
1348
1352
  }
1349
1353
  }
1350
- exports.copyStyle = copyStyle;
1351
1354
  var MEASUREMENT_SPAN_STYLE = {
1352
1355
  position: 'absolute',
1353
1356
  visibility: 'hidden',
@@ -1398,7 +1401,6 @@ function getCurveFactory(curve, defaultFactory) {
1398
1401
  return defaultFactory;
1399
1402
  }
1400
1403
  }
1401
- exports.getCurveFactory = getCurveFactory;
1402
1404
  var truncateString = function (str, maxLength, ellipsis) {
1403
1405
  if (ellipsis === void 0) { ellipsis = '...'; }
1404
1406
  if (str.length <= maxLength) {
@@ -1479,7 +1481,6 @@ function getContrastTextColor(backgroundColor, theme) {
1479
1481
  }
1480
1482
  return textColor;
1481
1483
  }
1482
- exports.getContrastTextColor = getContrastTextColor;
1483
1484
  /**
1484
1485
  * Utility function to check if an array of points is scatterpolar
1485
1486
  * @param points - Array of chart points
@@ -1490,7 +1491,6 @@ function isScatterPolarSeries(points) {
1490
1491
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1491
1492
  function (item) { var _a; return typeof ((_a = item.lineOptions) === null || _a === void 0 ? void 0 : _a.mode) === 'string' && item.lineOptions.mode === 'scatterpolar'; });
1492
1493
  }
1493
- exports.isScatterPolarSeries = isScatterPolarSeries;
1494
1494
  /**
1495
1495
  * Utility function to check if an array of points contains mode as 'text' only
1496
1496
  * @param points - Array of chart points
@@ -1501,7 +1501,6 @@ function isTextMode(points) {
1501
1501
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1502
1502
  function (item) { var _a; return typeof ((_a = item.lineOptions) === null || _a === void 0 ? void 0 : _a.mode) === 'string' && item.lineOptions.mode === 'text'; });
1503
1503
  }
1504
- exports.isTextMode = isTextMode;
1505
1504
  // TODO: Refactor to encapsulate the complete numeric scale creation logic here, including setting domain and range.
1506
1505
  var createNumericScale = function (scaleType) {
1507
1506
  if (scaleType === 'log') {