@fluentui/react-charting 5.24.11 → 5.24.12

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 (50) hide show
  1. package/CHANGELOG.json +28 -1
  2. package/CHANGELOG.md +13 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/DeclarativeChart/DeclarativeChart.js +12 -1
  6. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  7. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +111 -11
  8. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  9. package/lib/components/LineChart/LineChart.base.d.ts +1 -0
  10. package/lib/components/LineChart/LineChart.base.js +34 -11
  11. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  12. package/lib/components/ScatterChart/ScatterChart.base.js +29 -6
  13. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  14. package/lib/utilities/scatterpolar-utils.d.ts +22 -0
  15. package/lib/utilities/scatterpolar-utils.js +38 -0
  16. package/lib/utilities/scatterpolar-utils.js.map +1 -0
  17. package/lib/utilities/utilities.d.ts +6 -0
  18. package/lib/utilities/utilities.js +16 -4
  19. package/lib/utilities/utilities.js.map +1 -1
  20. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +12 -1
  21. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  22. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +110 -10
  23. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  24. package/lib-amd/components/LineChart/LineChart.base.d.ts +1 -0
  25. package/lib-amd/components/LineChart/LineChart.base.js +33 -11
  26. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  27. package/lib-amd/components/ScatterChart/ScatterChart.base.js +28 -6
  28. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  29. package/lib-amd/utilities/scatterpolar-utils.d.ts +22 -0
  30. package/lib-amd/utilities/scatterpolar-utils.js +43 -0
  31. package/lib-amd/utilities/scatterpolar-utils.js.map +1 -0
  32. package/lib-amd/utilities/utilities.d.ts +6 -0
  33. package/lib-amd/utilities/utilities.js +18 -5
  34. package/lib-amd/utilities/utilities.js.map +1 -1
  35. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +12 -1
  36. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  37. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +110 -10
  38. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  39. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +1 -0
  40. package/lib-commonjs/components/LineChart/LineChart.base.js +33 -10
  41. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  42. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +28 -5
  43. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  44. package/lib-commonjs/utilities/scatterpolar-utils.d.ts +22 -0
  45. package/lib-commonjs/utilities/scatterpolar-utils.js +42 -0
  46. package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -0
  47. package/lib-commonjs/utilities/utilities.d.ts +6 -0
  48. package/lib-commonjs/utilities/utilities.js +18 -5
  49. package/lib-commonjs/utilities/utilities.js.map +1 -1
  50. package/package.json +2 -2
@@ -52,6 +52,7 @@ export declare class LineChartBase extends React.Component<ILineChartProps, ILin
52
52
  private _yPaddingSecondary;
53
53
  private _hasMarkersMode;
54
54
  private _isXAxisDateType;
55
+ private _isScatterPolar;
55
56
  constructor(props: ILineChartProps);
56
57
  componentDidUpdate(prevProps: ILineChartProps): void;
57
58
  render(): JSX.Element;
@@ -1,4 +1,4 @@
1
- define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../Legends/index", "d3-shape", "d3-array", "@fluentui/react/lib/Utilities", "../../index", "@fluentui/react/lib/Callout", "@fluentui/chart-utilities", "./eventAnnotation/EventAnnotation", "../../utilities/index", "../../utilities/image-export-utils"], function (require, exports, tslib_1, React, d3_selection_1, d3_array_1, index_1, d3_shape_1, d3_array_2, Utilities_1, index_2, Callout_1, chart_utilities_1, EventAnnotation_1, index_3, image_export_utils_1) {
1
+ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../Legends/index", "d3-shape", "d3-array", "@fluentui/react/lib/Utilities", "../../index", "@fluentui/react/lib/Callout", "@fluentui/chart-utilities", "./eventAnnotation/EventAnnotation", "../../utilities/index", "../../utilities/image-export-utils", "../../utilities/scatterpolar-utils"], function (require, exports, tslib_1, React, d3_selection_1, d3_array_1, index_1, d3_shape_1, d3_array_2, Utilities_1, index_2, Callout_1, chart_utilities_1, EventAnnotation_1, index_3, image_export_utils_1, scatterpolar_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.LineChartBase = void 0;
@@ -59,6 +59,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
59
59
  _this_1._yPaddingSecondary = 0;
