@umriss-ui/charts 0.51.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/API.md ADDED
@@ -0,0 +1,252 @@
1
+ # @umriss-ui/charts API
2
+
3
+ Generated by the props step (`pnpm --filter @umriss-ui/charts props`); do not edit. First sentences only; the full text is `docs/llms-full.md`.
4
+
5
+ ## Components
6
+
7
+ - ChartsWordingProvider — Sets the wording of every chart below it, also one inside another package's widget.
8
+ - ControlChart — A control chart inside a `Chart`: the values as a line, the control limits and zones computed from them, and the points that break a rule marked.
9
+ - DataTable — The chart's values as a table, on demand: a key - in the legend where there is one - opens a table of what the chart shows, one column per visible series, in the tooltip's format.
10
+ - Legend — The legend of a chart: one entry per series, or per state of a state band.
11
+ - LimitBand — A limit drawn as a band between two values of an axis - a tolerance or a zone.
12
+ - LimitLine — A limit drawn as a line across the plot at one value of an axis - a specification limit, or with `role` a control limit.
13
+ - Tooltip — Turns on the pointer's interaction with a chart: crosshair, hover markers and the tooltip, built in or from `render`.
14
+
15
+ ## Hooks
16
+
17
+ - useChart — A chart over your rows: the parts it returns are typed at your row, so that a field name in `value` is checked by the compiler.
18
+
19
+ ## Functions
20
+
21
+ - assess — What the value is, given the limit set.
22
+ - bin — Counts values into bins of equal width.
23
+ - breaks — The breaks in working time that lie within the extent [from, to] - what the axis must mark, in domain units.
24
+ - calendarFrom — Calendar from an input - a built calendar is passed straight through, a raw list is built once and remembered.
25
+ - controlLimits — Centre line and control limits.
26
+ - inDoubledHour — Does the clock show this instant's time twice?
27
+ - invalidateTheme — Explicit invalidation: devalue the cache, every living chart reads anew and redraws.
28
+ - localOffset — The local offset at an instant, as the shift of a grid that is to lie on local time: `wallClock = offset + k · step`.
29
+ - pareto — Sorts descending, accumulates, collects the tail and finds the cutoff crossing.
30
+ - removedIntervals — The removed spans between the working intervals, for the mark in the axis band.
31
+ - resolveColours — Any number of CSS colours - a token, `light-dark(…)`, `var(--…)`, a literal - resolved to values a canvas can draw, in the scheme that applies at `root`.
32
+ - subscribeTheme — Subscribe to theme invalidations - a switch of `color-scheme` on the document, the system's preference, or `invalidateTheme()`.
33
+ - timeStep — Step for tick candidates in wall clock time, at an intended count.
34
+ - toWallClock — Working time → wall clock time; outside [0, total] there is none.
35
+ - toWorkingTimeClamped — Wall clock time → working time, but without NaN: whatever lies in removed time falls onto the seam that this span collapses onto anyway; whatever lies before the first or after the last interval onto 0 or onto the whole working time respectively.
36
+ - verdictWeight — How heavily a verdict weighs, as a number - for sorting and comparing, as when a matrix is to bring its worst cell to the top.
37
+ - violatedIndices — All violated indices, ascending and free of duplicates - the scatter drawn beside the line.
38
+ - violations — The rules switched on, each with its indices.
39
+ - workingCalendar — Builds a calendar: sorts, merges overlapping and abutting intervals and throws away empty, reversed and non-finite ones.
40
+ - workingTimeTicks — Ticks for a working time axis, from an extent in WALL CLOCK TIME.
41
+ - zones — The faintly drawn zone lines.
42
+
43
+ ## Constants
44
+
45
+ - DAY — One day of 24 hours in milliseconds; across a clock change a calendar day is an hour longer or shorter.
46
+ - DEFAULT_CHARTS_WORDING — The instance shipped by default.
47
+ - DEFAULT_GRADIENT — Default gradient: a sequential set, light to dark, so that it stays readable as an order of lightness even without colour.
48
+ - HOUR — One hour in milliseconds.
49
+ - LinearScale — The affine mapping from a domain onto a pixel range, and back; the scale every axis of the library uses.
50
+ - MINUTE — One minute in milliseconds.
51
+ - SECOND — One second in milliseconds, the unit of a time axis.
52
+
53
+ ## Types
54
+
55
+ - AreaProps — The props of `Area`.
56
+ - AreaSeriesConfig — An `Area` as the chart holds it once registered. [kind, baseline, fillOpacity, strokeWidth, dash, maxGap, accessor, data, xAxisId, yAxisId, name, format, color, tone, stack, normalize]
57
+ - Assessment — The verdict and what led to it. [verdict, limit, excess, deviation]
58
+ - AxisConfig — An `XAxis` or `YAxis` as the chart holds it once registered. [id, orientation, position, accessor, label, tickCount, tickFormat, domain, grid, ticks, categories, categoryLabel, time, calendar, alignTicks, zoomable, zoomLimits]
59
+ - AxisField — The fields of a row an axis can read - or, with `V`, those that hold only some of what an axis reads: a matrix' row is a position or a category, never an instant.
60
+ - AxisOrientation — Whether an axis or a limit runs along x or along y.
61
+ - AxisPosition — The edge of the plot an axis stands at: `bottom` or `top` for x, `left` or `right` for y.
62
+ - AxisSpans — The span each zoomable x axis shows, by axis `id`, in the axis' units.
63
+ - AxisValue — What an axis reads from a row (ADR-0052): a number - a position, or an instant on a time axis -, a string, which is a category, or a `Date`, which is an instant.
64
+ - BarProps — The props of `Bar`.
65
+ - BarSeriesConfig — A `Bar` as the chart holds it once registered. [kind, baseline, barWidth, accessor, data, xAxisId, yAxisId, name, format, color, tone, stack, normalize]
66
+ - Bin — A bin, the way it is drawn. [from, to, x, count]
67
+ - BinOptions — The settings of `bin`. [width, count, domain]
68
+ - BoxChannels — The named channels of a box: one number per point, NaN where the median is a gap; and its outliers (ADR-0040). [outliers, outlierOffsets, mean, notchLower, notchUpper, count, lowerQuartile, upperQuartile, lowerWhisker, upperWhisker]
69
+ - BoxExtras — The optional numbers of a box by name. [mean, notchLower, notchUpper, count]
70
+ - BoxNumbers — A box's further numbers beside its median, by name. [lowerQuartile, upperQuartile, lowerWhisker, upperWhisker]
71
+ - BoxPlotProps — The props of `BoxPlot`.
72
+ - BoxSeriesConfig — A box plot (CONTEXT.md: Box). [kind, lowerQuartile, upperQuartile, lowerWhisker, upperWhisker, outliers, mean, notchLower, notchUpper, count, boxWidth, accessor, data, xAxisId, yAxisId, name, format, color, tone]
73
+ - CalendarInput — Every function of this module takes either: the raw list as it stands on the axis, or the calendar built from it.
74
+ - ChartOptions — What `useChart` takes besides the rows: the view to start from and the handler that hears every change of it. [initialView, onViewChange, onSelect, onRange]
75
+ - ChartParts — What `useChart` hands back: the chart and its parts, typed at the row `Z`, its view and the setters that change it. [Chart, XAxis, YAxis, Line, Area, Bar, Scatter, StateBand, Matrix, BoxPlot, view, domains, setView, setDomain, hidden, toggleSeries, showOnly, showAllSeries, toPng]
76
+ - ChartPerf — Measurements of the instrumentation for the benchmark page. [materializeMs, seriesDrawMs, points]
77
+ - ChartProps — The props of `Chart`.
78
+ - ChartRange — A stretch of an x axis the reader marked (`onRange`): `from` is not after `to`, both in the axis' own values - numbers on a numeric or time axis (milliseconds). [axisId, from, to]
79
+ - ChartView — How a reader is looking at a chart. [domains, hidden]
80
+ - ChartsWording — Everything the charts put out as text. [locale, roleDescription, empty, seriesList, visibleRange, seriesExtent, limitList, readout, stackTotal, percent, walkHelp, selectHelp, rangeStarted, rangeMade, rangeHelp, zoomHelp, legendHelp, allShown, showAll, showData, hideData, positionColumn, rowColumn, tableCaption, upperWhisker, upperQuartile, median, lowerQuartile, lowerWhisker, outliers, mean, notch, count, outlierList, downsampled, levelRange]
81
+ - ChartsWordingProviderProps — The props of `ChartsWordingProvider`.
82
+ - ControlChartProps — The props of `ControlChart`.
83
+ - ControlLimitOrigin — Where the limits come from.
84
+ - ControlLimits — Centre line, estimated spread and the control limits at three sigma. [center, sigma, upper, lower]
85
+ - DataTableGroup — One table of the data table: the series of one x axis, or one matrix. [key, caption, columns, rows]
86
+ - LegendConfig — A `Legend` as the chart holds it once registered. [placement]
87
+ - LegendProps — The props of `Legend`.
88
+ - Limit — A bound: a value, a side and a severity. [value, side, severity]
89
+ - LimitBandConfig — A `LimitBand` as the chart holds it once registered: the range from `from` to `to`. [kind, from, to, axisId, orientation, severity, role, label, color, inExtent]
90
+ - LimitBandProps — The props of `LimitBand`: a `LimitLine`'s, with a range in place of `value`.
91
+ - LimitConfig — Any registered limit, a line or a band, told apart by `kind`.
92
+ - LimitLineConfig — A `LimitLine` as the chart holds it once registered. [kind, value, axisId, orientation, severity, role, label, color, inExtent]
93
+ - LimitLineProps — The props of `LimitLine`.
94
+ - LimitRole — What a limit stands for.
95
+ - LimitSet — The set a value is read against: its bounds and, where there is one, its target. [limits, target]
96
+ - LineProps — The props of `Line`.
97
+ - LineSeriesConfig — A `Line` as the chart holds it once registered. [kind, strokeWidth, dash, markers, step, maxGap, accessor, data, xAxisId, yAxisId, name, format, color, tone]
98
+ - ListField — The fields of a row whose value is a list of numbers, or absent.
99
+ - ListFunction — A list computed from the row - a box's outliers (ADR-0040), the function form of `ListValue`.
100
+ - ListValue — A list read from the row: the name of a list field or a function.
101
+ - MaterializedSeries — Materialised series: the draw loop works only on this. [x, y, y0, w, box, length]
102
+ - MatrixColoring — How a matrix colours its cells.
103
+ - MatrixProps — The props of `Matrix`.
104
+ - MatrixSeriesConfig — A `Matrix` as the chart holds it once registered: its base accessor is the row, `level` the colour. [kind, level, coloring, labels, accessor, data, xAxisId, yAxisId, name, format, color, tone]
105
+ - NumberField — The fields of a row whose value is a number, or absent.
106
+ - NumberOptions — The options of `Intl.NumberFormat`, plus `decimals` for a fixed number of places (minimum and maximum alike; an Intl digit option given beside it wins). [decimals]
107
+ - OneLane — A lane is named or given by its edges: the compiler refuses both at once.
108
+ - Padding — Space in CSS pixels on each side of a rectangle. [top, right, bottom, left]
109
+ - ParetoEntry — An item, the way it is drawn. [name, value, index, share, cumulative, remainder]
110
+ - ParetoItem — An item, the way the caller counts it. [name, value]
111
+ - ParetoOptions — The settings of `pareto`, complete; a call gives `ParetoSettings`. [cutoff, collectRank, remainderName]
112
+ - ParetoResult — What `pareto` returns: the entries as they are drawn, their total and where the cutoff is crossed. [entries, total, cutoffIndex]
113
+ - ParetoSettings — What a call may specify: a collect rank only together with the name of the remainder it creates.
114
+ - Rect — A rectangle in CSS pixels, from its top left corner. [x, y, width, height]
115
+ - RemovedSpan — A removed span and the place it collapses onto. [from, to, workingTime]
116
+ - ResolvedTheme — A chart's colours and fonts, resolved from the `--uc-*` tokens where the chart stands. [colorAxis, colorGrid, colorText, colorBg, colorWarning, colorAlarm, colorOk, font, fontMono, sizeTick, series, forced]
117
+ - RuleName — Name of a rule, the way it is switched on and off in `violations`.
118
+ - RuleOptions — Which rules run, and with which run lengths. [outlier, run, trend, twoOfThree, runLength, trendLength]
119
+ - Scale — The mapping of an axis' values onto pixels and back, with its ticks.
120
+ - ScatterProps — The props of `Scatter`.
121
+ - ScatterSeriesConfig — A `Scatter` as the chart holds it once registered. [kind, radius, accessor, data, xAxisId, yAxisId, name, format, color, tone]
122
+ - SeriesBase — What every series registers, whatever its kind: where its values come from, which axes it stands on, and how it is named and coloured. [accessor, data, xAxisId, yAxisId, name, format, color, tone]
123
+ - SeriesConfig — Any registered series, told apart by `kind`.
124
+ - SeriesKind — The kinds of series a chart draws: `line`, `area`, `bar`, `box`, `scatter`, `state` and `matrix`.
125
+ - Severity — How seriously a violation weighs.
126
+ - Side — Whether a limit is an upper or a lower bound.
127
+ - StateBandProps — The props of `StateBand`.
128
+ - StateEntry — One state of the closed set a state series knows. [label, color]
129
+ - StateSeriesConfig — A `StateBand` as the chart holds it once registered: its accessor yields an index into `states`. [kind, states, lane, laneFrom, laneTo, accessor, data, xAxisId, yAxisId, name, format, color, tone]
130
+ - TooltipConfig — A `Tooltip` as the chart holds it once registered. [mode, limits, render]
131
+ - TooltipHit — What the pointer hit: the x value under it and one point per series there. [xValue, points, xPx, yPx]
132
+ - TooltipPoint — One hit per series in the tooltip. [seriesName, color, xValue, yValue, datum, index, baseline, level, segment, box]
133
+ - TooltipProps — The props of `Tooltip`.
134
+ - Value — A value read from the row (ADR-0048): the name of a number field, compared by its name, or a function, compared by its source text (`ValueFunction`).
135
+ - ValueFormat — A value format: a function, or Intl's options written in the chart's wording's locale.
136
+ - ValueFunction — A **value** computed from the row - the function form of `Value`.
137
+ - Verdict — What a value is.
138
+ - Violation — A rule and the indices it violates. [rule, indices]
139
+ - WorkingCalendar — A working calendar: sorted, merged intervals with the working time accumulated before each one begins. [intervals, offsets, total]
140
+ - WorkingInterval — An interval in which time counts; thought of as half-open, but mappable from both sides at its edges: both `from` and `to` have a working time. [from, to]
141
+ - WorkingTimeTick — A tick: where it stands on the clock and where it lies on the axis. [wallClock, workingTime]
142
+ - XAxisProps — The props of `XAxis`.
143
+ - YAxisProps — The props of `YAxis`.
144
+ - Zone — A zone line: k times sigma above and below the centre line. [k, upper, lower]
145
+ - ZoomLimits — The narrowest and the widest span zoom may reach, in the axis' units - the schedule's shape. [min, max]
146
+
147
+ ## @umriss-ui/charts/wording/de
148
+
149
+ - GERMAN_CHARTS_WORDING — The German instance, for a chart's `wording`.
150
+
151
+ ## Props
152
+
153
+ ### ChartsWordingProvider
154
+
155
+ #### props (ChartsWordingProviderProps)
156
+
157
+ - wording: Partial<ChartsWording> — Entries left out stay English.
158
+ - children?: ReactNode
159
+
160
+ ### ControlChart
161
+
162
+ #### props (ControlChartProps)
163
+
164
+ - value: Value<T> — The values of the chart - a number field of its `data`'s rows or a function of them.
165
+ - data: readonly T[] — Required: the limits arise out of these values, not out of what happens to be visible.
166
+ - origin: ControlLimitOrigin — Given, or from a named reference window - never tacitly from everything on the screen ([ADR-0008](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0008-control-limits-are-not-specification-limits.md)).
167
+ - xAxisId?: string — Binding to an x axis. (default: "x")
168
+ - yAxisId?: string — Binding to a y axis. (default: "y")
169
+ - name?: string — The name in legend and tooltip. (default: "Series n", after its place in the chart)
170
+ - format?: ValueFormat — The value as the tooltip writes it - on the line and on the violations., as a function or `NumberOptions`. (default: the y axis' `tickFormat`, else the built-in number format)
171
+ - color?: string — Any CSS colour value. (default: the palette's `--uc-series-N`)
172
+ - tone?: "ok" | "warning" | "alarm" — A role instead of a colour value for the line; the theme resolves it.
173
+ - rules?: Partial<RuleOptions> — Switchable one by one; run lengths are parameters.
174
+ - zoneLines?: boolean — The faint zone lines at one and two sigma. (default: true)
175
+ - labelUpper?: string — Label of the upper control limit in the axis band. (default: no label)
176
+ - labelLower?: string — The same for the lower control limit. (default: no label)
177
+ - violationName?: string — Name of the scatter of violations in the legend and the tooltip. (default: "Series n", after its place in the chart)
178
+ - onViolations?: (found: readonly Violation[]) => void — The violations as data - they can be listed beside the chart as well as marked on it.
179
+
180
+ ### Legend
181
+
182
+ #### props (LegendProps)
183
+
184
+ - placement?: "top" | "bottom" | "left" | "right" — Which side of the plot area the legend stands on. (default: "top")
185
+
186
+ ### LimitBand
187
+
188
+ #### props (LimitBandProps)
189
+
190
+ - from: number | Date — Lower edge of the band, in domain units of its axis; along a time axis an instant, in milliseconds or as a `Date`.
191
+ - to: number | Date — Upper edge, in domain units of its axis.
192
+ - axisId?: string — Axis on which the value lies. (default: the first axis of the orientation)
193
+ - orientation?: "x" | "y" — Whether the value lies on the x or on the y axis - a limit is nearly always a value and not a moment. (default: "y")
194
+ - severity?: Severity — Two severities, not five: five urgencies are five colours, and five colours on a dense screen are noise. (default: "warning")
195
+ - label?: string — What the value means.
196
+ - color?: string — Any CSS colour value, in place of the one the severity yields.
197
+ - inExtent?: boolean — Whether the value widens the axis extent, so that the limit is certainly visible. (default: true)
198
+ - role?: LimitRole — A chosen specification limit or a calculated control limit. (default: "specification")
199
+
200
+ ### LimitLine
201
+
202
+ #### props (LimitLineProps)
203
+
204
+ - value: number | Date — Where the line lies, in domain units of its axis; along a time axis an instant, in milliseconds or as a `Date`.
205
+ - axisId?: string — Axis on which the value lies. (default: the first axis of the orientation)
206
+ - orientation?: "x" | "y" — Whether the value lies on the x or on the y axis - a limit is nearly always a value and not a moment. (default: "y")
207
+ - severity?: Severity — Two severities, not five: five urgencies are five colours, and five colours on a dense screen are noise. (default: "alarm")
208
+ - label?: string — What the value means.
209
+ - color?: string — Any CSS colour value, in place of the one the severity yields.
210
+ - inExtent?: boolean — Whether the value widens the axis extent, so that the limit is certainly visible. (default: true)
211
+ - role?: LimitRole — A chosen specification limit or a calculated control limit. (default: "specification")
212
+
213
+ ### Tooltip
214
+
215
+ #### props (TooltipProps)
216
+
217
+ - mode?: "x" | "nearest" — "x": every series at the x position; "nearest": only the nearest point. (default: "x")
218
+ - limits?: boolean — Adds a row for every labelled `LimitLine` and `LimitBand` on the hit's y axis - its label and value in that axis' format - to the built-in tooltip, and the same to what a key reads out. (default: false)
219
+ - render?: (hit: TooltipHit<T>) => ReactNode — Render prop for content of one's own. (default: the built-in tooltip)
220
+
221
+ ## Options and returns
222
+
223
+ ### useChart
224
+
225
+ #### options (ChartOptions)
226
+
227
+ - initialView?: ChartView — The view to start from, read once when the hook first runs; a different value on a later render is ignored, as React ignores a changed `defaultValue`.
228
+ - onViewChange?: (view: ChartView) => void — Every change the reader makes, once, always the whole view - the one to keep, or to hand another chart's `setView`.
229
+ - onSelect?: (hit: TooltipHit<Z>) => void — The reader chose a point: a click on a hit (a tap too), or Enter on the Active point - the same hit the tooltip's `render` receives.
230
+ - onRange?: (range: ChartRange<V>) => void — The reader marked a stretch of an x axis: Alt with a drag where the chart zooms, a plain drag where it does not.
231
+
232
+ #### returns (ChartParts)
233
+
234
+ - Chart: (props: ChartProps) => ReactNode — The chart over the hook's rows.
235
+ - XAxis: <T = Z>(props: XAxisProps<T>) => null — An x axis reads the rows of every series bound to it: the hook's, or with `<XAxis<Row>>` those the series bring as their own `data`.
236
+ - YAxis: (props: YAxisProps) => null
237
+ - Line: <T = Z>(props: LineProps<T>) => null
238
+ - Area: <T = Z>(props: AreaProps<T>) => null
239
+ - Bar: <T = Z>(props: BarProps<T>) => null
240
+ - Scatter: <T = Z>(props: ScatterProps<T>) => null
241
+ - StateBand: <T = Z>(props: StateBandProps<T> & OneLane) => null
242
+ - Matrix: <T = Z>(props: MatrixProps<T>) => null
243
+ - BoxPlot: <T = Z>(props: BoxPlotProps<T>) => null
244
+ - view: ChartView — How the reader is looking at the chart.
245
+ - domains: AxisSpans — The span each zoomable x axis shows, by axis `id`; an axis absent shows its own `domain`.
246
+ - setView: (view: ChartView) => void — Goes to a whole view; what it leaves out is shown whole again.
247
+ - setDomain: (axisId: string, span: readonly [number, number] | null) => void — Puts a span in view on a zoomable x axis - a lone one is `"x"`; `null` shows the axis' own `domain` again.
248
+ - hidden: readonly string[] — The hidden series, by `name`.
249
+ - toggleSeries: (name: string) => void — Hides the series `name`, or shows it where it is hidden - as a click on its legend entry does.
250
+ - showOnly: (name: string) => void — Hides every series but `name`; all are shown where none carries it.
251
+ - showAllSeries: () => void — Shows every series again.
252
+ - toPng: () => Promise<Blob> — A PNG of the chart as it stands: the plot with its grid, series and limits, the axes with ticks, labels and titles, and the legend, on the chart's own ground in the colour scheme in use, at the chart's size on screen and at least twice its CSS pixels.
package/CHANGELOG.md CHANGED
@@ -30,6 +30,30 @@ interface was still expected to move before `0.3.0`.
30
30
 
31
31
  ---
32
32
 
33
+ ## 0.52.0 – Printed, announced and in rem: a chart prints cleanly and its text grows with the root size (Oct. 2026)
34
+
35
+ ### Added
36
+
37
+ - **Print styles**: a chart prints without tooltip and show-all button, and its legend keeps its colour chips.
38
+ - A series naming a field no row has warns once in development; `API.md` ships in the package.
39
+
40
+ ### Changed
41
+
42
+ - **Axis ticks and tooltip values under a thousandth** read in scientific notation.
43
+ - Migration: nothing to change; a test that read "0.0004" reads "4e-4".
44
+ - **The text size tokens (`--uc-size-*`) are in rem** and grow with the root size; the tooltip shadow comes from `--u-shadow-float`.
45
+ - Migration: an application that set a `--uc-size-*` token in px keeps it; one that read the computed size expects rem.
46
+ - **A chart with no data** shows "No data" without legend and tick labels.
47
+ - Migration: a test that looked for axis labels on an empty chart finds none.
48
+ - **The summary names where a series' extremes fall** on a category or time axis, and category labels that do not fit are shortened with an ellipsis before any is left out.
49
+ - Migration: a test that read the summary text adjusts.
50
+
51
+ ### Fixed
52
+
53
+ - A theme switch on an ancestor of a chart repaints it, not only one on the html element.
54
+ - Show all is no longer covered by the tooltip and leaves no empty tooltip stub; a legend above the plot comes before it in Tab order (browsers with reading-flow).
55
+ - A chart with `onRange` and no zoom lets the page pinch-zoom over the plot.
56
+
33
57
  ## 0.51.0 – A page is what its frame holds: a table fills its pane, the pager says the range (Oct. 2026)
34
58
 
35
59
  No change of its own; the number moves with the other packages (ADR-0066).
package/README.md CHANGED
@@ -68,6 +68,27 @@ an x axis that reads such rows names their type: `<XAxis<Row> value="t" />`.
68
68
  A y axis reads no value: its series place the rows along y. `Tooltip`, `Legend`, `DataTable`, `LimitLine` and `LimitBand` read no row and
69
69
  are imported as they are (ADR-0048).
70
70
 
71
+ **In a generic wrapper** the row type is a parameter, and TypeScript cannot tell which of its keys hold numbers.
72
+ Name the fields as the table's wrappers do, `Extract<keyof Z, string>`, and pass them on with `as never`,
73
+ which leaves the check of the field to the caller of the wrapper:
74
+
75
+ ```tsx
76
+ import { useChart } from "@umriss-ui/charts";
77
+
78
+ function Course<Z extends object>({ rows, field }: { rows: Z[]; field: Extract<keyof Z, string> }) {
79
+ const { Chart, XAxis, YAxis, Line } = useChart(rows);
80
+ return (
81
+ <Chart aria-label={field}>
82
+ <XAxis value={field as never} />
83
+ <YAxis />
84
+ <Line value={field as never} name={field} />
85
+ </Chart>
86
+ );
87
+ }
88
+ ```
89
+
90
+ A name that no row has is a gap in every row; in development the chart says so once, naming the field.
91
+
71
92
  The chart is a composite (ADR-0068): `ref`, `className`, `style`, `id` and `data-*` reach its root `<div>`; `aria-label` and `aria-labelledby` name the plot, and your `aria-describedby` is added after the plot's own summary.
72
93
 
73
94
  A series is an element, not an entry in a configuration object: the order in the
@@ -118,10 +139,14 @@ stylesheets by hand.
118
139
 
119
140
  **Colours** come from `--uc-*` variables that fall back to the tokens of
120
141
  `@umriss-ui/core` where they exist and to literals where they do not. The palette is `--u-chart-1` to
121
- `--u-chart-6`; core's README holds a brand file that sets them, light and dark. **Light and
142
+ `--u-chart-6`; core's README holds a brand file that sets them, light and dark. Where colour alone
143
+ does not tell the series apart (printouts, colour-blind readers), `encoding="marks"` on `Chart` gives
144
+ each series a dash and a marker shape, and a hatch on bars, states, cells and limit bands, by the same
145
+ palette place; the default stays `encoding="color"`, and `encoding="marks"` is the route for those readers. **Light and
122
146
  dark** follow the application's `color-scheme`: the canvas colours are resolved
123
- anew when the root element's attributes or the system preference change;
124
- `invalidateTheme()` covers a switch made on another ancestor. **Fonts** are not
147
+ anew when the attributes of the root element or of an ancestor of a chart (a `.dark` class, a
148
+ `color-scheme` on a container) or the system preference change; `invalidateTheme()` covers any other switch.
149
+ The text sizes (`--uc-size-tick`, `-title`, `-legend`, `-tooltip`) are in `rem` and grow with the root size. **Fonts** are not
125
150
  loaded: Geist when the application has it, the system fonts otherwise.
126
151
  **Browsers:** Chrome 123, Firefox 120, Safari 17.5 or newer.
127
152
 
@@ -150,7 +175,7 @@ loaded: Geist when the application has it, the system fonts otherwise.
150
175
  * **A chart follows the printed page**: when the page goes to print, the chart
151
176
  measures its plot as the print layout gives it and draws there, its axes
152
177
  included, and returns to its screen width afterwards. Proved in Chromium
153
- (`page.pdf()`); hiding controls and page breaks stay with your print
178
+ (`page.pdf()`); the tooltip and the show-all button do not print, and page breaks stay with your print
154
179
  stylesheet.
155
180
  * **The instruments**: `LimitLine` and `LimitBand`, `ControlChart` with its four
156
181
  rule violations, `pareto()` with a collected remainder, `bin()` for a
package/dist/charts.css CHANGED
@@ -1 +1 @@
1
- @layer umriss.tokens,umriss.base,umriss.components;@layer umriss.components{.uc-root,.uc-root:before,.uc-root:after{box-sizing:border-box}.uc-plot,.uc-plot:before,.uc-plot:after{box-sizing:border-box}.uc-sr,.uc-sr:before,.uc-sr:after{box-sizing:border-box}.uc-limit-label,.uc-limit-label:before,.uc-limit-label:after{box-sizing:border-box}.uc-layer-series,.uc-layer-series:before,.uc-layer-series:after{box-sizing:border-box}.uc-silhouette,.uc-silhouette:before,.uc-silhouette:after{box-sizing:border-box}.uc-silhouette-ground,.uc-silhouette-ground:before,.uc-silhouette-ground:after{box-sizing:border-box}.uc-silhouette-glint,.uc-silhouette-glint:before,.uc-silhouette-glint:after{box-sizing:border-box}.uc-silhouette-band,.uc-silhouette-band:before,.uc-silhouette-band:after{box-sizing:border-box}.uc-axes,.uc-axes:before,.uc-axes:after{box-sizing:border-box}.uc-axis,.uc-axis:before,.uc-axis:after{box-sizing:border-box}.uc-axis-line,.uc-axis-line:before,.uc-axis-line:after{box-sizing:border-box}.uc-axis-y,.uc-axis-y:before,.uc-axis-y:after{box-sizing:border-box}.uc-axis-left,.uc-axis-left:before,.uc-axis-left:after{box-sizing:border-box}.uc-axis-right,.uc-axis-right:before,.uc-axis-right:after{box-sizing:border-box}.uc-axis-x,.uc-axis-x:before,.uc-axis-x:after{box-sizing:border-box}.uc-axis-bottom,.uc-axis-bottom:before,.uc-axis-bottom:after{box-sizing:border-box}.uc-axis-top,.uc-axis-top:before,.uc-axis-top:after{box-sizing:border-box}.uc-tick,.uc-tick:before,.uc-tick:after{box-sizing:border-box}.uc-tick-mark,.uc-tick-mark:before,.uc-tick-mark:after{box-sizing:border-box}.uc-tick-label,.uc-tick-label:before,.uc-tick-label:after{box-sizing:border-box}.uc-axis-title,.uc-axis-title:before,.uc-axis-title:after{box-sizing:border-box}.uc-empty,.uc-empty:before,.uc-empty:after{box-sizing:border-box}.uc-legend,.uc-legend:before,.uc-legend:after{box-sizing:border-box}.uc-legend-top,.uc-legend-top:before,.uc-legend-top:after{box-sizing:border-box}.uc-legend-bottom,.uc-legend-bottom:before,.uc-legend-bottom:after{box-sizing:border-box}.uc-legend-item,.uc-legend-item:before,.uc-legend-item:after{box-sizing:border-box}.uc-data-key,.uc-data-key:before,.uc-data-key:after{box-sizing:border-box}.uc-legend-chip,.uc-legend-chip:before,.uc-legend-chip:after{box-sizing:border-box}.uc-legend-mark,.uc-legend-mark:before,.uc-legend-mark:after{box-sizing:border-box}.uc-legend-bar,.uc-legend-bar:before,.uc-legend-bar:after{box-sizing:border-box}.uc-legend-steps,.uc-legend-steps:before,.uc-legend-steps:after{box-sizing:border-box}.uc-legend-step,.uc-legend-step:before,.uc-legend-step:after{box-sizing:border-box}.uc-legend-values,.uc-legend-values:before,.uc-legend-values:after{box-sizing:border-box}.uc-legend-edge,.uc-legend-edge:before,.uc-legend-edge:after{box-sizing:border-box}.uc-show-all,.uc-show-all:before,.uc-show-all:after{box-sizing:border-box}.uc-show-all-bottom,.uc-show-all-bottom:before,.uc-show-all-bottom:after{box-sizing:border-box}.uc-data-panel,.uc-data-panel:before,.uc-data-panel:after{box-sizing:border-box}.uc-data-table,.uc-data-table:before,.uc-data-table:after{box-sizing:border-box}.uc-tooltip,.uc-tooltip:before,.uc-tooltip:after{box-sizing:border-box}.uc-tooltip-head,.uc-tooltip-head:before,.uc-tooltip-head:after{box-sizing:border-box}.uc-tooltip-list,.uc-tooltip-list:before,.uc-tooltip-list:after{box-sizing:border-box}.uc-tooltip-row,.uc-tooltip-row:before,.uc-tooltip-row:after{box-sizing:border-box}.uc-tooltip-chip,.uc-tooltip-chip:before,.uc-tooltip-chip:after{box-sizing:border-box}.uc-tooltip-name,.uc-tooltip-name:before,.uc-tooltip-name:after{box-sizing:border-box}.uc-tooltip-total,.uc-tooltip-total:before,.uc-tooltip-total:after{box-sizing:border-box}.uc-tooltip-part,.uc-tooltip-part:before,.uc-tooltip-part:after{box-sizing:border-box}.uc-tooltip-x,.uc-tooltip-x:before,.uc-tooltip-x:after{box-sizing:border-box}.uc-tooltip-value,.uc-tooltip-value:before,.uc-tooltip-value:after{box-sizing:border-box}.uc-measure,.uc-measure:before,.uc-measure:after{box-sizing:border-box}.uc-limit-mark,.uc-limit-mark:before,.uc-limit-mark:after{box-sizing:border-box}.uc-break,.uc-break:before,.uc-break:after{box-sizing:border-box}.uc-root{--uc-color-axis: var(--u-edge-color-strong, rgba(23, 23, 23, .17));--uc-color-grid: var(--u-hairline, rgba(23, 23, 23, .06));--uc-color-text: var(--u-color-text-muted, #71717a);--uc-color-bg: var(--u-color-surface, #ffffff);--uc-font: var( --u-font-sans, "Geist Sans", "Geist", -apple-system, "Segoe UI", system-ui, sans-serif );--uc-font-mono: var( --u-font-mono, "Geist Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace );--uc-color-warning: var(--u-color-warning, #8a5c00);--uc-color-alarm: var(--u-color-danger, #b13636);--uc-color-ok: var(--u-color-success, #217a4b);--uc-series-1: var(--u-chart-1, #2563eb);--uc-series-2: var(--u-chart-2, #db2777);--uc-series-3: var(--u-chart-3, #059669);--uc-series-4: var(--u-chart-4, #d97706);--uc-series-5: var(--u-chart-5, #7c3aed);--uc-series-6: var(--u-chart-6, #0891b2);--uc-size-tick: 11.5px;--uc-size-title: 12px;--uc-size-legend: 12.5px;--uc-size-tooltip: 12px;--uc-leading-label: 1.25;--uc-leading-text: 1.35;--uc-radius: 6px;--uc-radius-chip: 2px;--uc-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .08);--uc-focus-ring: var(--u-focus-ring, 0 0 0 2px #0e7d72);--uc-color-hover: var(--u-color-surface-sunken, #f4f4f5);--uc-color-pressed: var(--u-color-surface-pressed, #e9e9eb);--uc-transition-state: var(--u-transition, .12s cubic-bezier(.22, 1, .36, 1));--uc-transition: 80ms var(--u-ease-out, cubic-bezier(.22, 1, .36, 1));--uc-delay-stale: var(--u-delay-stale, .2s);--uc-silhouette: color-mix(in srgb, var(--u-color-text, #18181b) 10%, transparent);--uc-ease-swell: var(--u-ease-swell, ease-in-out);--uc-fade: var(--u-duration-medium, .24s) var(--u-ease-out, cubic-bezier(.22, 1, .36, 1));position:relative;display:flex;flex-direction:column;font-family:var(--uc-font);color:var(--uc-color-text);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}.uc-plot{position:relative;flex:1 1 auto;min-height:0;min-width:0}.uc-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.uc-plot:focus{outline:none}.uc-plot:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-plot>canvas{box-sizing:border-box}.uc-plot>canvas{position:absolute;inset:0;display:block;pointer-events:none}.uc-plot[data-stale]{pointer-events:none}.uc-plot[data-stale] .uc-limit-label,.uc-plot[data-stale]>.uc-layer-series{opacity:.5;transition:opacity var(--uc-transition-state) var(--uc-delay-stale)}.uc-silhouette{position:absolute;pointer-events:none;transition:opacity var(--uc-fade)}.uc-silhouette[data-leaving]{opacity:0}.uc-silhouette>svg{box-sizing:border-box}.uc-silhouette>svg{display:block}.uc-silhouette-ground{fill:var(--uc-silhouette)}.uc-silhouette-glint{stop-color:var(--uc-color-bg)}.uc-silhouette-band{animation:uc-silhouette-sweep var(--uc-ease-swell) infinite}@keyframes uc-silhouette-sweep{0%{transform:translate(0)}80%{transform:translate(var(--uc-travel))}to{transform:translate(var(--uc-travel))}}.uc-plot[data-arriving]>.uc-layer-series{animation:uc-silhouette-arrive var(--uc-fade)}@keyframes uc-silhouette-arrive{0%{opacity:0}}@media(forced-colors:active){.uc-silhouette-ground{fill:GrayText}.uc-silhouette-band{display:none}}.uc-axes{position:absolute;inset:0;pointer-events:none}.uc-axis{position:absolute}.uc-axis-line{position:absolute;background:var(--uc-color-axis)}.uc-axis-y>.uc-axis-line{top:0;width:1px;height:100%}.uc-axis-left>.uc-axis-line{right:0}.uc-axis-right>.uc-axis-line{left:0}.uc-axis-x>.uc-axis-line{left:0;width:100%;height:1px}.uc-axis-bottom>.uc-axis-line{top:0}.uc-axis-top>.uc-axis-line{bottom:0}.uc-tick{position:absolute}.uc-axis-y>.uc-tick{left:0;right:0;height:1px}.uc-axis-x>.uc-tick{top:0;bottom:0;width:1px}.uc-tick-mark{position:absolute;background:var(--uc-color-axis)}.uc-axis-y>.uc-tick>.uc-tick-mark{top:0;width:5px;height:1px}.uc-axis-left>.uc-tick>.uc-tick-mark{right:0}.uc-axis-right>.uc-tick>.uc-tick-mark{left:0}.uc-axis-x>.uc-tick>.uc-tick-mark{left:0;width:1px;height:5px}.uc-axis-bottom>.uc-tick>.uc-tick-mark{top:0}.uc-axis-top>.uc-tick>.uc-tick-mark{bottom:0}.uc-tick-label{position:absolute;white-space:pre;font-size:var(--uc-size-tick);line-height:var(--uc-leading-label);letter-spacing:.005em;color:var(--uc-color-text)}.uc-axis-y>.uc-tick>.uc-tick-label{top:50%;transform:translateY(-50%)}.uc-axis-left>.uc-tick>.uc-tick-label{text-align:right}.uc-axis-x>.uc-tick>.uc-tick-label{text-align:center}.uc-axis-right>.uc-tick>.uc-tick-label{text-align:left}.uc-axis-title{position:absolute;white-space:pre;font-size:var(--uc-size-title);line-height:var(--uc-leading-label);letter-spacing:.01em;color:var(--uc-color-text)}.uc-axis-x>.uc-axis-title{left:0;right:0;text-align:center}.uc-axis-bottom>.uc-axis-title{bottom:0}.uc-axis-top>.uc-axis-title{top:0}.uc-axis-y>.uc-axis-title{top:50%;writing-mode:vertical-rl}.uc-axis-left>.uc-axis-title{left:0;transform:translateY(-50%) rotate(180deg)}.uc-axis-right>.uc-axis-title{right:0;transform:translateY(-50%)}.uc-empty{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--uc-size-legend);color:var(--uc-color-text)}.uc-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--uc-size-legend);line-height:var(--uc-leading-text);color:var(--uc-color-text)}.uc-legend-top{order:-1;padding-bottom:8px}.uc-legend-bottom{order:1;padding-top:8px}.uc-root:has(>.uc-legend-left,>.uc-legend-right){flex-direction:row}.uc-legend-left,.uc-legend-right{box-sizing:border-box;flex:none;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;width:max-content;max-width:25%;min-height:0;overflow-y:auto}.uc-legend-left{order:-1;padding-right:12px}.uc-legend-right{order:1;padding-left:12px}:is(.uc-legend-left,.uc-legend-right)>.uc-legend-item{align-items:flex-start;max-width:100%;text-align:left}:is(.uc-legend-left,.uc-legend-right)>.uc-legend-item>:is(.uc-legend-chip,.uc-legend-mark){flex:none;margin-top:4px}:is(.uc-legend-left,.uc-legend-right)>.uc-data-key{margin-left:0}.uc-legend-item{display:inline-flex;align-items:center;gap:6px;cursor:default}.uc-legend-chip{display:inline-block;width:10px;height:10px;border-radius:var(--uc-radius-chip);corner-shape:squircle}.uc-legend-mark{display:block;flex:none;forced-color-adjust:none}.uc-legend-item[data-bar]{flex-direction:column;align-items:flex-start;gap:2px}.uc-legend-bar{display:block;max-width:100%}.uc-legend-steps{display:flex;height:10px;forced-color-adjust:none}.uc-legend-step{position:relative;flex:1 1 0;min-width:0}.uc-legend-step>.uc-legend-mark{position:absolute;inset:0}.uc-legend-values{position:relative;display:block;height:1.3em;font-size:var(--uc-size-tick);text-decoration:none}.uc-legend-edge{position:absolute;top:0;transform:translate(-50%);white-space:nowrap}.uc-legend-edge[data-end=start]{transform:none}.uc-legend-edge[data-end=end]{transform:translate(-100%)}.uc-legend-item[data-hidden]>.uc-legend-bar{opacity:.3}button.uc-legend-item{box-sizing:border-box}button.uc-legend-item{padding:0;border:0;border-radius:var(--uc-radius-chip);corner-shape:squircle;background:none;font:inherit;color:inherit;cursor:pointer;transition:background-color var(--uc-transition-state),box-shadow var(--uc-transition-state)}button.uc-legend-item:hover{box-sizing:border-box}button.uc-legend-item:hover{background:var(--uc-color-hover)}button.uc-legend-item:hover:not(:focus-visible){box-sizing:border-box}button.uc-legend-item:hover:not(:focus-visible){box-shadow:0 0 0 3px var(--uc-color-hover)}button.uc-legend-item:active{box-sizing:border-box}button.uc-legend-item:active{background:var(--uc-color-pressed)}button.uc-legend-item:active:not(:focus-visible){box-sizing:border-box}button.uc-legend-item:active:not(:focus-visible){box-shadow:0 0 0 3px var(--uc-color-pressed)}button.uc-legend-item:focus-visible{box-sizing:border-box}button.uc-legend-item:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-legend-item[data-hidden]{text-decoration:line-through}.uc-legend-item[data-hidden]>.uc-legend-chip{opacity:.3}.uc-show-all{position:absolute;top:0;left:0;z-index:1;translate:calc(-100% - 6px) 6px;padding:2px 8px;border:1px solid var(--uc-color-axis);border-radius:var(--uc-radius);corner-shape:squircle;background:var(--uc-color-bg);font:inherit;font-size:var(--uc-size-tick);line-height:var(--uc-leading-text);color:var(--uc-color-text);white-space:nowrap;cursor:pointer;transition:background-color var(--uc-transition-state),box-shadow var(--uc-transition-state)}.uc-show-all-bottom{translate:calc(-100% - 6px) calc(-100% - 6px)}.uc-show-all:hover{background:var(--uc-color-hover)}.uc-show-all:active{background:var(--uc-color-pressed)}.uc-show-all:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-data-key{margin-left:auto}.uc-data-panel{position:absolute;inset:0;z-index:3;overflow:auto;background:var(--uc-color-bg);font-size:var(--uc-size-tooltip);line-height:var(--uc-leading-text);color:var(--uc-color-text)}.uc-data-panel:focus{outline:none}.uc-data-panel:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-root:has(>.uc-data-panel)>.uc-plot,.uc-root:has(>.uc-data-panel)>.uc-show-all{visibility:hidden}.uc-data-table{width:100%;border-collapse:collapse}.uc-data-table+.uc-data-table{margin-top:12px}.uc-data-table>caption{box-sizing:border-box}.uc-data-table>caption{padding-bottom:6px;text-align:left}.uc-data-table th,.uc-data-table td{box-sizing:border-box}.uc-data-table th,.uc-data-table td{padding:3px 8px;border-bottom:1px solid var(--uc-color-grid);white-space:nowrap;font-weight:400;text-align:right}.uc-data-table>thead th{box-sizing:border-box}.uc-data-table>thead th{position:sticky;top:0;background:var(--uc-color-bg);border-bottom-color:var(--uc-color-axis)}.uc-data-table th:first-child{box-sizing:border-box}.uc-data-table th:first-child{text-align:left}.uc-data-table>tbody th{box-sizing:border-box}.uc-data-table>tbody td{box-sizing:border-box}.uc-data-table>tbody th,.uc-data-table>tbody td{font-family:var(--uc-font-mono)}.uc-tooltip{position:absolute;top:0;left:0;z-index:2;pointer-events:none;opacity:0;transition:opacity var(--uc-transition);min-width:96px;padding:7px 9px;border:1px solid var(--uc-color-axis);border-radius:var(--uc-radius);corner-shape:squircle;background:var(--uc-color-bg);box-shadow:var(--uc-shadow);font-size:var(--uc-size-tooltip);line-height:var(--uc-leading-text);color:var(--uc-color-text)}.uc-tooltip-head{font-family:var(--uc-font-mono);font-size:var(--uc-size-tick);letter-spacing:.01em;padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid var(--uc-color-grid)}.uc-tooltip-list{display:grid;grid-template-columns:auto 1fr auto;gap:3px 8px;align-items:center}.uc-tooltip-row{display:contents}.uc-tooltip-chip{width:8px;height:8px;border-radius:var(--uc-radius-chip);corner-shape:squircle}.uc-tooltip-name{white-space:nowrap}.uc-tooltip-total{grid-column:1 / 3}.uc-tooltip-part{grid-column:2}.uc-tooltip-x{margin-left:6px;font-family:var(--uc-font-mono)}.uc-tooltip-value{font-family:var(--uc-font-mono);text-align:right;white-space:nowrap}@media(pointer:coarse){.uc-legend{row-gap:10px}button.uc-legend-item,.uc-show-all{position:relative}.uc-show-all{position:absolute}button.uc-legend-item:after{box-sizing:border-box}button.uc-legend-item:after,.uc-show-all:after{content:"";position:absolute;inset:-4px 0}}@media(prefers-reduced-motion:reduce){.uc-tooltip,button.uc-legend-item,.uc-show-all{transition:none}.uc-silhouette-band{display:none}.uc-silhouette{transition:none}.uc-plot[data-arriving]>.uc-layer-series{animation:none}.uc-plot[data-stale] .uc-limit-label,.uc-plot[data-stale]>.uc-layer-series{transition-duration:0s}}.uc-measure{position:absolute;inset:0 auto auto 0;transform:none;visibility:hidden;pointer-events:none;white-space:pre;writing-mode:horizontal-tb}.uc-limit-label{position:absolute;font-size:var(--uc-size-tick);line-height:var(--uc-leading-label);white-space:nowrap;font-variant-numeric:tabular-nums;background:var(--uc-color-bg);padding:0 2px}.uc-limit-label[data-severity=warning]{color:var(--uc-color-warning)}.uc-limit-label[data-severity=alarm]{color:var(--uc-color-alarm)}.uc-limit-label[data-role=control],.uc-limit-label[data-role=zone],.uc-limit-label[data-own]{color:var(--uc-color-text)}.uc-limit-mark{display:inline-block;width:10px;margin-right:4px;vertical-align:middle;border-top:2px dashed currentColor}.uc-limit-label[data-role=control]>.uc-limit-mark{border-top-style:solid}.uc-limit-label[data-role=zone]>.uc-limit-mark{border-top-style:dotted}.uc-axis-y .uc-limit-label{transform:translateY(-50%)}.uc-axis-left .uc-limit-label{right:9px}.uc-axis-right .uc-limit-label{left:9px}.uc-break{position:absolute;top:0;width:7px;height:9px;margin-left:-3.5px;color:var(--uc-color-text)}.uc-break>i{box-sizing:border-box}.uc-break>i{position:absolute;top:0;width:1px;height:9px;background:currentColor;opacity:.55;transform:skew(-20deg)}.uc-break>i:first-child{box-sizing:border-box}.uc-break>i:first-child{left:1px}.uc-break>i:last-child{box-sizing:border-box}.uc-break>i:last-child{left:4px}}
1
+ @layer umriss.tokens,umriss.base,umriss.components;@layer umriss.components{.uc-root,.uc-root:before,.uc-root:after{box-sizing:border-box}.uc-plot,.uc-plot:before,.uc-plot:after{box-sizing:border-box}.uc-sr,.uc-sr:before,.uc-sr:after{box-sizing:border-box}.uc-limit-label,.uc-limit-label:before,.uc-limit-label:after{box-sizing:border-box}.uc-layer-series,.uc-layer-series:before,.uc-layer-series:after{box-sizing:border-box}.uc-silhouette,.uc-silhouette:before,.uc-silhouette:after{box-sizing:border-box}.uc-silhouette-ground,.uc-silhouette-ground:before,.uc-silhouette-ground:after{box-sizing:border-box}.uc-silhouette-glint,.uc-silhouette-glint:before,.uc-silhouette-glint:after{box-sizing:border-box}.uc-silhouette-band,.uc-silhouette-band:before,.uc-silhouette-band:after{box-sizing:border-box}.uc-axes,.uc-axes:before,.uc-axes:after{box-sizing:border-box}.uc-axis,.uc-axis:before,.uc-axis:after{box-sizing:border-box}.uc-axis-line,.uc-axis-line:before,.uc-axis-line:after{box-sizing:border-box}.uc-axis-y,.uc-axis-y:before,.uc-axis-y:after{box-sizing:border-box}.uc-axis-left,.uc-axis-left:before,.uc-axis-left:after{box-sizing:border-box}.uc-axis-right,.uc-axis-right:before,.uc-axis-right:after{box-sizing:border-box}.uc-axis-x,.uc-axis-x:before,.uc-axis-x:after{box-sizing:border-box}.uc-axis-bottom,.uc-axis-bottom:before,.uc-axis-bottom:after{box-sizing:border-box}.uc-axis-top,.uc-axis-top:before,.uc-axis-top:after{box-sizing:border-box}.uc-tick,.uc-tick:before,.uc-tick:after{box-sizing:border-box}.uc-tick-mark,.uc-tick-mark:before,.uc-tick-mark:after{box-sizing:border-box}.uc-tick-label,.uc-tick-label:before,.uc-tick-label:after{box-sizing:border-box}.uc-axis-title,.uc-axis-title:before,.uc-axis-title:after{box-sizing:border-box}.uc-empty,.uc-empty:before,.uc-empty:after{box-sizing:border-box}.uc-legend,.uc-legend:before,.uc-legend:after{box-sizing:border-box}.uc-legend-top,.uc-legend-top:before,.uc-legend-top:after{box-sizing:border-box}.uc-legend-bottom,.uc-legend-bottom:before,.uc-legend-bottom:after{box-sizing:border-box}.uc-legend-item,.uc-legend-item:before,.uc-legend-item:after{box-sizing:border-box}.uc-data-key,.uc-data-key:before,.uc-data-key:after{box-sizing:border-box}.uc-legend-chip,.uc-legend-chip:before,.uc-legend-chip:after{box-sizing:border-box}.uc-legend-mark,.uc-legend-mark:before,.uc-legend-mark:after{box-sizing:border-box}.uc-legend-bar,.uc-legend-bar:before,.uc-legend-bar:after{box-sizing:border-box}.uc-legend-steps,.uc-legend-steps:before,.uc-legend-steps:after{box-sizing:border-box}.uc-legend-step,.uc-legend-step:before,.uc-legend-step:after{box-sizing:border-box}.uc-legend-values,.uc-legend-values:before,.uc-legend-values:after{box-sizing:border-box}.uc-legend-edge,.uc-legend-edge:before,.uc-legend-edge:after{box-sizing:border-box}.uc-show-all,.uc-show-all:before,.uc-show-all:after{box-sizing:border-box}.uc-show-all-bottom,.uc-show-all-bottom:before,.uc-show-all-bottom:after{box-sizing:border-box}.uc-data-panel,.uc-data-panel:before,.uc-data-panel:after{box-sizing:border-box}.uc-data-table,.uc-data-table:before,.uc-data-table:after{box-sizing:border-box}.uc-tooltip,.uc-tooltip:before,.uc-tooltip:after{box-sizing:border-box}.uc-tooltip-head,.uc-tooltip-head:before,.uc-tooltip-head:after{box-sizing:border-box}.uc-tooltip-list,.uc-tooltip-list:before,.uc-tooltip-list:after{box-sizing:border-box}.uc-tooltip-row,.uc-tooltip-row:before,.uc-tooltip-row:after{box-sizing:border-box}.uc-tooltip-chip,.uc-tooltip-chip:before,.uc-tooltip-chip:after{box-sizing:border-box}.uc-tooltip-name,.uc-tooltip-name:before,.uc-tooltip-name:after{box-sizing:border-box}.uc-tooltip-total,.uc-tooltip-total:before,.uc-tooltip-total:after{box-sizing:border-box}.uc-tooltip-part,.uc-tooltip-part:before,.uc-tooltip-part:after{box-sizing:border-box}.uc-tooltip-x,.uc-tooltip-x:before,.uc-tooltip-x:after{box-sizing:border-box}.uc-tooltip-value,.uc-tooltip-value:before,.uc-tooltip-value:after{box-sizing:border-box}.uc-measure,.uc-measure:before,.uc-measure:after{box-sizing:border-box}.uc-limit-mark,.uc-limit-mark:before,.uc-limit-mark:after{box-sizing:border-box}.uc-break,.uc-break:before,.uc-break:after{box-sizing:border-box}.uc-root{--uc-color-axis: var(--u-edge-color-strong, rgba(23, 23, 23, .17));--uc-color-grid: var(--u-hairline, rgba(23, 23, 23, .06));--uc-color-text: var(--u-color-text-muted, #71717a);--uc-color-bg: var(--u-color-surface, #ffffff);--uc-font: var( --u-font-sans, "Geist Sans", "Geist", -apple-system, "Segoe UI", system-ui, sans-serif );--uc-font-mono: var( --u-font-mono, "Geist Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace );--uc-color-warning: var(--u-color-warning, #8a5c00);--uc-color-alarm: var(--u-color-danger, #b13636);--uc-color-ok: var(--u-color-success, #217a4b);--uc-series-1: var(--u-chart-1, #2563eb);--uc-series-2: var(--u-chart-2, #db2777);--uc-series-3: var(--u-chart-3, #059669);--uc-series-4: var(--u-chart-4, #d97706);--uc-series-5: var(--u-chart-5, #7c3aed);--uc-series-6: var(--u-chart-6, #0891b2);--uc-size-tick: .71875rem;--uc-size-title: .75rem;--uc-size-legend: .78125rem;--uc-size-tooltip: .75rem;--uc-leading-label: 1.25;--uc-leading-text: 1.35;--uc-radius: 6px;--uc-radius-chip: 2px;--uc-shadow: var(--u-shadow-float, 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .08));--uc-focus-ring: var(--u-focus-ring, 0 0 0 2px #0e7d72);--uc-color-hover: var(--u-color-surface-sunken, #f4f4f5);--uc-color-pressed: var(--u-color-surface-pressed, #e9e9eb);--uc-transition-state: var(--u-transition, .12s cubic-bezier(.22, 1, .36, 1));--uc-transition: 80ms var(--u-ease-out, cubic-bezier(.22, 1, .36, 1));--uc-delay-stale: var(--u-delay-stale, .2s);--uc-silhouette: color-mix(in srgb, var(--u-color-text, #18181b) 10%, transparent);--uc-ease-swell: var(--u-ease-swell, ease-in-out);--uc-fade: var(--u-duration-medium, .24s) var(--u-ease-out, cubic-bezier(.22, 1, .36, 1));position:relative;display:flex;flex-direction:column;reading-flow:flex-visual;font-family:var(--uc-font);color:var(--uc-color-text);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}.uc-plot{position:relative;flex:1 1 auto;min-height:0;min-width:0}.uc-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.uc-plot:focus{outline:none}.uc-plot:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-plot>canvas{box-sizing:border-box}.uc-plot>canvas{position:absolute;inset:0;display:block;pointer-events:none}.uc-plot[data-stale]{pointer-events:none}.uc-plot[data-stale] .uc-limit-label,.uc-plot[data-stale]>.uc-layer-series{opacity:.5;transition:opacity var(--uc-transition-state) var(--uc-delay-stale)}.uc-silhouette{position:absolute;pointer-events:none;transition:opacity var(--uc-fade)}.uc-silhouette[data-leaving]{opacity:0}.uc-silhouette>svg{box-sizing:border-box}.uc-silhouette>svg{display:block}.uc-silhouette-ground{fill:var(--uc-silhouette)}.uc-silhouette-glint{stop-color:var(--uc-color-bg)}.uc-silhouette-band{animation:uc-silhouette-sweep var(--uc-ease-swell) infinite}@keyframes uc-silhouette-sweep{0%{transform:translate(0)}80%{transform:translate(var(--uc-travel))}to{transform:translate(var(--uc-travel))}}.uc-plot[data-arriving]>.uc-layer-series{animation:uc-silhouette-arrive var(--uc-fade)}@keyframes uc-silhouette-arrive{0%{opacity:0}}@media(forced-colors:active){.uc-silhouette-ground{fill:GrayText}.uc-silhouette-band{display:none}}.uc-axes{position:absolute;inset:0;pointer-events:none}.uc-axis{position:absolute}.uc-axis-line{position:absolute;background:var(--uc-color-axis)}.uc-axis-y>.uc-axis-line{top:0;width:1px;height:100%}.uc-axis-left>.uc-axis-line{right:0}.uc-axis-right>.uc-axis-line{left:0}.uc-axis-x>.uc-axis-line{left:0;width:100%;height:1px}.uc-axis-bottom>.uc-axis-line{top:0}.uc-axis-top>.uc-axis-line{bottom:0}.uc-tick{position:absolute}.uc-axis-y>.uc-tick{left:0;right:0;height:1px}.uc-axis-x>.uc-tick{top:0;bottom:0;width:1px}.uc-tick-mark{position:absolute;background:var(--uc-color-axis)}.uc-axis-y>.uc-tick>.uc-tick-mark{top:0;width:5px;height:1px}.uc-axis-left>.uc-tick>.uc-tick-mark{right:0}.uc-axis-right>.uc-tick>.uc-tick-mark{left:0}.uc-axis-x>.uc-tick>.uc-tick-mark{left:0;width:1px;height:5px}.uc-axis-bottom>.uc-tick>.uc-tick-mark{top:0}.uc-axis-top>.uc-tick>.uc-tick-mark{bottom:0}.uc-tick-label{position:absolute;white-space:pre;font-size:var(--uc-size-tick);line-height:var(--uc-leading-label);letter-spacing:.005em;color:var(--uc-color-text)}.uc-axis-y>.uc-tick>.uc-tick-label{top:50%;transform:translateY(-50%)}.uc-axis-left>.uc-tick>.uc-tick-label{text-align:right}.uc-axis-x>.uc-tick>.uc-tick-label{text-align:center}.uc-axis-right>.uc-tick>.uc-tick-label{text-align:left}.uc-axis-title{position:absolute;white-space:pre;font-size:var(--uc-size-title);line-height:var(--uc-leading-label);letter-spacing:.01em;color:var(--uc-color-text)}.uc-axis-x>.uc-axis-title{left:0;right:0;text-align:center}.uc-axis-bottom>.uc-axis-title{bottom:0}.uc-axis-top>.uc-axis-title{top:0}.uc-axis-y>.uc-axis-title{top:50%;writing-mode:vertical-rl}.uc-axis-left>.uc-axis-title{left:0;transform:translateY(-50%) rotate(180deg)}.uc-axis-right>.uc-axis-title{right:0;transform:translateY(-50%)}.uc-empty{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--uc-size-legend);color:var(--uc-color-text)}.uc-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--uc-size-legend);line-height:var(--uc-leading-text);color:var(--uc-color-text)}.uc-legend-top{order:-1;padding-bottom:8px}.uc-legend-bottom{order:1;padding-top:8px}.uc-root:has(>.uc-legend-left,>.uc-legend-right){flex-direction:row}.uc-legend-left,.uc-legend-right{box-sizing:border-box;flex:none;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;width:max-content;max-width:25%;min-height:0;overflow-y:auto}.uc-legend-left{order:-1;padding-right:12px}.uc-legend-right{order:1;padding-left:12px}:is(.uc-legend-left,.uc-legend-right)>.uc-legend-item{align-items:flex-start;max-width:100%;text-align:left}:is(.uc-legend-left,.uc-legend-right)>.uc-legend-item>:is(.uc-legend-chip,.uc-legend-mark){flex:none;margin-top:4px}:is(.uc-legend-left,.uc-legend-right)>.uc-data-key{margin-left:0}.uc-legend-item{display:inline-flex;align-items:center;gap:6px;cursor:default}.uc-legend-chip{display:inline-block;width:10px;height:10px;border-radius:var(--uc-radius-chip);corner-shape:squircle}.uc-legend-mark{display:block;flex:none;forced-color-adjust:none}.uc-legend-item[data-bar]{flex-direction:column;align-items:flex-start;gap:2px}.uc-legend-bar{display:block;max-width:100%}.uc-legend-steps{display:flex;height:10px;forced-color-adjust:none}.uc-legend-step{position:relative;flex:1 1 0;min-width:0}.uc-legend-step>.uc-legend-mark{position:absolute;inset:0}.uc-legend-values{position:relative;display:block;height:1.3em;font-size:var(--uc-size-tick);text-decoration:none}.uc-legend-edge{position:absolute;top:0;transform:translate(-50%);white-space:nowrap}.uc-legend-edge[data-end=start]{transform:none}.uc-legend-edge[data-end=end]{transform:translate(-100%)}.uc-legend-item[data-hidden]>.uc-legend-bar{opacity:.3}button.uc-legend-item{box-sizing:border-box}button.uc-legend-item{padding:0;border:0;border-radius:var(--uc-radius-chip);corner-shape:squircle;background:none;font:inherit;color:inherit;cursor:pointer;transition:background-color var(--uc-transition-state),box-shadow var(--uc-transition-state)}button.uc-legend-item:hover{box-sizing:border-box}button.uc-legend-item:hover{background:var(--uc-color-hover)}button.uc-legend-item:hover:not(:focus-visible){box-sizing:border-box}button.uc-legend-item:hover:not(:focus-visible){box-shadow:0 0 0 3px var(--uc-color-hover)}button.uc-legend-item:active{box-sizing:border-box}button.uc-legend-item:active{background:var(--uc-color-pressed)}button.uc-legend-item:active:not(:focus-visible){box-sizing:border-box}button.uc-legend-item:active:not(:focus-visible){box-shadow:0 0 0 3px var(--uc-color-pressed)}button.uc-legend-item:focus-visible{box-sizing:border-box}button.uc-legend-item:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-legend-item[data-hidden]{text-decoration:line-through}.uc-legend-item[data-hidden]>.uc-legend-chip{opacity:.3}.uc-show-all{position:absolute;top:0;left:0;z-index:2;translate:calc(-100% - 6px) 6px;padding:2px 8px;border:1px solid var(--uc-color-axis);border-radius:var(--uc-radius);corner-shape:squircle;background:var(--uc-color-bg);font:inherit;font-size:var(--uc-size-tick);line-height:var(--uc-leading-text);color:var(--uc-color-text);white-space:nowrap;cursor:pointer;transition:background-color var(--uc-transition-state),box-shadow var(--uc-transition-state)}.uc-show-all-bottom{translate:calc(-100% - 6px) calc(-100% - 6px)}.uc-show-all:hover{background:var(--uc-color-hover)}.uc-show-all:active{background:var(--uc-color-pressed)}.uc-show-all:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-data-key{margin-left:auto}.uc-data-panel{position:absolute;inset:0;z-index:3;overflow:auto;background:var(--uc-color-bg);font-size:var(--uc-size-tooltip);line-height:var(--uc-leading-text);color:var(--uc-color-text)}.uc-data-panel:focus{outline:none}.uc-data-panel:focus-visible{outline:2px solid transparent;box-shadow:var(--uc-focus-ring)}.uc-root:has(>.uc-data-panel)>.uc-plot,.uc-root:has(>.uc-data-panel)>.uc-show-all{visibility:hidden}.uc-data-table{width:100%;border-collapse:collapse}.uc-data-table+.uc-data-table{margin-top:12px}.uc-data-table>caption{box-sizing:border-box}.uc-data-table>caption{padding-bottom:6px;text-align:left}.uc-data-table th,.uc-data-table td{box-sizing:border-box}.uc-data-table th,.uc-data-table td{padding:3px 8px;border-bottom:1px solid var(--uc-color-grid);white-space:nowrap;font-weight:400;text-align:right}.uc-data-table>thead th{box-sizing:border-box}.uc-data-table>thead th{position:sticky;top:0;background:var(--uc-color-bg);border-bottom-color:var(--uc-color-axis)}.uc-data-table th:first-child{box-sizing:border-box}.uc-data-table th:first-child{text-align:left}.uc-data-table>tbody th{box-sizing:border-box}.uc-data-table>tbody td{box-sizing:border-box}.uc-data-table>tbody th,.uc-data-table>tbody td{font-family:var(--uc-font-mono)}.uc-tooltip{position:absolute;top:0;left:0;z-index:2;pointer-events:none;opacity:0;transition:opacity var(--uc-transition);min-width:96px;padding:7px 9px;border:1px solid var(--uc-color-axis);border-radius:var(--uc-radius);corner-shape:squircle;background:var(--uc-color-bg);box-shadow:var(--uc-shadow);font-size:var(--uc-size-tooltip);line-height:var(--uc-leading-text);color:var(--uc-color-text)}.uc-tooltip:empty{visibility:hidden;transition:none}.uc-tooltip-head{font-family:var(--uc-font-mono);font-size:var(--uc-size-tick);letter-spacing:.01em;padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid var(--uc-color-grid)}.uc-tooltip-list{display:grid;grid-template-columns:auto 1fr auto;gap:3px 8px;align-items:center}.uc-tooltip-row{display:contents}.uc-tooltip-chip{width:8px;height:8px;border-radius:var(--uc-radius-chip);corner-shape:squircle}.uc-tooltip-name{white-space:nowrap}.uc-tooltip-total{grid-column:1 / 3}.uc-tooltip-part{grid-column:2}.uc-tooltip-x{margin-left:6px;font-family:var(--uc-font-mono)}.uc-tooltip-value{font-family:var(--uc-font-mono);text-align:right;white-space:nowrap}@media(pointer:coarse){.uc-legend{row-gap:10px}button.uc-legend-item,.uc-show-all{position:relative}.uc-show-all{position:absolute}button.uc-legend-item:after{box-sizing:border-box}button.uc-legend-item:after,.uc-show-all:after{content:"";position:absolute;inset:-4px 0}}@media(prefers-reduced-motion:reduce){.uc-tooltip,button.uc-legend-item,.uc-show-all{transition:none}.uc-silhouette-band{display:none}.uc-silhouette{transition:none}.uc-plot[data-arriving]>.uc-layer-series{animation:none}.uc-plot[data-stale] .uc-limit-label,.uc-plot[data-stale]>.uc-layer-series{transition-duration:0s}}.uc-measure{position:absolute;inset:0 auto auto 0;transform:none;visibility:hidden;pointer-events:none;white-space:pre;writing-mode:horizontal-tb}.uc-limit-label{position:absolute;font-size:var(--uc-size-tick);line-height:var(--uc-leading-label);white-space:nowrap;font-variant-numeric:tabular-nums;background:var(--uc-color-bg);padding:0 2px}.uc-limit-label[data-severity=warning]{color:var(--uc-color-warning)}.uc-limit-label[data-severity=alarm]{color:var(--uc-color-alarm)}.uc-limit-label[data-role=control],.uc-limit-label[data-role=zone],.uc-limit-label[data-own]{color:var(--uc-color-text)}.uc-limit-mark{display:inline-block;width:10px;margin-right:4px;vertical-align:middle;border-top:2px dashed currentColor}.uc-limit-label[data-role=control]>.uc-limit-mark{border-top-style:solid}.uc-limit-label[data-role=zone]>.uc-limit-mark{border-top-style:dotted}.uc-axis-y .uc-limit-label{transform:translateY(-50%)}.uc-axis-left .uc-limit-label{right:9px}.uc-axis-right .uc-limit-label{left:9px}.uc-break{position:absolute;top:0;width:7px;height:9px;margin-left:-3.5px;color:var(--uc-color-text)}.uc-break>i{box-sizing:border-box}.uc-break>i{position:absolute;top:0;width:1px;height:9px;background:currentColor;opacity:.55;transform:skew(-20deg)}.uc-break>i:first-child{box-sizing:border-box}.uc-break>i:first-child{left:1px}.uc-break>i:last-child{box-sizing:border-box}.uc-break>i:last-child{left:4px}@media print{.uc-show-all,.uc-tooltip{display:none}.uc-legend-chip,.uc-legend-step{print-color-adjust:exact}.uc-root{break-inside:avoid}}}