@gravity-ui/chartkit 3.1.0 → 3.1.1

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.
@@ -1227,14 +1227,11 @@ export function prepareConfig(data, options, isMobile, holidays) {
1227
1227
  } }, (chartType === 'pie' &&
1228
1228
  totals && {
1229
1229
  render: function () {
1230
- var _a;
1231
1230
  const chart = this;
1232
1231
  const chartSeries = chart.series[0];
1233
1232
  const innerWidth = chartSeries === null || chartSeries === void 0 ? void 0 : chartSeries.center[3];
1234
- const formatOptions = (_a = chartSeries === null || chartSeries === void 0 ? void 0 : chartSeries.userOptions) === null || _a === void 0 ? void 0 : _a.tooltip;
1235
- const value = formatDonutTotals(chartSeries === null || chartSeries === void 0 ? void 0 : chartSeries.total, formatOptions) || totals;
1236
1233
  if (innerWidth) {
1237
- debouncedAdjustDonutFontSize(chart, chartSeries, innerWidth, value);
1234
+ debouncedAdjustDonutFontSize(chart, chartSeries, innerWidth, totals);
1238
1235
  }
1239
1236
  },
1240
1237
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
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",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@gravity-ui/date-utils": "^1.4.1",
17
- "@gravity-ui/yagr": "^3.7.0",
17
+ "@gravity-ui/yagr": "^3.7.5",
18
18
  "bem-cn-lite": "^4.1.0",
19
19
  "lodash": "^4.17.21",
20
20
  "react-split-pane": "^0.1.92"