Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Highcharts plugin): Remove debounce to render the totals in a donut chart #469

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading