const getBiggerTextWidth = () => { return labels.reduce((acc, cur) => { if (cur.length >= acc.length) { return cur; } return acc; }, ''); };