@fluentui/react-charting 5.23.12 → 5.23.13
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.
- package/CHANGELOG.json +22 -1
- package/CHANGELOG.md +12 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/AreaChart/AreaChart.base.js +8 -13
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +1 -2
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js +9 -10
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js +3 -3
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js +3 -3
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +3 -3
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/Legends/Legends.base.js +1 -2
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +14 -23
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +2 -8
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.js +2 -1
- package/lib/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.js +4 -4
- package/lib/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib/components/PieChart/PieChart.base.js +4 -4
- package/lib/components/PieChart/PieChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js +9 -14
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +4 -5
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js +3 -3
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.base.js +1 -2
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +30 -44
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +10 -17
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/utilities/SVGTooltipText.js +4 -5
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +8 -13
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +1 -2
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.js +9 -10
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js +3 -3
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/Pie.js +3 -3
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.js +2 -2
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +3 -3
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-amd/components/Legends/Legends.base.js +1 -2
- package/lib-amd/components/Legends/Legends.base.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +14 -23
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +2 -8
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-amd/components/PieChart/Arc/Arc.js +2 -1
- package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/PieChart/Pie/Pie.js +4 -4
- package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.base.js +4 -4
- package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +9 -14
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +4 -5
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +3 -3
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.base.js +1 -2
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.types.js +2 -2
- package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +30 -44
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +10 -17
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/utilities/SVGTooltipText.js +4 -5
- package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
- package/lib-amd/utilities/utilities.js +5 -5
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +8 -13
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +1 -2
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +9 -10
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +3 -3
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +3 -3
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +2 -2
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +3 -3
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js +1 -2
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +14 -23
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +2 -8
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js +2 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.js +4 -4
- package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.base.js +4 -4
- package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +9 -14
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +4 -5
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +3 -3
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.js +1 -2
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.types.js +2 -2
- package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +30 -44
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +10 -17
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.js +4 -5
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +5 -5
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +3 -3
|
@@ -51,7 +51,7 @@ var _getPointPath = function (x, y, w, index) {
|
|
|
51
51
|
];
|
|
52
52
|
return allPointPaths[index];
|
|
53
53
|
};
|
|
54
|
-
var LineChartBase =
|
|
54
|
+
var LineChartBase = /** @class */ (function (_super) {
|
|
55
55
|
tslib_1.__extends(LineChartBase, _super);
|
|
56
56
|
function LineChartBase(props) {
|
|
57
57
|
var _this_1 = _super.call(this, props) || this;
|
|
@@ -75,8 +75,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
75
75
|
return domainNRangeValue;
|
|
76
76
|
};
|
|
77
77
|
_this_1._injectIndexPropertyInLineChartData = function (lineChartData) {
|
|
78
|
-
var _a;
|
|
79
|
-
var allowMultipleShapesForPoints = (_a = _this_1.props.allowMultipleShapesForPoints, _a === void 0 ? false : _a);
|
|
78
|
+
var _a = _this_1.props.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _a === void 0 ? false : _a;
|
|
80
79
|
return lineChartData
|
|
81
80
|
? lineChartData.map(function (item, index) {
|
|
82
81
|
var _a, _b;
|
|
@@ -131,8 +130,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
131
130
|
});
|
|
132
131
|
};
|
|
133
132
|
_this_1._getBoxWidthOfShape = function (pointId, pointIndex, isLastPoint) {
|
|
134
|
-
var _a, _b, _c;
|
|
135
|
-
var allowMultipleShapesForPoints = (_a = _this_1.props, _b = _a.allowMultipleShapesForPoints, _b === void 0 ? false : _b), strokeWidth = (_c = _a.strokeWidth, _c === void 0 ? DEFAULT_LINE_STROKE_SIZE : _c);
|
|
133
|
+
var _a = _this_1.props, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b, _c = _a.strokeWidth, strokeWidth = _c === void 0 ? DEFAULT_LINE_STROKE_SIZE : _c;
|
|
136
134
|
var activePoint = _this_1.state.activePoint;
|
|
137
135
|
if (allowMultipleShapesForPoints) {
|
|
138
136
|
if (activePoint === pointId) {
|
|
@@ -155,8 +153,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
155
153
|
}
|
|
156
154
|
};
|
|
157
155
|
_this_1._getPath = function (xPos, yPos, pointId, pointIndex, isLastPoint, pointOftheLine) {
|
|
158
|
-
var _a;
|
|
159
|
-
var allowMultipleShapesForPoints = (_a = _this_1.props.allowMultipleShapesForPoints, _a === void 0 ? false : _a);
|
|
156
|
+
var _a = _this_1.props.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _a === void 0 ? false : _a;
|
|
160
157
|
var w = _this_1._getBoxWidthOfShape(pointId, pointIndex, isLastPoint);
|
|
161
158
|
var index = allowMultipleShapesForPoints ? pointOftheLine % Object.keys(index_3.pointTypes).length : 0;
|
|
162
159
|
var widthRatio = index_3.pointTypes[index].widthRatio;
|
|
@@ -164,9 +161,8 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
164
161
|
return _getPointPath(xPos, yPos, w, index);
|
|
165
162
|
};
|
|
166
163
|
_this_1._getPointFill = function (lineColor, pointId, pointIndex, isLastPoint) {
|
|
167
|
-
var _a, _b;
|
|
168
164
|
var activePoint = _this_1.state.activePoint;
|
|
169
|
-
var
|
|
165
|
+
var _a = _this_1.props, theme = _a.theme, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b;
|
|
170
166
|
if (allowMultipleShapesForPoints) {
|
|
171
167
|
if (pointIndex === 1 || isLastPoint) {
|
|
172
168
|
if (activePoint === pointId) {
|
|
@@ -244,7 +240,6 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
244
240
|
return { isInGap: isInGap, gapIndex: gapIndex };
|
|
245
241
|
};
|
|
246
242
|
_this_1._onMouseOverLargeDataset = function (linenumber, lineHeight, mouseEvent) {
|
|
247
|
-
var _a;
|
|
248
243
|
mouseEvent.persist();
|
|
249
244
|
var data = _this_1.props.data;
|
|
250
245
|
var lineChartData = data.lineChartData;
|
|
@@ -288,7 +283,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
288
283
|
break;
|
|
289
284
|
}
|
|
290
285
|
}
|
|
291
|
-
var
|
|
286
|
+
var _a = lineChartData[linenumber].data[index], xAxisCalloutData = _a.xAxisCalloutData, xAxisCalloutAccessibilityData = _a.xAxisCalloutAccessibilityData;
|
|
292
287
|
var formattedDate = xPointToHighlight instanceof Date ? (0, index_3.formatDate)(xPointToHighlight, _this_1.props.useUTC) : xPointToHighlight;
|
|
293
288
|
var modifiedXVal = xPointToHighlight instanceof Date ? xPointToHighlight.getTime() : xPointToHighlight;
|
|
294
289
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -546,8 +541,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
546
541
|
return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || "".concat(xValue, ". ").concat(legend, ", ").concat(yValue, ".");
|
|
547
542
|
};
|
|
548
543
|
_this_1._getChartTitle = function () {
|
|
549
|
-
var _a;
|
|
550
|
-
var chartTitle = (_a = _this_1.props.data, _a.chartTitle), lineChartData = _a.lineChartData;
|
|
544
|
+
var _a = _this_1.props.data, chartTitle = _a.chartTitle, lineChartData = _a.lineChartData;
|
|
551
545
|
return (chartTitle ? "".concat(chartTitle, ". ") : '') + "Line chart with ".concat((lineChartData === null || lineChartData === void 0 ? void 0 : lineChartData.length) || 0, " lines. ");
|
|
552
546
|
};
|
|
553
547
|
_this_1.state = {
|
|
@@ -596,9 +590,8 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
596
590
|
}
|
|
597
591
|
};
|
|
598
592
|
LineChartBase.prototype.render = function () {
|
|
599
|
-
var _a;
|
|
600
593
|
var _this_1 = this;
|
|
601
|
-
var
|
|
594
|
+
var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
|
|
602
595
|
this._points = this._injectIndexPropertyInLineChartData(data.lineChartData);
|
|
603
596
|
var isXAxisDateType = (0, index_3.getXAxisType)(this._points);
|
|
604
597
|
var points = this._points;
|
|
@@ -637,9 +630,8 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
637
630
|
} }))) : (React.createElement("div", { id: this._emptyChartId, role: 'alert', style: { opacity: '0' }, "aria-label": 'Graph has no data to display' }));
|
|
638
631
|
};
|
|
639
632
|
LineChartBase.prototype._createLegends = function (data) {
|
|
640
|
-
var _a, _b;
|
|
641
633
|
var _this_1 = this;
|
|
642
|
-
var
|
|
634
|
+
var _a = this.props, legendProps = _a.legendProps, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b;
|
|
643
635
|
var isLegendMultiSelectEnabled = !!(legendProps && !!legendProps.canSelectMultipleLegends);
|
|
644
636
|
var legendDataItems = data.map(function (point) {
|
|
645
637
|
var color = point.color;
|
|
@@ -706,7 +698,6 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
706
698
|
this._points = this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);
|
|
707
699
|
}
|
|
708
700
|
var _loop_1 = function (i) {
|
|
709
|
-
var _2;
|
|
710
701
|
var linesForLine = [];
|
|
711
702
|
var bordersForLine = [];
|
|
712
703
|
var pointsForLine = [];
|
|
@@ -716,7 +707,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
716
707
|
var theme = this_1.props.theme;
|
|
717
708
|
var verticaLineHeight = containerHeight - this_1.margins.bottom + 6;
|
|
718
709
|
if (this_1._points[i].data.length === 1) {
|
|
719
|
-
var
|
|
710
|
+
var _2 = this_1._points[i].data[0], x1_1 = _2.x, y1 = _2.y, xAxisCalloutData_1 = _2.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _2.xAxisCalloutAccessibilityData;
|
|
720
711
|
var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
|
|
721
712
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
722
713
|
pointsForLine.push(React.createElement("circle", tslib_1.__assign({ id: circleId_1, key: circleId_1, r: activePoint === circleId_1 ? 5.5 : 3.5, cx: this_1._xAxisScale(x1_1), cy: this_1._yAxisScale(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), onMouseMove: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), 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) {
|
|
@@ -763,15 +754,14 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
763
754
|
}
|
|
764
755
|
else if (!this_1.props.optimizeLargeData) {
|
|
765
756
|
var _loop_2 = function (j) {
|
|
766
|
-
var _3, _4, _5;
|
|
767
757
|
var gapResult = this_1._checkInGap(j, gaps, gapIndex);
|
|
768
758
|
var isInGap = gapResult.isInGap;
|
|
769
759
|
gapIndex = gapResult.gapIndex;
|
|
770
760
|
var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
|
|
771
761
|
var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
|
|
772
762
|
var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
|
|
773
|
-
var
|
|
774
|
-
var
|
|
763
|
+
var _3 = this_1._points[i].data[j - 1], x1 = _3.x, y1 = _3.y, xAxisCalloutData = _3.xAxisCalloutData, xAxisCalloutAccessibilityData = _3.xAxisCalloutAccessibilityData;
|
|
764
|
+
var _4 = this_1._points[i].data[j], x2 = _4.x, y2 = _4.y;
|
|
775
765
|
var path = this_1._getPath(this_1._xAxisScale(x1), this_1._yAxisScale(y1), circleId, j, false, this_1._points[i].index);
|
|
776
766
|
var strokeWidth = ((_p = this_1._points[i].lineOptions) === null || _p === void 0 ? void 0 : _p.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
777
767
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
@@ -783,7 +773,7 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
783
773
|
var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
|
|
784
774
|
var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
|
|
785
775
|
path = this_1._getPath(this_1._xAxisScale(x2), this_1._yAxisScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
|
|
786
|
-
var
|
|
776
|
+
var _5 = this_1._points[i].data[j], lastCirlceXCallout_1 = _5.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _5.xAxisCalloutAccessibilityData;
|
|
787
777
|
pointsForLine.push(React.createElement(React.Fragment, { key: "".concat(lastCircleId_1, "_container") },
|
|
788
778
|
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), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, onFocus: function () {
|
|
789
779
|
return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
|
|
@@ -867,4 +857,5 @@ var LineChartBase = exports.LineChartBase = /** @class */ (function (_super) {
|
|
|
867
857
|
};
|
|
868
858
|
return LineChartBase;
|
|
869
859
|
}(React.Component));
|
|
860
|
+
exports.LineChartBase = LineChartBase;
|
|
870
861
|
//# sourceMappingURL=LineChart.base.js.map
|