The built-in stat (spec/05 §6.3), "macaw.stat": one number from a slot's rows, with its
label and unit, of kind :content, :pure.
- parameters:
label(text,"", the field's label from the schema when empty);reduce(Macaw.Builtin.Reading.reduces/0,"latest", bindable);digits("", or"0"to"6"decimal places;""for the measure's own) andformat("", or a d3-format specifier over the number, a fault at its name when it's none), asMacaw.Builtin.Reading.writing_parameters/0gives them; - declarations: one slot,
rows, with rolesvalue(a:number) andt(the window field, optional, whichlatestanddeltaread by); reading load:glance; - order and budget:
latestanddeltaask for the rows newest first,latestfor one row; - markup: the label as a heading, then the number in a
<data>, written by its field's measure (Macaw.Builtin.Reading.writer/3), its unit included. A slot with no readings shows an en dash, never zero.latestordeltawith no time field drawsinvalid. A capped or stale number draws its notice above it, but for alatestthat is the whole answer (Macaw.Builtin.Reading.notice/4); - stylesheet:
stylesheet/0, served atstylesheet_path/0, its content address.
Summary
Functions
The stat's one static stylesheet, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).
Functions
@spec stylesheet() :: String.t()
The stat's one static stylesheet, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
@spec stylesheet_path() :: String.t()
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).