@gravity-ui/chartkit 4.7.0 → 4.7.2

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.
@@ -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.custom) === null || _a === void 0 ? void 0 : _a.tooltipPointName;
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
- ((_b = point.series.userOptions) === null || _b === void 0 ? void 0 : _b.formattedName) ||
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "4.7.0",
3
+ "version": "4.7.2",
4
4
  "description": "React component used to render charts based on any sources you need",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:gravity-ui/ChartKit.git",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@bem-react/classname": "^1.6.0",
50
50
  "@gravity-ui/date-utils": "^1.4.1",
51
- "@gravity-ui/yagr": "^3.10.0",
51
+ "@gravity-ui/yagr": "^3.10.3",
52
52
  "d3": "^7.8.5",
53
53
  "lodash": "^4.17.21",
54
54
  "react-split-pane": "^0.1.92"