@fluentui/react-charting 5.25.2 → 5.25.4

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 (181) hide show
  1. package/CHANGELOG.json +105 -1
  2. package/CHANGELOG.md +30 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/AreaChart/AreaChart.base.js +0 -5
  6. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  7. package/lib/components/ChartTable/ChartTable.base.js +0 -1
  8. package/lib/components/ChartTable/ChartTable.base.js.map +1 -1
  9. package/lib/components/CommonComponents/CartesianChart.base.js +1 -3
  10. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  11. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  12. package/lib/components/DeclarativeChart/DeclarativeChart.js +1 -3
  13. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  14. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +24 -23
  15. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  16. package/lib/components/DonutChart/Arc/Arc.js +0 -1
  17. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  18. package/lib/components/DonutChart/DonutChart.base.js +1 -5
  19. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  20. package/lib/components/DonutChart/Pie/Pie.js +0 -2
  21. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  22. package/lib/components/FunnelChart/FunnelChart.base.js +0 -1
  23. package/lib/components/FunnelChart/FunnelChart.base.js.map +1 -1
  24. package/lib/components/GanttChart/GanttChart.base.js +1 -1
  25. package/lib/components/GanttChart/GanttChart.base.js.map +1 -1
  26. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +8 -9
  27. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  28. package/lib/components/HeatMapChart/HeatMapChart.base.js +0 -4
  29. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  30. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +1 -7
  31. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  32. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -6
  33. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  34. package/lib/components/Legends/Legends.base.js +0 -4
  35. package/lib/components/Legends/Legends.base.js.map +1 -1
  36. package/lib/components/LineChart/LineChart.base.js +0 -10
  37. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  38. package/lib/components/PieChart/Arc/Arc.js +0 -2
  39. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  40. package/lib/components/PieChart/Pie/Pie.js +0 -2
  41. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  42. package/lib/components/PieChart/PieChart.base.js +0 -1
  43. package/lib/components/PieChart/PieChart.base.js.map +1 -1
  44. package/lib/components/SankeyChart/SankeyChart.base.js +2 -2
  45. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  46. package/lib/components/ScatterChart/ScatterChart.base.js +38 -36
  47. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  48. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  49. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +1 -6
  50. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  51. package/lib/components/StackedBarChart/StackedBarChart.base.js +1 -5
  52. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  53. package/lib/components/TreeChart/TreeChart.base.js +2 -17
  54. package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
  55. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +0 -11
  56. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  57. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +7 -6
  58. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  59. package/lib/utilities/image-export-utils.js +4 -2
  60. package/lib/utilities/image-export-utils.js.map +1 -1
  61. package/lib/utilities/utilities.js +0 -2
  62. package/lib/utilities/utilities.js.map +1 -1
  63. package/lib-amd/components/AreaChart/AreaChart.base.js +0 -5
  64. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  65. package/lib-amd/components/ChartTable/ChartTable.base.js +0 -1
  66. package/lib-amd/components/ChartTable/ChartTable.base.js.map +1 -1
  67. package/lib-amd/components/CommonComponents/CartesianChart.base.js +1 -3
  68. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  69. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  70. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +1 -3
  71. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  72. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +24 -23
  73. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  74. package/lib-amd/components/DonutChart/Arc/Arc.js +0 -1
  75. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  76. package/lib-amd/components/DonutChart/DonutChart.base.js +1 -5
  77. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  78. package/lib-amd/components/DonutChart/Pie/Pie.js +0 -2
  79. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
  80. package/lib-amd/components/FunnelChart/FunnelChart.base.js +0 -1
  81. package/lib-amd/components/FunnelChart/FunnelChart.base.js.map +1 -1
  82. package/lib-amd/components/GanttChart/GanttChart.base.js +1 -1
  83. package/lib-amd/components/GanttChart/GanttChart.base.js.map +1 -1
  84. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +8 -10
  85. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  86. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +0 -4
  87. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  88. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +1 -7
  89. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  90. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -6
  91. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  92. package/lib-amd/components/Legends/Legends.base.js +0 -4
  93. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  94. package/lib-amd/components/LineChart/LineChart.base.js +0 -10
  95. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  96. package/lib-amd/components/PieChart/Arc/Arc.js +0 -2
  97. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
  98. package/lib-amd/components/PieChart/Pie/Pie.js +0 -2
  99. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
  100. package/lib-amd/components/PieChart/PieChart.base.js +0 -1
  101. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
  102. package/lib-amd/components/SankeyChart/SankeyChart.base.js +2 -2
  103. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  104. package/lib-amd/components/ScatterChart/ScatterChart.base.js +37 -35
  105. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  106. package/lib-amd/components/ScatterChart/ScatterChart.types.js.map +1 -1
  107. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +1 -6
  108. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  109. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +1 -5
  110. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  111. package/lib-amd/components/TreeChart/TreeChart.base.js +2 -17
  112. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
  113. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +0 -11
  114. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  115. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +6 -5
  116. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  117. package/lib-amd/utilities/image-export-utils.js +4 -2
  118. package/lib-amd/utilities/image-export-utils.js.map +1 -1
  119. package/lib-amd/utilities/utilities.js +0 -2
  120. package/lib-amd/utilities/utilities.js.map +1 -1
  121. package/lib-commonjs/components/AreaChart/AreaChart.base.js +0 -5
  122. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  123. package/lib-commonjs/components/ChartTable/ChartTable.base.js +0 -1
  124. package/lib-commonjs/components/ChartTable/ChartTable.base.js.map +1 -1
  125. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +1 -3
  126. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  127. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  128. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +1 -3
  129. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  130. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +24 -23
  131. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  132. package/lib-commonjs/components/DonutChart/Arc/Arc.js +0 -1
  133. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  134. package/lib-commonjs/components/DonutChart/DonutChart.base.js +1 -5
  135. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  136. package/lib-commonjs/components/DonutChart/Pie/Pie.js +0 -2
  137. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  138. package/lib-commonjs/components/FunnelChart/FunnelChart.base.js +0 -1
  139. package/lib-commonjs/components/FunnelChart/FunnelChart.base.js.map +1 -1
  140. package/lib-commonjs/components/GanttChart/GanttChart.base.js +1 -1
  141. package/lib-commonjs/components/GanttChart/GanttChart.base.js.map +1 -1
  142. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +8 -9
  143. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  144. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +0 -4
  145. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  146. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +1 -7
  147. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  148. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -6
  149. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  150. package/lib-commonjs/components/Legends/Legends.base.js +0 -4
  151. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  152. package/lib-commonjs/components/LineChart/LineChart.base.js +0 -10
  153. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  154. package/lib-commonjs/components/PieChart/Arc/Arc.js +0 -2
  155. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  156. package/lib-commonjs/components/PieChart/Pie/Pie.js +0 -2
  157. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  158. package/lib-commonjs/components/PieChart/PieChart.base.js +0 -1
  159. package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
  160. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +2 -2
  161. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  162. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +37 -35
  163. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  164. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  165. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +1 -6
  166. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  167. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +1 -5
  168. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  169. package/lib-commonjs/components/TreeChart/TreeChart.base.js +2 -17
  170. package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
  171. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +0 -11
  172. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  173. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +6 -5
  174. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  175. package/lib-commonjs/utilities/image-export-utils.js +4 -2
  176. package/lib-commonjs/utilities/image-export-utils.js.map +1 -1
  177. package/lib-commonjs/utilities/utilities.js +0 -2
  178. package/lib-commonjs/utilities/utilities.js.map +1 -1
  179. package/package.json +5 -5
  180. package/src/components/CommonComponents/CartesianChart.types.ts +1 -1
  181. package/src/components/ScatterChart/ScatterChart.types.ts +0 -1
