Skip to content

Commit

Permalink
fix(Highcharts plugin): Remove debounce to render the totals in a don…
Browse files Browse the repository at this point in the history
…ut chart (#469)

fix(Highcharts plugin): Remove debounce to render the totals in a donut chart
  • Loading branch information
kuzmadom committed Apr 15, 2024
1 parent 7924100 commit 4b808b8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import {dateTime} from '@gravity-ui/date-utils';
import Highcharts from 'highcharts';
import clamp from 'lodash/clamp';
import debounce from 'lodash/debounce';
import get from 'lodash/get';
import isEmpty from 'lodash/isEmpty';
import isNumber from 'lodash/isNumber';
Expand Down Expand Up @@ -1523,7 +1522,6 @@ export function prepareConfig(data, options, isMobile, holidays) {
const chartType = get(options, 'highcharts.chart.type') || 'line';
const {entryId} = options;
const testClassName = `data-qa-chartkit-tooltip-entry-${entryId}`;
const debouncedAdjustDonutFontSize = debounce(adjustDonutFontSize, 100);
const params = merge(getParamsByCustomType(options.type, options), defaultOptions, {
_config: options,
chart: {
Expand Down Expand Up @@ -1627,12 +1625,7 @@ export function prepareConfig(data, options, isMobile, holidays) {
const chartSeries = chart.series[0];
const innerWidth = chartSeries?.center[3];
if (innerWidth) {
debouncedAdjustDonutFontSize(
chart,
chartSeries,
innerWidth,
totals,
);
adjustDonutFontSize(chart, chartSeries, innerWidth, totals);
}
},
}),
Expand Down

0 comments on commit 4b808b8

Please sign in to comment.