@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
@@ -110,7 +110,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
110
110
  : null;
111
111
  };
112
112
  _this_1._getNumericMinMaxOfY = function (points, yAxisType, useSecondaryYScale) {
113
- // eslint-disable-next-line @typescript-eslint/no-shadow
114
113
  var _a = (0, index_3.findNumericMinMaxOfY)(points, yAxisType, useSecondaryYScale, useSecondaryYScale ? _this_1.props.secondaryYScaleType : _this_1.props.yScaleType), startValue = _a.startValue, endValue = _a.endValue;
115
114
  var yPadding = { start: 0, end: 0 };
116
115
  if (_this_1._hasMarkersMode) {
@@ -216,7 +215,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
216
215
  };
217
216
  _this_1._createColorFillBars = function (containerHeight) {
218
217
  var _a;
219
- // eslint-disable-next-line @typescript-eslint/no-deprecated
220
218
  var colorFillBars = [];
221
219
  if (_this_1.state.isSelectedLegend) {
222
220
  _this_1._colorFillBars = _this_1.state.selectedColorBarLegend;
@@ -640,7 +638,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
640
638
  this._calloutPoints = (0, index_3.calloutData)(this._points) || {};
641
639
  }
642
640
  };
643
- // eslint-disable-next-line @typescript-eslint/no-deprecated
644
641
  LineChartBase.prototype.render = function () {
645
642
  var _this_1 = this;
646
643
  var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
@@ -667,7 +664,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
667
664
  };
668
665
  return !this._isChartEmpty() ? (React.createElement(index_2.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: index_3.ChartTypes.LineChart, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, createYAxis: index_3.createNumericYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: this._getNumericMinMaxOfY, getGraphData: this._initializeLineChartData, xAxisType: this._isXAxisDateType ? index_3.XAxisTypes.DateAxis : index_3.XAxisTypes.NumericAxis }, (this._isScatterPolar ? { yMaxValue: 1, yMinValue: -1 } : {}), { customizedCallout: this._getCustomizedCallout(), getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: index_3.createStringYAxis, onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization, ref: this._cartesianChartRef,
669
666
  /* eslint-disable react/jsx-no-bind */
670
- // eslint-disable-next-line react/no-children-prop
671
667
  children: function (props) {
672
668
  _this_1._xAxisScale = props.xScale;
673
669
  _this_1._yScalePrimary = props.yScalePrimary;
@@ -690,7 +686,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
690
686
  enumerable: false,
691
687
  configurable: true
692
688
  });
693
- // eslint-disable-next-line @typescript-eslint/no-deprecated
694
689
  LineChartBase.prototype._createLegends = function (data) {
695
690
  var _this_1 = this;
696
691
  var _a = this.props, legendProps = _a.legendProps, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b;
@@ -759,11 +754,9 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
759
754
  : [];
760
755
  return (React.createElement(index_1.Legends, tslib_1.__assign({ legends: tslib_1.__spreadArray(tslib_1.__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 })));
761
756
  };
762
- // eslint-disable-next-line @typescript-eslint/no-deprecated
763
757
  LineChartBase.prototype._createLines = function (xElement, containerHeight) {
764
758
  var _this_1 = this;
765
759
  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;
766
- // eslint-disable-next-line @typescript-eslint/no-deprecated
767
760
  var lines = [];
768
761
  if (this.state.isSelectedLegend) {
769
762
  this._points = this.state.selectedLegendPoints;
@@ -780,11 +773,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
780
773
  theme: this.props.theme,
781
774
  });
782
775
  var _loop_1 = function (i) {
783
- // eslint-disable-next-line @typescript-eslint/no-deprecated
784
776
  var linesForLine = [];
785
- // eslint-disable-next-line @typescript-eslint/no-deprecated
786
777
  var bordersForLine = [];
787
- // eslint-disable-next-line @typescript-eslint/no-deprecated
788
778
  var pointsForLine = [];
789
779
  var legendVal = this_1._points[i].legend;
790
780
  var lineColor = this_1._points[i].color;