Skip to content

formatDelta

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/components/Analytics/charts/formatters.ts

Signature

ts
function formatDelta(current: number | null | undefined, previous: number | null | undefined): { text: string; direction: 'up' | 'down' | 'flat' }

Parameters

NameType
current`number
previous`number

Returns: { text: string; direction: 'up' | 'down' | 'flat' }

Was this page helpful?

Download as PDF