Stats OverviewNew
The top of a dashboard: a headline metric and its change, a chart you scrub across 1W to 1Y, and metric tiles.
Pro block · recorded from Pro
The SwiftUI source comes with SwiftPieces Pro.
Every Pro block installs with one command once your license is signed in, and re-skins with Pro's design system.
Open it in the Pro library ↗Needs a SwiftPieces Pro license: npx swiftpieces login first.
- Type
- StatsOverviewBlock
- Inside
- Headline metric and its change, Chart you scrub, Range control from 1W to 1Y, Metric tiles
- Install, with a Pro license
- npx swiftpieces add StatsOverviewBlock
- Depends on
- Pro's Design System, which installs with it
The section at the top of an analytics or dashboard screen. One card holds the headline metric with its change against the previous period and a Swift Charts line you drag across to read any day, with the previous period dashed beneath and a 1W to 1Y control that morphs the line. Metric tiles sit below, and loading, empty and failed states are built in.
Its SwiftUI source comes with SwiftPieces Pro: Stats Overview in the Pro library.