@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
|
@@ -21,11 +21,6 @@ var COMPONENT_NAME = 'VERTICAL STACKED BAR CHART';
|
|
|
21
21
|
var barGapMultiplier = 0.2;
|
|
22
22
|
var barGapMin = 1;
|
|
23
23
|
var MIN_DOMAIN_MARGIN = 8;
|
|
24
|
-
var CircleVisbility;
|
|
25
|
-
(function (CircleVisbility) {
|
|
26
|
-
CircleVisbility["show"] = "visibility";
|
|
27
|
-
CircleVisbility["hide"] = "hidden";
|
|
28
|
-
})(CircleVisbility || (CircleVisbility = {}));
|
|
29
24
|
var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
30
25
|
tslib_1.__extends(VerticalStackedBarChartBase, _super);
|
|
31
26
|
function VerticalStackedBarChartBase(props) {
|
|
@@ -135,23 +130,28 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
135
130
|
if (lineBorderWidth > 0) {
|
|
136
131
|
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)") }));
|
|
137
132
|
}
|
|
138
|
-
lines.push(React.createElement("line",
|
|
139
|
-
onMouseOver: _this._lineHover.bind(_this, lineObject[item][i - 1]),
|
|
140
|
-
onMouseLeave: _this._lineHoverOut,
|
|
141
|
-
}))));
|
|
133
|
+
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 }));
|
|
142
134
|
}
|
|
143
135
|
});
|
|
144
136
|
Object.keys(lineObject).forEach(function (item, index) {
|
|
145
137
|
lineObject[item].forEach(function (circlePoint, subIndex) {
|
|
146
138
|
// Create an object to store line point ref so that the object can be passed by reference to the focus handler
|
|
147
139
|
var circleRef = { refElement: null };
|
|
140
|
+
var noBarsActive = circlePoint.xItem.chartData.filter(function (dataPoint) { return _this._noLegendHighlighted() || _this._isLegendHighlighted(dataPoint.legend); }).length === 0;
|
|
148
141
|
dots.push(React.createElement("circle", tslib_1.__assign({ key: "".concat(index, "-").concat(subIndex, "-dot"), cx: xScale(circlePoint.xItem.xAxisPoint), cy: circlePoint.useSecondaryYScale && yScaleSecondary
|
|
149
142
|
? yScaleSecondary(circlePoint.y)
|
|
150
|
-
: yScalePrimary(circlePoint.y), onMouseOver: _this.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
143
|
+
: 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,
|
|
144
|
+
// Elements with visibility: hidden cannot receive focus, so use opacity: 0 instead to hide them.
|
|
145
|
+
// For more information, see https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html
|
|
146
|
+
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))
|
|
147
|
+
? {
|
|
148
|
+
'data-is-focusable': !_this.props.hideTooltip,
|
|
149
|
+
onFocus: _this._lineFocus.bind(_this, circlePoint, circleRef),
|
|
150
|
+
onBlur: _this._handleMouseOut,
|
|
151
|
+
role: 'img',
|
|
152
|
+
'aria-label': _this._getAriaLabel(circlePoint.xItem, circlePoint, true),
|
|
153
|
+
}
|
|
154
|
+
: {}))));
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
return (React.createElement(React.Fragment, null,
|
|
@@ -159,22 +159,22 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
159
159
|
lines,
|
|
160
160
|
dots));
|
|
161
161
|
};
|
|
162
|
-
_this.
|
|
162
|
+
_this._getCircleOpacityAndRadius = function (xAxisPoint, legend) {
|
|
163
163
|
var activeXAxisDataPoint = _this.state.activeXAxisDataPoint;
|
|
164
164
|
if (!_this._noLegendHighlighted()) {
|
|
165
165
|
if (xAxisPoint === activeXAxisDataPoint && _this._isLegendHighlighted(legend)) {
|
|
166
|
-
return {
|
|
166
|
+
return { opacity: 1, radius: 8 };
|
|
167
167
|
}
|
|
168
168
|
else if (_this._isLegendHighlighted(legend)) {
|
|
169
|
-
return {
|
|
169
|
+
return { opacity: 1, radius: 0.3 };
|
|
170
170
|
}
|
|
171
171
|
else {
|
|
172
|
-
return {
|
|
172
|
+
return { opacity: 0, radius: 0 };
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
else {
|
|
176
176
|
return {
|
|
177
|
-
|
|
177
|
+
opacity: activeXAxisDataPoint === xAxisPoint ? 1 : 0,
|
|
178
178
|
radius: 8,
|
|
179
179
|
};
|
|
180
180
|
}
|
|
@@ -194,30 +194,27 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
194
194
|
mouseEvent.persist();
|
|
195
195
|
_this._lineHoverFocus(lineData, mouseEvent);
|
|
196
196
|
};
|
|
197
|
-
_this._lineHoverOut = function () {
|
|
198
|
-
_this.setState({
|
|
199
|
-
refSelected: null,
|
|
200
|
-
isCalloutVisible: false,
|
|
201
|
-
xCalloutValue: '',
|
|
202
|
-
yCalloutValue: '',
|
|
203
|
-
activeXAxisDataPoint: '',
|
|
204
|
-
color: '',
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
197
|
_this._lineFocus = function (lineData, ref) {
|
|
208
198
|
if (ref.refElement) {
|
|
209
199
|
_this._lineHoverFocus(lineData, ref.refElement);
|
|
210
200
|
}
|
|
211
201
|
};
|
|
212
202
|
_this._lineHoverFocus = function (lineData, refSelected) {
|
|
213
|
-
_this.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
203
|
+
if (_this._getHighlightedLegend().length === 1) {
|
|
204
|
+
if (_this._noLegendHighlighted() || _this._isLegendHighlighted(lineData.legend)) {
|
|
205
|
+
_this.setState({
|
|
206
|
+
refSelected: refSelected,
|
|
207
|
+
isCalloutVisible: true,
|
|
208
|
+
xCalloutValue: "".concat(lineData.xItem.xAxisPoint),
|
|
209
|
+
yCalloutValue: "".concat(lineData.yAxisCalloutData || lineData.data || lineData.y),
|
|
210
|
+
activeXAxisDataPoint: lineData.xItem.xAxisPoint,
|
|
211
|
+
color: lineData.color,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
_this._onStackHoverFocus(lineData.xItem, refSelected);
|
|
217
|
+
}
|
|
221
218
|
};
|
|
222
219
|
_this._handleMouseOut = function () {
|
|
223
220
|
/**/
|
|
@@ -278,8 +275,9 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
278
275
|
shouldHighlight: shouldHighlight,
|
|
279
276
|
href: _this.props.href,
|
|
280
277
|
});
|
|
281
|
-
var rectFocusProps = !shouldFocusWholeStack &&
|
|
282
|
-
|
|
278
|
+
var rectFocusProps = !shouldFocusWholeStack &&
|
|
279
|
+
shouldHighlight && {
|
|
280
|
+
'data-is-focusable': !_this.props.hideTooltip,
|
|
283
281
|
'aria-label': _this._getAriaLabel(singleChartData, point),
|
|
284
282
|
onMouseOver: _this._onRectHover.bind(_this, singleChartData.xAxisPoint, point, startColor),
|
|
285
283
|
onMouseMove: _this._onRectHover.bind(_this, singleChartData.xAxisPoint, point, startColor),
|
|
@@ -326,7 +324,12 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
326
324
|
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)") }))));
|
|
327
325
|
});
|
|
328
326
|
var groupRef = {};
|
|
329
|
-
var
|
|
327
|
+
var someBarsActive = singleChartData.chartData.filter(function (dataPoint) { return _this._noLegendHighlighted() || _this._isLegendHighlighted(dataPoint.legend); }).length > 0;
|
|
328
|
+
// FIXME: Making the entire stack focusable when stack callout is enabled adds unnecessary complexity
|
|
329
|
+
// and can reduce usability in certain scenarios. Instead, each individual element within the stack
|
|
330
|
+
// should be focusable on its own, with its own aria-label. This behavior is also seen in Highcharts.
|
|
331
|
+
var stackFocusProps = shouldFocusWholeStack &&
|
|
332
|
+
someBarsActive && {
|
|
330
333
|
'data-is-focusable': !_this.props.hideTooltip,
|
|
331
334
|
'aria-label': _this._getAriaLabel(singleChartData),
|
|
332
335
|
onMouseOver: _this._onStackHover.bind(_this, singleChartData),
|
|
@@ -378,9 +381,9 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
378
381
|
var tooltipProps = {
|
|
379
382
|
tooltipCls: _this._classNames.tooltip,
|
|
380
383
|
id: _this._tooltipId,
|
|
381
|
-
|
|
384
|
+
axis: xAxisElement,
|
|
382
385
|
};
|
|
383
|
-
xAxisElement && (0, index_3.
|
|
386
|
+
xAxisElement && (0, index_3.tooltipOfAxislabels)(tooltipProps);
|
|
384
387
|
}
|
|
385
388
|
return bars.filter(function (bar) { return !!bar; });
|
|
386
389
|
};
|
|
@@ -455,7 +458,7 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
455
458
|
_this._noLegendHighlighted = function () {
|
|
456
459
|
return _this._getHighlightedLegend().length === 0;
|
|
457
460
|
};
|
|
458
|
-
_this._getAriaLabel = function (singleChartData, point) {
|
|
461
|
+
_this._getAriaLabel = function (singleChartData, point, isLinePoint) {
|
|
459
462
|
var _a, _b, _c;
|
|
460
463
|
if (!point) {
|
|
461
464
|
/** if shouldFocusWholeStack is true */
|
|
@@ -467,26 +470,29 @@ var VerticalStackedBarChartBase = /** @class */ (function (_super) {
|
|
|
467
470
|
.map(function (pt) {
|
|
468
471
|
var legend = pt.legend;
|
|
469
472
|
var yValue = pt.yAxisCalloutData || pt.data;
|
|
470
|
-
return "".concat(legend, ", ").concat(yValue, ".");
|
|
473
|
+
return _this._noLegendHighlighted() || _this._isLegendHighlighted(legend) ? "".concat(legend, ", ").concat(yValue, ".") : '';
|
|
471
474
|
})
|
|
475
|
+
.filter(function (str) { return str !== ''; })
|
|
472
476
|
.join(' ');
|
|
473
477
|
var lineValues = (_a = singleChartData.lineData) === null || _a === void 0 ? void 0 : _a.map(function (ln) {
|
|
474
478
|
var legend = ln.legend;
|
|
475
479
|
var yValue = ln.yAxisCalloutData || ln.data || ln.y;
|
|
476
|
-
return "".concat(legend, ", ").concat(yValue, ".");
|
|
477
|
-
}).join(' ');
|
|
480
|
+
return _this._noLegendHighlighted() || _this._isLegendHighlighted(legend) ? "".concat(legend, ", ").concat(yValue, ".") : '';
|
|
481
|
+
}).filter(function (str) { return str !== ''; }).join(' ');
|
|
478
482
|
return (((_b = singleChartData.stackCallOutAccessibilityData) === null || _b === void 0 ? void 0 : _b.ariaLabel) ||
|
|
479
483
|
"".concat(xValue_1, ". ").concat(pointValues) + (lineValues ? " ".concat(lineValues) : ''));
|
|
480
484
|
}
|
|
481
485
|
/** if shouldFocusWholeStack is false */
|
|
482
486
|
var xValue = singleChartData.xAxisCalloutData ||
|
|
483
|
-
point.xAxisCalloutData ||
|
|
487
|
+
(!isLinePoint && point.xAxisCalloutData) ||
|
|
484
488
|
(singleChartData.xAxisPoint instanceof Date
|
|
485
489
|
? (0, index_3.formatDate)(singleChartData.xAxisPoint)
|
|
486
490
|
: singleChartData.xAxisPoint);
|
|
487
491
|
var legend = point.legend;
|
|
488
|
-
var yValue = point.yAxisCalloutData ||
|
|
489
|
-
|
|
492
|
+
var yValue = point.yAxisCalloutData ||
|
|
493
|
+
(isLinePoint ? point.data || point.y : point.data);
|
|
494
|
+
return ((!isLinePoint && ((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel)) ||
|
|
495
|
+
"".concat(xValue, ". ").concat(legend, ", ").concat(yValue, "."));
|
|
490
496
|
};
|
|
491
497
|
_this._getDomainMargins = function (containerWidth) {
|
|
492
498
|
var _a;
|