ChartYFormatterCompactNumber() — supabase Function Reference
Architecture documentation for the ChartYFormatterCompactNumber() function in Usage.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 5d050e22_3ef1_5377_1886_45aa975918a9["ChartYFormatterCompactNumber()"] 2332ec88_7b4e_b519_2827_c6a73f691f9f["AttributeUsage()"] 2332ec88_7b4e_b519_2827_c6a73f691f9f -->|calls| 5d050e22_3ef1_5377_1886_45aa975918a9 1af9f391_e944_58fa_f58e_74773af03676["formatBytesCompact()"] 5d050e22_3ef1_5377_1886_45aa975918a9 -->|calls| 1af9f391_e944_58fa_f58e_74773af03676 style 5d050e22_3ef1_5377_1886_45aa975918a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts lines 48–60
export const ChartYFormatterCompactNumber = (number: number | string, unit: string) => {
if (typeof number === 'string') return number
if (unit === 'bytes') {
const formattedBytes = formatBytesCompact(number).replace(/\s/g, '')
return formattedBytes === '0bytes' ? '0' : formattedBytes
} else if (unit === 'gigabytes') {
return compactNumberFormatter.format(number) + 'GB'
} else {
return compactNumberFormatter.format(number)
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does ChartYFormatterCompactNumber() do?
ChartYFormatterCompactNumber() is a function in the supabase codebase.
What does ChartYFormatterCompactNumber() call?
ChartYFormatterCompactNumber() calls 1 function(s): formatBytesCompact.
What calls ChartYFormatterCompactNumber()?
ChartYFormatterCompactNumber() is called by 1 function(s): AttributeUsage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free