60
60
  _this_1._hasMarkersMode = false;
61
61
  _this_1._isXAxisDateType = false;
62
+ _this_1._isScatterPolar = false;
62
63
  _this_1.toImage = function (opts) {
63
64
  var _a, _b;
64
65
  return (0, image_export_utils_1.toImage)((_a = _this_1._cartesianChartRef.current) === null || _a === void 0 ? void 0 : _a.chartContainer, (_b = _this_1._legendsRef.current) === null || _b === void 0 ? void 0 : _b.toSVG, _this_1._isRTL, opts);
@@ -96,6 +97,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
96
97
  : lineChartData;
97
98
  _this_1._hasMarkersMode =
98
99
  (_a = filteredData === null || filteredData === void 0 ? void 0 : filteredData.some(function (item) { var _a, _b, _c; return (_c = (_b = (_a = item.lineOptions) === null || _a === void 0 ? void 0 : _a.mode) === null || _b === void 0 ? void 0 : _b.includes) === null || _c === void 0 ? void 0 : _c.call(_b, 'markers'); })) !== null && _a !== void 0 ? _a : false;
100
+ _this_1._isScatterPolar = (0, index_3.isScatterPolarSeries)(filteredData);
99
101
  return filteredData
100
102
  ? filteredData.map(function (item, index) {
101
103
  var _a, _b;
@@ -748,7 +750,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
748
750
  tickValues: tickValues,
749
751
  tickFormat: tickFormat,
750
752
  };
751
- 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, customizedCallout: this._getCustomizedCallout(), getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: index_3.createStringYAxis, onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization, ref: this._cartesianChartRef,
753
+ 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,
752
754
  /* eslint-disable react/jsx-no-bind */
753
755
  // eslint-disable-next-line react/no-children-prop
754
756
  children: function (props) {
@@ -853,7 +855,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
853
855
  // eslint-disable-next-line @typescript-eslint/no-deprecated
854
856
  LineChartBase.prototype._createLines = function (xElement, containerHeight) {
855
857
  var _this_1 = this;
856
- 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;
858
+ 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;
857
859
  // eslint-disable-next-line @typescript-eslint/no-deprecated
858
860
  var lines = [];
859
861
  if (this.state.isSelectedLegend) {
@@ -886,7 +888,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
886
888
  var yPadding = this_1._points[i].useSecondaryYScale && this_1._yScaleSecondary ? this_1._yPaddingSecondary : this_1._yPaddingPrimary;
887
889
  var extraMaxPixels = this_1._hasMarkersMode ? this_1._getRangeForScatterMarkerSize(yScale, yPadding) : 0;
888
890
  if (this_1._points[i].data.length === 1) {
889
- var _17 = this_1._points[i].data[0], x1_1 = _17.x, y1 = _17.y, xAxisCalloutData_1 = _17.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _17.xAxisCalloutAccessibilityData;
891
+ var _19 = this_1._points[i].data[0], x1_1 = _19.x, y1 = _19.y, xAxisCalloutData_1 = _19.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _19.xAxisCalloutAccessibilityData;
890
892
  var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
891
893
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
892
894
  var currentMarkerSize = this_1._points[i].data[0].markerSize;
@@ -900,7 +902,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
900
902
  : 3.5, cx: this_1._xAxisScale(x1_1), cy: yScale(y1), fill: activePoint === circleId_1 ? theme.semanticColors.bodyBackground : lineColor, opacity: isLegendSelected ? 1 : 0.1, onMouseOver: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1, yScale, legendVal, lineColor), onMouseMove: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1, yScale, legendVal, lineColor), onMouseOut: this_1._handleMouseOut, strokeWidth: activePoint === circleId_1 ? DEFAULT_LINE_STROKE_SIZE : 0, stroke: activePoint === circleId_1 ? lineColor : '', role: "img", "aria-label": this_1._getAriaLabel(i, 0), "data-is-focusable": isLegendSelected, ref: function (e) {
901
903
  _this_1._refCallback(e, circleId_1);
902
904
  }, onFocus: function () { return _this_1._handleFocus(circleId_1, x1_1, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[0].onDataPointClick))),
903
- supportsTextMode && text && (React.createElement("text", { key: "".concat(circleId_1, "-label"), x: this_1._xAxisScale(x1_1), y: yScale(y1) +
905
+ !this_1._isScatterPolar && supportsTextMode && text && (React.createElement("text", { key: "".concat(circleId_1, "-label"), x: this_1._xAxisScale(x1_1), y: yScale(y1) +
904
906
  Math.max(currentMarkerSize ? (currentMarkerSize * extraMaxPixels) / maxMarkerSize : 3.5, 4) +
905
907
  12, className: classNames.markerLabel, opacity: isLegendSelected ? 1 : 0.1 }, text))));
906
908
  }
@@ -951,8 +953,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
951
953
  var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
952
954
  var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
953
955
  var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
954
- var _18 = this_1._points[i].data[j - 1], x1 = _18.x, y1 = _18.y, xAxisCalloutData = _18.xAxisCalloutData, xAxisCalloutAccessibilityData = _18.xAxisCalloutAccessibilityData;
955
- var _19 = this_1._points[i].data[j], x2 = _19.x, y2 = _19.y;
956
+ var _20 = this_1._points[i].data[j - 1], x1 = _20.x, y1 = _20.y, xAxisCalloutData = _20.xAxisCalloutData, xAxisCalloutAccessibilityData = _20.xAxisCalloutAccessibilityData;
957
+ var _21 = this_1._points[i].data[j], x2 = _21.x, y2 = _21.y;
956
958
  var path = this_1._getPath(this_1._xAxisScale(x1), yScale(y1), circleId, j, false, this_1._points[i].index);
957
959
  var strokeWidth = ((_s = this_1._points[i].lineOptions) === null || _s === void 0 ? void 0 : _s.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
958
960
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
@@ -964,7 +966,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
964
966
  React.createElement("circle", tslib_1.__assign({ id: circleId, key: circleId, r: currentMarkerSize ? (currentMarkerSize * extraMaxPixels) / maxMarkerSize : 4, cx: this_1._xAxisScale(x1), cy: yScale(y1), "data-is-focusable": isLegendSelected, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, yScale, legendVal, lineColor), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, yScale, legendVal, lineColor), onMouseOut: this_1._handleMouseOut, onFocus: function () {
965
967
  return _this_1._handleFocus(lineId, x1, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData);
966
968
  }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j - 1].onDataPointClick), { opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, circleId, j, false), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": (_x = this_1._points[i].data[j - 1].text) !== null && _x !== void 0 ? _x : this_1._getAriaLabel(i, j - 1) })),
967
- supportsTextMode && text && (React.createElement("text", { key: "".concat(circleId, "-label"), x: this_1._xAxisScale(x1), y: yScale(y1) +
969
+ !this_1._isScatterPolar && supportsTextMode && text && (React.createElement("text", { key: "".concat(circleId, "-label"), x: this_1._xAxisScale(x1), y: yScale(y1) +
968
970
  Math.max(currentMarkerSize ? (currentMarkerSize * extraMaxPixels) / maxMarkerSize : 4, 4) +
969
971
  12, className: classNames.markerLabel, opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01 }, text)))) : (React.createElement("path", tslib_1.__assign({ id: circleId, key: circleId, d: path, "data-is-focusable": isLegendSelected, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, yScale, legendVal, lineColor), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData, yScale, legendVal, lineColor), onMouseOut: this_1._handleMouseOut, onFocus: function () { return _this_1._handleFocus(lineId, x1, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j - 1].onDataPointClick), { opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, circleId, j, false), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j - 1) }))));
