@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
|
@@ -41,7 +41,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
41
41
|
];
|
|
42
42
|
return allPointPaths[index];
|
|
43
43
|
};
|
|
44
|
-
var LineChartBase =
|
|
44
|
+
var LineChartBase = /** @class */ (function (_super) {
|
|
45
45
|
tslib_1.__extends(LineChartBase, _super);
|
|
46
46
|
function LineChartBase(props) {
|
|
47
47
|
var _this_1 = _super.call(this, props) || this;
|
|
@@ -65,8 +65,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
65
65
|
return domainNRangeValue;
|
|
66
66
|
};
|
|
67
67
|
_this_1._injectIndexPropertyInLineChartData = function (lineChartData) {
|
|
68
|
-
var _a;
|
|
69
|
-
var allowMultipleShapesForPoints = (_a = _this_1.props.allowMultipleShapesForPoints, _a === void 0 ? false : _a);
|
|
68
|
+
var _a = _this_1.props.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _a === void 0 ? false : _a;
|
|
70
69
|
return lineChartData
|
|
71
70
|
? lineChartData.map(function (item, index) {
|
|
72
71
|
var _a, _b;
|
|
@@ -121,8 +120,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
121
120
|
});
|
|
122
121
|
};
|
|
123
122
|
_this_1._getBoxWidthOfShape = function (pointId, pointIndex, isLastPoint) {
|
|
124
|
-
var _a, _b, _c;
|
|
125
|
-
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);
|
|
123
|
+
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;
|
|
126
124
|
var activePoint = _this_1.state.activePoint;
|
|
127
125
|
if (allowMultipleShapesForPoints) {
|
|
128
126
|
if (activePoint === pointId) {
|
|
@@ -145,8 +143,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
145
143
|
}
|
|
146
144
|
};
|
|
147
145
|
_this_1._getPath = function (xPos, yPos, pointId, pointIndex, isLastPoint, pointOftheLine) {
|
|
148
|
-
var _a;
|
|
149
|
-
var allowMultipleShapesForPoints = (_a = _this_1.props.allowMultipleShapesForPoints, _a === void 0 ? false : _a);
|
|
146
|
+
var _a = _this_1.props.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _a === void 0 ? false : _a;
|
|
150
147
|
var w = _this_1._getBoxWidthOfShape(pointId, pointIndex, isLastPoint);
|
|
151
148
|
var index = allowMultipleShapesForPoints ? pointOftheLine % Object.keys(index_3.pointTypes).length : 0;
|
|
152
149
|
var widthRatio = index_3.pointTypes[index].widthRatio;
|
|
@@ -154,9 +151,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
154
151
|
return _getPointPath(xPos, yPos, w, index);
|
|
155
152
|
};
|
|
156
153
|
_this_1._getPointFill = function (lineColor, pointId, pointIndex, isLastPoint) {
|
|
157
|
-
var _a, _b;
|
|
158
154
|
var activePoint = _this_1.state.activePoint;
|
|
159
|
-
var
|
|
155
|
+
var _a = _this_1.props, theme = _a.theme, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b;
|
|
160
156
|
if (allowMultipleShapesForPoints) {
|
|
161
157
|
if (pointIndex === 1 || isLastPoint) {
|
|
162
158
|
if (activePoint === pointId) {
|
|
@@ -234,7 +230,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
234
230
|
return { isInGap: isInGap, gapIndex: gapIndex };
|
|
235
231
|
};
|
|
236
232
|
_this_1._onMouseOverLargeDataset = function (linenumber, lineHeight, mouseEvent) {
|
|
237
|
-
var _a;
|
|
238
233
|
mouseEvent.persist();
|
|
239
234
|
var data = _this_1.props.data;
|
|
240
235
|
var lineChartData = data.lineChartData;
|
|
@@ -278,7 +273,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
278
273
|
break;
|
|
279
274
|
}
|
|
280
275
|
}
|
|
281
|
-
var
|
|
276
|
+
var _a = lineChartData[linenumber].data[index], xAxisCalloutData = _a.xAxisCalloutData, xAxisCalloutAccessibilityData = _a.xAxisCalloutAccessibilityData;
|
|
282
277
|
var formattedDate = xPointToHighlight instanceof Date ? (0, index_3.formatDate)(xPointToHighlight, _this_1.props.useUTC) : xPointToHighlight;
|
|
283
278
|
var modifiedXVal = xPointToHighlight instanceof Date ? xPointToHighlight.getTime() : xPointToHighlight;
|
|
284
279
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -536,8 +531,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
536
531
|
return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || "".concat(xValue, ". ").concat(legend, ", ").concat(yValue, ".");
|
|
537
532
|
};
|
|
538
533
|
_this_1._getChartTitle = function () {
|
|
539
|
-
var _a;
|
|
540
|
-
var chartTitle = (_a = _this_1.props.data, _a.chartTitle), lineChartData = _a.lineChartData;
|
|
534
|
+
var _a = _this_1.props.data, chartTitle = _a.chartTitle, lineChartData = _a.lineChartData;
|
|
541
535
|
return (chartTitle ? "".concat(chartTitle, ". ") : '') + "Line chart with ".concat((lineChartData === null || lineChartData === void 0 ? void 0 : lineChartData.length) || 0, " lines. ");
|
|
542
536
|
};
|
|
543
537
|
_this_1.state = {
|
|
@@ -586,9 +580,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
586
580
|
}
|
|
587
581
|
};
|
|
588
582
|
LineChartBase.prototype.render = function () {
|
|
589
|
-
var _a;
|
|
590
583
|
var _this_1 = this;
|
|
591
|
-
var
|
|
584
|
+
var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
|
|
592
585
|
this._points = this._injectIndexPropertyInLineChartData(data.lineChartData);
|
|
593
586
|
var isXAxisDateType = (0, index_3.getXAxisType)(this._points);
|
|
594
587
|
var points = this._points;
|
|
@@ -627,9 +620,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
627
620
|
} }))) : (React.createElement("div", { id: this._emptyChartId, role: 'alert', style: { opacity: '0' }, "aria-label": 'Graph has no data to display' }));
|
|
628
621
|
};
|
|
629
622
|
LineChartBase.prototype._createLegends = function (data) {
|
|
630
|
-
var _a, _b;
|
|
631
623
|
var _this_1 = this;
|
|
632
|
-
var
|
|
624
|
+
var _a = this.props, legendProps = _a.legendProps, _b = _a.allowMultipleShapesForPoints, allowMultipleShapesForPoints = _b === void 0 ? false : _b;
|
|
633
625
|
var isLegendMultiSelectEnabled = !!(legendProps && !!legendProps.canSelectMultipleLegends);
|
|
634
626
|
var legendDataItems = data.map(function (point) {
|
|
635
627
|
var color = point.color;
|
|
@@ -696,7 +688,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
696
688
|
this._points = this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);
|
|
697
689
|
}
|
|
698
690
|
var _loop_1 = function (i) {
|
|
699
|
-
var _2;
|
|
700
691
|
var linesForLine = [];
|
|
701
692
|
var bordersForLine = [];
|
|
702
693
|
var pointsForLine = [];
|
|
@@ -706,7 +697,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
706
697
|
var theme = this_1.props.theme;
|
|
707
698
|
var verticaLineHeight = containerHeight - this_1.margins.bottom + 6;
|
|
708
699
|
if (this_1._points[i].data.length === 1) {
|
|
709
|
-
var
|
|
700
|
+
var _2 = this_1._points[i].data[0], x1_1 = _2.x, y1 = _2.y, xAxisCalloutData_1 = _2.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _2.xAxisCalloutAccessibilityData;
|
|
710
701
|
var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
|
|
711
702
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
712
703
|
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) {
|
|
@@ -753,15 +744,14 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
753
744
|
}
|
|
754
745
|
else if (!this_1.props.optimizeLargeData) {
|
|
755
746
|
var _loop_2 = function (j) {
|
|
756
|
-
var _3, _4, _5;
|
|
757
747
|
var gapResult = this_1._checkInGap(j, gaps, gapIndex);
|
|
758
748
|
var isInGap = gapResult.isInGap;
|
|
759
749
|
gapIndex = gapResult.gapIndex;
|
|
760
750
|
var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
|
|
761
751
|
var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
|
|
762
752
|
var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
|
|
763
|
-
var
|
|
764
|
-
var
|
|
753
|
+
var _3 = this_1._points[i].data[j - 1], x1 = _3.x, y1 = _3.y, xAxisCalloutData = _3.xAxisCalloutData, xAxisCalloutAccessibilityData = _3.xAxisCalloutAccessibilityData;
|
|
754
|
+
var _4 = this_1._points[i].data[j], x2 = _4.x, y2 = _4.y;
|
|
765
755
|
var path = this_1._getPath(this_1._xAxisScale(x1), this_1._yAxisScale(y1), circleId, j, false, this_1._points[i].index);
|
|
766
756
|
var strokeWidth = ((_p = this_1._points[i].lineOptions) === null || _p === void 0 ? void 0 : _p.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
767
757
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
@@ -773,7 +763,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
773
763
|
var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
|
|
774
764
|
var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
|
|
775
765
|
path = this_1._getPath(this_1._xAxisScale(x2), this_1._yAxisScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
|
|
776
|
-
var
|
|
766
|
+
var _5 = this_1._points[i].data[j], lastCirlceXCallout_1 = _5.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _5.xAxisCalloutAccessibilityData;
|
|
777
767
|
pointsForLine.push(React.createElement(React.Fragment, { key: "".concat(lastCircleId_1, "_container") },
|
|
778
768
|
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 () {
|
|
779
769
|
return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
|
|
@@ -857,5 +847,6 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
857
847
|
};
|
|
858
848
|
return LineChartBase;
|
|
859
849
|
}(React.Component));
|
|
850
|
+
exports.LineChartBase = LineChartBase;
|
|
860
851
|
});
|
|
861
852
|
//# sourceMappingURL=LineChart.base.js.map
|