@@ -121,7 +121,6 @@ var LineChartBase = /** @class */ (function (_super) {
121
121
  : null;
122
122
  };
123
123
  _this_1._getNumericMinMaxOfY = function (points, yAxisType, useSecondaryYScale) {
124
- // eslint-disable-next-line @typescript-eslint/no-shadow
125
124
  var _a = findNumericMinMaxOfY(points, yAxisType, useSecondaryYScale, useSecondaryYScale ? _this_1.props.secondaryYScaleType : _this_1.props.yScaleType), startValue = _a.startValue, endValue = _a.endValue;
126
125
  var yPadding = { start: 0, end: 0 };
127
126
  if (_this_1._hasMarkersMode) {
@@ -227,7 +226,6 @@ var LineChartBase = /** @class */ (function (_super) {
227
226
  };
228
227
  _this_1._createColorFillBars = function (containerHeight) {
229
228
  var _a;
230
- // eslint-disable-next-line @typescript-eslint/no-deprecated
231
229
  var colorFillBars = [];
232
230
  if (_this_1.state.isSelectedLegend) {
233
231
  _this_1._colorFillBars = _this_1.state.selectedColorBarLegend;
@@ -651,7 +649,6 @@ var LineChartBase = /** @class */ (function (_super) {
651
649
  this._calloutPoints = calloutData(this._points) || {};
652
650
  }
653
651
  };
654
- // eslint-disable-next-line @typescript-eslint/no-deprecated
655
652
  LineChartBase.prototype.render = function () {
656
653
  var _this_1 = this;
657
654
  var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
@@ -678,7 +675,6 @@ var LineChartBase = /** @class */ (function (_super) {
678
675
  };
679
676
  return !this._isChartEmpty() ? (React.createElement(CartesianChart, __assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: ChartTypes.LineChart, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, createYAxis: createNumericYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: this._getNumericMinMaxOfY, getGraphData: this._initializeLineChartData, xAxisType: this._isXAxisDateType ? XAxisTypes.DateAxis : XAxisTypes.NumericAxis }, (this._isScatterPolar ? { yMaxValue: 1, yMinValue: -1 } : {}), { customizedCallout: this._getCustomizedCallout(), getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: createStringYAxis, onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization, ref: this._cartesianChartRef,
680
677
  /* eslint-disable react/jsx-no-bind */
681
- // eslint-disable-next-line react/no-children-prop
682
678
  children: function (props) {
683
679
  _this_1._xAxisScale = props.xScale;
684
680
  _this_1._yScalePrimary = props.yScalePrimary;
@@ -701,7 +697,6 @@ var LineChartBase = /** @class */ (function (_super) {
701
697
  enumerable: false,
702
698
  configurable: true
703
699
  });
704
- // eslint-disable-next-line @typescript-eslint/no-deprecated
705
700
  LineChartBase.prototype._createLegends = function (data) {
706
701
  var _this_1 = this;
707
702
  var _a = this.props, legendProps = _a.legendProps, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b;
@@ -770,11 +765,9 @@ var LineChartBase = /** @class */ (function (_super) {
770
765
  : [];
771
766
  return (React.createElement(Legends, __assign({ legends: __spreadArray(__spreadArray([], legendDataItems, true), colorFillBarsLegendDataItems, true), enabledWrapLines: this.props.enabledLegendsWrapLines, overflowProps: this.props.legendsOverflowProps, focusZonePropsInHoverCard: this.props.focusZonePropsForLegendsInHoverCard, overflowText: this.props.legendsOverflowText }, (isLegendMultiSelectEnabled && { onLegendHoverCardLeave: this._onHoverCardHide }), this.props.legendProps, { ref: this._legendsRef })));
772
767
  };
773
- // eslint-disable-next-line @typescript-eslint/no-deprecated
774
768
  LineChartBase.prototype._createLines = function (xElement, containerHeight) {
775
769
  var _this_1 = this;
776
770
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27;
777
- // eslint-disable-next-line @typescript-eslint/no-deprecated
778
771
  var lines = [];
779
772
  if (this.state.isSelectedLegend) {
780
773
  this._points = this.state.selectedLegendPoints;
@@ -791,11 +784,8 @@ var LineChartBase = /** @class */ (function (_super) {
791
784
  theme: this.props.theme,
792
785
  });
793
786
  var _loop_1 = function (i) {
794
- // eslint-disable-next-line @typescript-eslint/no-deprecated
795
787
  var linesForLine = [];
796
- // eslint-disable-next-line @typescript-eslint/no-deprecated
797
788
  var bordersForLine = [];
798
- // eslint-disable-next-line @typescript-eslint/no-deprecated
799
789
  var pointsForLine = [];
800
790
  var legendVal = this_1._points[i].legend;
801
791
  var lineColor = this_1._points[i].color;