970
972
  if (j + 1 === this_1._points[i].data.length) {
@@ -973,7 +975,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
973
975
  var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
974
976
  var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
975
977
  path = this_1._getPath(this_1._xAxisScale(x2), yScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
976
- var _20 = this_1._points[i].data[j], lastCirlceXCallout_1 = _20.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _20.xAxisCalloutAccessibilityData;
978
+ var _22 = this_1._points[i].data[j], lastCirlceXCallout_1 = _22.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _22.xAxisCalloutAccessibilityData;
977
979
  currentMarkerSize = this_1._points[i].data[j].markerSize;
978
980
  var lastSupportsTextMode = (_z = (_y = this_1._points[i].lineOptions) === null || _y === void 0 ? void 0 : _y.mode) === null || _z === void 0 ? void 0 : _z.includes('text');
979
981
  var lastText = this_1._points[i].data[j].text;
@@ -982,7 +984,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
982
984
  React.createElement("circle", tslib_1.__assign({ id: lastCircleId_1, key: lastCircleId_1, r: currentMarkerSize ? (currentMarkerSize * extraMaxPixels) / maxMarkerSize : 4, cx: this_1._xAxisScale(x2), cy: yScale(y2), "data-is-focusable": isLegendSelected, onMouseOver: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1, yScale, legendVal, lineColor), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1, yScale, legendVal, lineColor), onMouseOut: this_1._handleMouseOut, onFocus: function () {
983
985
  return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
984
986
  }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j].onDataPointClick), { opacity: isLegendSelected && !lastPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, lastCircleId_1, j, true), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": (_2 = this_1._points[i].data[j].text) !== null && _2 !== void 0 ? _2 : this_1._getAriaLabel(i, j) })),
985
- lastSupportsTextMode && lastText && (React.createElement("text", { key: "".concat(lastCircleId_1, "-label"), x: this_1._xAxisScale(x2), y: yScale(y2) +
987
+ !this_1._isScatterPolar && lastSupportsTextMode && lastText && (React.createElement("text", { key: "".concat(lastCircleId_1, "-label"), x: this_1._xAxisScale(x2), y: yScale(y2) +
986
988
  Math.max(currentMarkerSize ? (currentMarkerSize * extraMaxPixels) / maxMarkerSize : 4, 4) +
987
989
  12, className: classNames.markerLabel, opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01 }, text)))) : (React.createElement("path", tslib_1.__assign({ id: lastCircleId_1, key: lastCircleId_1, d: path, "data-is-focusable": isLegendSelected, onMouseOver: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1, yScale, legendVal, lineColor), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1, yScale, legendVal, lineColor), onMouseOut: this_1._handleMouseOut, onFocus: function () {
988
990
  return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
@@ -1015,6 +1017,26 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
1015
1017
  _loop_2(j);
1016
1018
  }
1017
1019
  }
1020
+ if (this_1._isScatterPolar) {
1021
+ // Render category labels for all series at once to avoid overlap
1022
+ var allSeriesData = this_1._points.map(function (series) { return ({
1023
+ data: series.data
1024
+ .filter(function (pt) { return typeof pt.x === 'number' && typeof pt.y === 'number'; })
1025
+ .map(function (pt) { return ({ x: pt.x, y: pt.y, text: pt.text }); }),
1026
+ }); });
1027
+ pointsForLine.push.apply(pointsForLine, (0, scatterpolar_utils_1.renderScatterPolarCategoryLabels)({
1028
+ allSeriesData: allSeriesData,
1029
+ xAxisScale: this_1._xAxisScale,
1030
+ yAxisScale: yScale,
1031
+ className: classNames.markerLabel || '',
1032
+ maybeLineOptions: ((_17 = this_1._points[i]) === null || _17 === void 0 ? void 0 : _17.lineOptions)
1033
+ ? {
1034
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1035
+ originXOffset: (_18 = this_1._points[i].lineOptions) === null || _18 === void 0 ? void 0 : _18.originXOffset,
1036
+ }
1037
+ : undefined,
1038
+ }));
1039
+ }
1018
1040
  lines.push(React.createElement("g", { key: "line_".concat(i), role: "region", "aria-label": "".concat(legendVal, ", line ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") },
1019
1041
  bordersForLine,
1020
1042
  linesForLine,
@@ -1061,7 +1083,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
1061
1083
  LineChartBase.defaultProps = {
1062
1084
  enableReflow: true,
1063
1085
  useUTC: true,
1064
- isCalloutForStack: false,
1086
+ isCalloutForStack: true,
1065
1087
  };
1066
1088
  return LineChartBase;
1067
1089
  }(React.Component));