src/custom-tooltip/utils.js
File utils.js
has 329 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import rtlUtils from '../utils/rtl-utils';
import TOOLTIP from './constants';
import customTooltipPromises from './promises';
import tooltipChart from './chart/index';
Consider simplifying this complex logical expression. Open
Open
if (initialDataSrc && !node.data?.customTooltipAttrExps && !keysPerType[node.type]) {
// populate allDataNodes variable here, chart.findShapes can affect the performance
if (!allDataNodes) {
allDataNodes = [];
Object.keys(keysPerType).forEach((type) => {