diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx index faf1c5b826c..6a97a5b8649 100644 --- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx +++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx @@ -320,14 +320,14 @@ export const CustomTooltip = ({ {active && showTotal && (
Total -
- - {isPercentage - ? formatPercentage(total as number, valuePrecision) - : formatNumeric(total as number) + - (!isPercentage && format !== 'ms' ? byteUnitSuffix : '')} - {format === 'ms' ? 'ms' : ''} - +
+ + {isPercentage + ? formatPercentage(total as number, valuePrecision) + : formatNumeric(total as number) + + (!isPercentage && format !== 'ms' ? byteUnitSuffix : '')} + {format === 'ms' ? 'ms' : ''} + {maxValueAttribute && !isPercentage && !isNaN((total as number) / maxValueData?.value) &&