diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx index a77dc541733c1..d14cc7dcefa2f 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx +++ b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx @@ -152,7 +152,7 @@ class BigNumberVis extends React.PureComponent { document.body.append(container); const fontSize = computeMaxFontSize({ text, - maxWidth: width, + maxWidth: width - 8, // Decrease 8px for more precise font size maxHeight, className: 'header-line', container,