@gravity-ui/chartkit 5.3.2 → 5.3.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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { dateTime } from '@gravity-ui/date-utils';
|
|
3
3
|
import Highcharts from 'highcharts';
|
|
4
4
|
import clamp from 'lodash/clamp';
|
|
5
|
-
import debounce from 'lodash/debounce';
|
|
6
5
|
import get from 'lodash/get';
|
|
7
6
|
import isEmpty from 'lodash/isEmpty';
|
|
8
7
|
import isNumber from 'lodash/isNumber';
|
|
@@ -1152,7 +1151,6 @@ export function prepareConfig(data, options, isMobile, holidays) {
|
|
|
1152
1151
|
const chartType = get(options, 'highcharts.chart.type') || 'line';
|
|
1153
1152
|
const { entryId } = options;
|
|
1154
1153
|
const testClassName = `data-qa-chartkit-tooltip-entry-${entryId}`;
|
|
1155
|
-
const debouncedAdjustDonutFontSize = debounce(adjustDonutFontSize, 100);
|
|
1156
1154
|
const params = merge(getParamsByCustomType(options.type, options), defaultOptions, Object.assign({ _config: options, chart: {
|
|
1157
1155
|
events: Object.assign({ load: function () {
|
|
1158
1156
|
var _a;
|
|
@@ -1231,7 +1229,7 @@ export function prepareConfig(data, options, isMobile, holidays) {
|
|
|
1231
1229
|
const chartSeries = chart.series[0];
|
|
1232
1230
|
const innerWidth = chartSeries === null || chartSeries === void 0 ? void 0 : chartSeries.center[3];
|
|
1233
1231
|
if (innerWidth) {
|
|
1234
|
-
|
|
1232
|
+
adjustDonutFontSize(chart, chartSeries, innerWidth, totals);
|
|
1235
1233
|
}
|
|
1236
1234
|
},
|
|
1237
1235
|
})),
|
package/package.json
CHANGED