kirbydesk / kirbyblock-stats
Stats Block for Kirby CMS
Package info
github.com/kirbydesk/kirbyblock-stats
Type:kirby-plugin
pkg:composer/kirbydesk/kirbyblock-stats
Requires
- getkirby/composer-installer: ^1.2
- kirbydesk/kirby-pagewizard: ^1.5.6
- kirbydesk/kirby-projectwizard: ^1.10.5
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Stats block for the Kirby Pagewizard: key figures with a unit and a short label (e.g. „+43 % Higher process efficiency“), below an intro (tagline, heading, text) – in one of five views.
- Numbers: large numbers in tiles, an optional icon; columns per device, left or centred
- Bars: one bar per figure, its share of the maximum (100 when none is given)
- Rings: one ring per figure, the number inside
- Columns: the figures side by side, the largest full height
- Pie: the figures as shares of a whole (donut or full), with a legend
A figure with a maximum shows it next to its number in bars and rings („24 / 60 cm“). Figures with neither a number nor a label are left out.
Per colour variant: the tiles' surface, border and dividers on or off; colours of number, label, icon, surface, border, bars and rings, track and six chart colours. Number size per device, its weight (the weights the heading font has), unit size, padding, corners, gaps, shadow; bar height, ring size and width, column height.
Animation: when a figure comes into view, its number counts up and its bar, ring, column or pie grows – soft or springing back, one figure after the other. Not with “reduce motion”; without JavaScript the end values simply stand there.
The view per block (Layout tab); its look: Project Wizard › Blocks › Stats › Design.