@gravity-ui/chartkit 4.7.1 → 4.7.3
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.
|
@@ -387,7 +387,7 @@ function getTooltip(tooltip, options, comments, holidays) {
|
|
|
387
387
|
const xAxis = chart.xAxis[0];
|
|
388
388
|
const isDatetimeXAxis = xAxis.options.type === 'datetime';
|
|
389
389
|
let json;
|
|
390
|
-
if (['pie', 'funnel', 'solidgauge'].includes(serieType)) {
|
|
390
|
+
if (['pie', 'funnel', 'solidgauge', 'packedbubble'].includes(serieType)) {
|
|
391
391
|
const dataSource = this.point || this.points[0].point;
|
|
392
392
|
const precision = isNumber(options.tooltipPercentPrecision)
|
|
393
393
|
? options.tooltipPercentPrecision
|
|
@@ -474,7 +474,7 @@ function getTooltip(tooltip, options, comments, holidays) {
|
|
|
474
474
|
}
|
|
475
475
|
json.tooltipHeader = chart.time.dateFormat(xDateFormat, this.x);
|
|
476
476
|
}
|
|
477
|
-
else if ((_e = (_d = (_c = extendedPoint.point) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.xFormatted) !== null && _e !== void 0 ? _e : (extendedPoint.x || extendedPoint.x === 0)) {
|
|
477
|
+
else if ((_e = (_d = (_c = extendedPoint === null || extendedPoint === void 0 ? void 0 : extendedPoint.point) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.xFormatted) !== null && _e !== void 0 ? _e : ((extendedPoint === null || extendedPoint === void 0 ? void 0 : extendedPoint.x) || (extendedPoint === null || extendedPoint === void 0 ? void 0 : extendedPoint.x) === 0)) {
|
|
478
478
|
const customTooltipHeaderFormatter = (_f = options === null || options === void 0 ? void 0 : options.highcharts) === null || _f === void 0 ? void 0 : _f.tooltipHeaderFormatter;
|
|
479
479
|
const tooltipHeaderStringValue = String((_j = (_h = (_g = extendedPoint.point) === null || _g === void 0 ? void 0 : _g.options) === null || _h === void 0 ? void 0 : _h.xFormatted) !== null && _j !== void 0 ? _j : extendedPoint.x);
|
|
480
480
|
json.tooltipHeader = customTooltipHeaderFormatter
|
|
@@ -505,16 +505,16 @@ function getTooltip(tooltip, options, comments, holidays) {
|
|
|
505
505
|
const newComments = getCommentsOnLine(this, comments, chart);
|
|
506
506
|
json.xComments = newComments.xComments;
|
|
507
507
|
points.forEach((point) => {
|
|
508
|
-
var _a, _b;
|
|
508
|
+
var _a, _b, _c;
|
|
509
509
|
const tooltipOptions = point.series.tooltipOptions || {};
|
|
510
510
|
const userOptions = point.series.userOptions || {};
|
|
511
|
-
const customTooltipSeriesName = (_a = point.point
|
|
511
|
+
const customTooltipSeriesName = (_b = (_a = point === null || point === void 0 ? void 0 : point.point) === null || _a === void 0 ? void 0 : _a.custom) === null || _b === void 0 ? void 0 : _b.tooltipPointName;
|
|
512
512
|
const obj = Object.assign({ selectedSeries: point.series.index === chart.userOptions._activeSeries, hideSeriesName: options.highcharts &&
|
|
513
513
|
options.highcharts.tooltip &&
|
|
514
514
|
options.highcharts.tooltip.hideSeriesName, seriesColor: shared
|
|
515
515
|
? point.point.color || point.point.series.color
|
|
516
516
|
: point.series.color, seriesShape: userOptions === null || userOptions === void 0 ? void 0 : userOptions.dashStyle, seriesName: customTooltipSeriesName ||
|
|
517
|
-
((
|
|
517
|
+
((_c = point.series.userOptions) === null || _c === void 0 ? void 0 : _c.formattedName) ||
|
|
518
518
|
point.series.name }, pick(tooltipOptions, [
|
|
519
519
|
'chartKitFormatting',
|
|
520
520
|
'chartKitPrecision',
|
package/package.json
CHANGED