calculatePercentageChange() — supabase Function Reference
Architecture documentation for the calculatePercentageChange() function in OverviewUsage.constants.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 152d4ab8_b0c2_d35e_d68c_37814e1a7e7b["calculatePercentageChange()"] 88c80fb7_c47a_15ef_1c36_847eec2754b1["OverviewMetrics()"] 88c80fb7_c47a_15ef_1c36_847eec2754b1 -->|calls| 152d4ab8_b0c2_d35e_d68c_37814e1a7e7b style 152d4ab8_b0c2_d35e_d68c_37814e1a7e7b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/Overview/OverviewUsage.constants.ts lines 100–103
export const calculatePercentageChange = (current: number, previous: number): number => {
if (previous === 0) return current > 0 ? 100 : 0
return ((current - previous) / previous) * 100
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does calculatePercentageChange() do?
calculatePercentageChange() is a function in the supabase codebase.
What calls calculatePercentageChange()?
calculatePercentageChange() is called by 1 function(s): OverviewMetrics.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free