@fluentui/react-charting 5.23.85 → 5.23.87
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 +61 -1
- package/CHANGELOG.md +25 -2
- package/dist/react-charting.d.ts +10 -0
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +2 -0
- package/lib/components/AreaChart/AreaChart.base.js +3 -3
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +1 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +51 -20
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js +1 -0
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +5 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js +13 -5
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +4 -3
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +61 -16
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.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/HeatMapChart/HeatMapChart.types.d.ts +5 -0
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +0 -2
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -67
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -3
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +3 -3
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -7
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +56 -50
- 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/utilities/utilities.d.ts +2 -1
- package/lib/utilities/utilities.js +12 -5
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +2 -2
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +50 -20
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +5 -0
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +12 -4
- package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +4 -3
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +62 -17
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +2 -2
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +5 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +0 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +1 -67
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +2 -3
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +2 -2
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +6 -6
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -2
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +55 -49
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/utilities/SVGTooltipText.js +5 -5
- package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +2 -1
- package/lib-amd/utilities/utilities.js +15 -7
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +2 -2
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +50 -19
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +5 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +12 -4
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +4 -3
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +62 -16
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +2 -2
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +5 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +0 -2
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -67
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -3
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +2 -2
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +6 -6
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -2
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +55 -49
- 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.d.ts +2 -1
- package/lib-commonjs/utilities/utilities.js +16 -8
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +2 -2
- package/src/components/HeatMapChart/HeatMapChart.types.ts +6 -0
|
@@ -10,11 +10,6 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
10
10
|
var barGapMultiplier = 0.2;
|
|
11
11
|
var barGapMin = 1;
|
|
12
12
|
var MIN_DOMAIN_MARGIN = 8;
|
|
13
|
-
var CircleVisbility;
|
|
14
|
-
(function (CircleVisbility) {
|
|
15
|
-
CircleVisbility["show"] = "visibility";
|
|
16
|
-
CircleVisbility["hide"] = "hidden";
|
|
17
|
-
})(CircleVisbility || (CircleVisbility = {}));
|
|
18
13
|
var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
19
14
|
tslib_1.__extends(VerticalStackedBarChartBase, _super);
|
|
20
15
|
function VerticalStackedBarChartBase(props) {
|
|
@@ -124,23 +119,28 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
124
119
|
if (lineBorderWidth > 0) {
|
|
125
120
|
borderForLines.push(React.createElement("line", { key: "".concat(index, "-").concat(i, "-BorderLine"), x1: x1, y1: y1, x2: x2, y2: y2, opacity: shouldHighlight ? 1 : 0.1, strokeWidth: 3 + lineBorderWidth * 2, fill: "transparent", strokeLinecap: "round", stroke: theme.semanticColors.bodyBackground, transform: "translate(".concat(xScaleBandwidthTranslate, ", 0)") }));
|
|
126
121
|
}
|
|
127
|
-
lines.push(React.createElement("line",
|
|
128
|
-
onMouseOver: _this._lineHover.bind(_this, lineObject[item][i - 1]),
|
|
129
|
-
onMouseLeave: _this._lineHoverOut,
|
|
130
|
-
}))));
|
|
122
|
+
lines.push(React.createElement("line", { key: "".concat(index, "-").concat(i, "-line"), x1: x1, y1: y1, x2: x2, y2: y2, opacity: shouldHighlight ? 1 : 0.1, strokeWidth: (_b = (_a = lineObject[item][0].lineOptions) === null || _a === void 0 ? void 0 : _a.strokeWidth) !== null && _b !== void 0 ? _b : 3, strokeLinecap: (_d = (_c = lineObject[item][0].lineOptions) === null || _c === void 0 ? void 0 : _c.strokeLinecap) !== null && _d !== void 0 ? _d : 'round', strokeDasharray: (_e = lineObject[item][0].lineOptions) === null || _e === void 0 ? void 0 : _e.strokeDasharray, stroke: lineObject[item][i].color, transform: "translate(".concat(xScaleBandwidthTranslate, ", 0)"), onMouseOver: _this._lineHover.bind(_this, lineObject[item][i - 1]), onMouseLeave: _this._handleMouseOut }));
|
|
131
123
|
}
|
|
132
124
|
});
|
|
133
125
|
Object.keys(lineObject).forEach(function (item, index) {
|
|
134
126
|
lineObject[item].forEach(function (circlePoint, subIndex) {
|
|
135
127
|
// Create an object to store line point ref so that the object can be passed by reference to the focus handler
|
|
136
128
|
var circleRef = { refElement: null };
|
|
129
|
+
var noBarsActive = circlePoint.xItem.chartData.filter(function (dataPoint) { return _this._noLegendHighlighted() || _this._isLegendHighlighted(dataPoint.legend); }).length === 0;
|
|
137
130
|
dots.push(React.createElement("circle", tslib_1.__assign({ key: "".concat(index, "-").concat(subIndex, "-dot"), cx: xScale(circlePoint.xItem.xAxisPoint), cy: circlePoint.useSecondaryYScale && yScaleSecondary
|
|
138
131
|
? yScaleSecondary(circlePoint.y)
|
|
139
|
-
: yScalePrimary(circlePoint.y), onMouseOver: _this.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
: yScalePrimary(circlePoint.y), onMouseOver: _this._lineHover.bind(_this, circlePoint), onMouseLeave: _this._handleMouseOut, r: _this._getCircleOpacityAndRadius(circlePoint.xItem.xAxisPoint, circlePoint.legend).radius, stroke: circlePoint.color, fill: _this.props.theme.semanticColors.bodyBackground, strokeWidth: 3,
|
|
133
|
+
// Elements with visibility: hidden cannot receive focus, so use opacity: 0 instead to hide them.
|
|
134
|
+
// For more information, see https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html
|
|
135
|
+
opacity: _this._getCircleOpacityAndRadius(circlePoint.xItem.xAxisPoint, circlePoint.legend).opacity, transform: "translate(".concat(xScaleBandwidthTranslate, ", 0)"), ref: function (e) { return (circleRef.refElement = e); } }, (noBarsActive && (_this._noLegendHighlighted() || _this._isLegendHighlighted(item))
|
|
136
|
+
? {
|
|
137
|
+
'data-is-focusable': !_this.props.hideTooltip,
|
|
138
|
+
onFocus: _this._lineFocus.bind(_this, circlePoint, circleRef),
|
|
139
|
+
onBlur: _this._handleMouseOut,
|
|
140
|
+
role: 'img',
|
|
141
|
+
'aria-label': _this._getAriaLabel(circlePoint.xItem, circlePoint, true),
|
|
142
|
+
}
|
|
143
|
+
: {}))));
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
146
|
return (React.createElement(React.Fragment, null,
|
|
@@ -148,22 +148,22 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
148
148
|
lines,
|
|
149
149
|
dots));
|
|
150
150
|
};
|
|
151
|
-
_this.
|
|
151
|
+
_this._getCircleOpacityAndRadius = function (xAxisPoint, legend) {
|
|
152
152
|
var activeXAxisDataPoint = _this.state.activeXAxisDataPoint;
|
|
153
153
|
if (!_this._noLegendHighlighted()) {
|
|
154
154
|
if (xAxisPoint === activeXAxisDataPoint && _this._isLegendHighlighted(legend)) {
|
|
155
|
-
return {
|
|
155
|
+
return { opacity: 1, radius: 8 };
|
|
156
156
|
}
|
|
157
157
|
else if (_this._isLegendHighlighted(legend)) {
|
|
158
|
-
return {
|
|
158
|
+
return { opacity: 1, radius: 0.3 };
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
|
-
return {
|
|
161
|
+
return { opacity: 0, radius: 0 };
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
return {
|
|
166
|
-
|
|
166
|
+
opacity: activeXAxisDataPoint === xAxisPoint ? 1 : 0,
|
|
167
167
|
radius: 8,
|
|
168
168
|
};
|
|
169
169
|
}
|
|
@@ -183,30 +183,27 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
183
183
|
mouseEvent.persist();
|
|
184
184
|
_this._lineHoverFocus(lineData, mouseEvent);
|
|
185
185
|
};
|
|
186
|
-
_this._lineHoverOut = function () {
|
|
187
|
-
_this.setState({
|
|
188
|
-
refSelected: null,
|
|
189
|
-
isCalloutVisible: false,
|
|
190
|
-
xCalloutValue: '',
|
|
191
|
-
yCalloutValue: '',
|
|
192
|
-
activeXAxisDataPoint: '',
|
|
193
|
-
color: '',
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
186
|
_this._lineFocus = function (lineData, ref) {
|
|
197
187
|
if (ref.refElement) {
|
|
198
188
|
_this._lineHoverFocus(lineData, ref.refElement);
|
|
199
189
|
}
|
|
200
190
|
};
|
|
201
191
|
_this._lineHoverFocus = function (lineData, refSelected) {
|
|
202
|
-
_this.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
192
|
+
if (_this._getHighlightedLegend().length === 1) {
|
|
193
|
+
if (_this._noLegendHighlighted() || _this._isLegendHighlighted(lineData.legend)) {
|
|
194
|
+
_this.setState({
|
|
195
|
+
refSelected: refSelected,
|
|
196
|
+
isCalloutVisible: true,
|
|
197
|
+
xCalloutValue: "".concat(lineData.xItem.xAxisPoint),
|
|
198
|
+
yCalloutValue: "".concat(lineData.yAxisCalloutData || lineData.data || lineData.y),
|
|
199
|
+
activeXAxisDataPoint: lineData.xItem.xAxisPoint,
|
|
200
|
+
color: lineData.color,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
_this._onStackHoverFocus(lineData.xItem, refSelected);
|
|
206
|
+
}
|
|
210
207
|
};
|
|
211
208
|
_this._handleMouseOut = function () {
|
|
212
209
|
/**/
|
|
@@ -267,8 +264,9 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
267
264
|
shouldHighlight: shouldHighlight,
|
|
268
265
|
href: _this.props.href,
|
|
269
266
|
});
|
|
270
|
-
var rectFocusProps = !shouldFocusWholeStack &&
|
|
271
|
-
|
|
267
|
+
var rectFocusProps = !shouldFocusWholeStack &&
|
|
268
|
+
shouldHighlight && {
|
|
269
|
+
'data-is-focusable': !_this.props.hideTooltip,
|
|
272
270
|
'aria-label': _this._getAriaLabel(singleChartData, point),
|
|
273
271
|
onMouseOver: _this._onRectHover.bind(_this, singleChartData.xAxisPoint, point, startColor),
|
|
274
272
|
onMouseMove: _this._onRectHover.bind(_this, singleChartData.xAxisPoint, point, startColor),
|
|
@@ -315,7 +313,12 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
315
313
|
React.createElement("rect", tslib_1.__assign({ className: _this._classNames.opacityChangeOnHover, x: xPoint, y: yPoint, width: _this._barWidth, height: barHeight, fill: _this.props.enableGradient ? "url(#".concat(gradientId, ")") : startColor, rx: _this.props.roundCorners ? 3 : 0, ref: function (e) { return (ref.refElement = e); } }, rectFocusProps, { transform: "translate(".concat(xScaleBandwidthTranslate, ", 0)") }))));
|
|
316
314
|
});
|
|
317
315
|
var groupRef = {};
|
|
318
|
-
var
|
|
316
|
+
var someBarsActive = singleChartData.chartData.filter(function (dataPoint) { return _this._noLegendHighlighted() || _this._isLegendHighlighted(dataPoint.legend); }).length > 0;
|
|
317
|
+
// FIXME: Making the entire stack focusable when stack callout is enabled adds unnecessary complexity
|
|
318
|
+
// and can reduce usability in certain scenarios. Instead, each individual element within the stack
|
|
319
|
+
// should be focusable on its own, with its own aria-label. This behavior is also seen in Highcharts.
|
|
320
|
+
var stackFocusProps = shouldFocusWholeStack &&
|
|
321
|
+
someBarsActive && {
|
|
319
322
|
'data-is-focusable': !_this.props.hideTooltip,
|
|
320
323
|
'aria-label': _this._getAriaLabel(singleChartData),
|
|
321
324
|
onMouseOver: _this._onStackHover.bind(_this, singleChartData),
|
|
@@ -367,9 +370,9 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
367
370
|
var tooltipProps = {
|
|
368
371
|
tooltipCls: _this._classNames.tooltip,
|
|
369
372
|
id: _this._tooltipId,
|
|
370
|
-
|
|
373
|
+
axis: xAxisElement,
|
|
371
374
|
};
|
|
372
|
-
xAxisElement && (0, index_3.
|
|
375
|
+
xAxisElement && (0, index_3.tooltipOfAxislabels)(tooltipProps);
|
|
373
376
|
}
|
|
374
377
|
return bars.filter(function (bar) { return !!bar; });
|
|
375
378
|
};
|
|
@@ -444,7 +447,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
444
447
|
_this._noLegendHighlighted = function () {
|
|
445
448
|
return _this._getHighlightedLegend().length === 0;
|
|
446
449
|
};
|
|
447
|
-
_this._getAriaLabel = function (singleChartData, point) {
|
|
450
|
+
_this._getAriaLabel = function (singleChartData, point, isLinePoint) {
|
|
448
451
|
var _a, _b, _c;
|
|
449
452
|
if (!point) {
|
|
450
453
|
/** if shouldFocusWholeStack is true */
|
|
@@ -456,26 +459,29 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
|
|
|
456
459
|
.map(function (pt) {
|
|
457
460
|
var legend = pt.legend;
|
|
458
461
|
var yValue = pt.yAxisCalloutData || pt.data;
|
|
459
|
-
return "".concat(legend, ", ").concat(yValue, ".");
|
|
462
|
+
return _this._noLegendHighlighted() || _this._isLegendHighlighted(legend) ? "".concat(legend, ", ").concat(yValue, ".") : '';
|
|
460
463
|
})
|
|
464
|
+
.filter(function (str) { return str !== ''; })
|
|
461
465
|
.join(' ');
|
|
462
466
|
var lineValues = (_a = singleChartData.lineData) === null || _a === void 0 ? void 0 : _a.map(function (ln) {
|
|
463
467
|
var legend = ln.legend;
|
|
464
468
|
var yValue = ln.yAxisCalloutData || ln.data || ln.y;
|
|
465
|
-
return "".concat(legend, ", ").concat(yValue, ".");
|
|
466
|
-
}).join(' ');
|
|
469
|
+
return _this._noLegendHighlighted() || _this._isLegendHighlighted(legend) ? "".concat(legend, ", ").concat(yValue, ".") : '';
|
|
470
|
+
}).filter(function (str) { return str !== ''; }).join(' ');
|
|
467
471
|
return (((_b = singleChartData.stackCallOutAccessibilityData) === null || _b === void 0 ? void 0 : _b.ariaLabel) ||
|
|
468
472
|
"".concat(xValue_1, ". ").concat(pointValues) + (lineValues ? " ".concat(lineValues) : ''));
|
|
469
473
|
}
|
|
470
474
|
/** if shouldFocusWholeStack is false */
|
|
471
475
|
var xValue = singleChartData.xAxisCalloutData ||
|
|
472
|
-
point.xAxisCalloutData ||
|
|
476
|
+
(!isLinePoint && point.xAxisCalloutData) ||
|
|
473
477
|
(singleChartData.xAxisPoint instanceof Date
|
|
474
478
|
? (0, index_3.formatDate)(singleChartData.xAxisPoint)
|
|
475
479
|
: singleChartData.xAxisPoint);
|
|
476
480
|
var legend = point.legend;
|
|
477
|
-
var yValue = point.yAxisCalloutData ||
|
|
478
|
-
|
|
481
|
+
var yValue = point.yAxisCalloutData ||
|
|
482
|
+
(isLinePoint ? point.data || point.y : point.data);
|
|
483
|
+
return ((!isLinePoint && ((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel)) ||
|
|
484
|
+
"".concat(xValue, ". ").concat(legend, ", ").concat(yValue, "."));
|
|
479
485
|
};
|
|
480
486
|
_this._getDomainMargins = function (containerWidth) {
|
|
481
487
|
var _a;
|