@umriss-ui/charts 0.55.1 → 0.57.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/dist/de.d.ts CHANGED
@@ -52,7 +52,7 @@ declare interface ChartsWording {
52
52
  shown instead. */
53
53
  allShown: string;
54
54
  /** The control over a zoomed plot that brings every zoomed axis back to
55
- its own domain (component-view 04). */
55
+ its own domain. */
56
56
  showAll: string;
57
57
  /** The data table's disclosure key, closed and open. */
58
58
  showData: string;
@@ -64,14 +64,14 @@ declare interface ChartsWording {
64
64
  /** The table's caption: the visible stretch it lists, both ends formatted. */
65
65
  tableCaption: (from: string, to: string) => string;
66
66
  /** A box's numbers, top to bottom as drawn: the tooltip's rows, the
67
- readout's parts and the data table's columns (box-plot B9). */
67
+ readout's parts and the data table's columns. */
68
68
  upperWhisker: string;
69
69
  upperQuartile: string;
70
70
  median: string;
71
71
  lowerQuartile: string;
72
72
  lowerWhisker: string;
73
73
  /** A box's outliers: the row's name, and the row's value - their count and
74
- the first few values, the rest counted (box-plot B9). */
74
+ the first few values, the rest counted. */
75
75
  outliers: string;
76
76
  /** A box's optional readings: its mean, its notch's two bounds as one row,
77
77
  and how many values stand behind it. */
package/dist/index.d.ts CHANGED
@@ -42,10 +42,12 @@ export declare interface AreaProps<T> {
42
42
  `tickFormat`. The total stays the readings' own sum, written in the
43
43
  series' `format`. */
44
44
  normalize?: boolean;
45
- /** Opacity of the fill, from 0 to 1; the outline stays fully opaque. */
45
+ /** Opacity of the fill, from 0 to 1; the outline stays fully opaque.
46
+ @default 0.18 */
46
47
  fillOpacity?: number;
47
48
  /** Width of the outline along the upper edge in CSS pixels; 0 leaves it
48
- out. */
49
+ out.
50
+ @default 1.5 */
49
51
  strokeWidth?: number;
50
52
  /** Dash pattern of the outline as a run of lengths in CSS pixels. The fill
51
53
  stays whole.
@@ -221,8 +223,9 @@ export declare interface BarProps<T> {
221
223
  `tickFormat`. The total stays the readings' own sum, written in the
222
224
  series' `format`. */
223
225
  normalize?: boolean;
224
- /** Width as a fraction of the step; just under 1, so that neighbours do not
225
- touch. Several bar series share this fraction. */
226
+ /** Width as a fraction of the step; the rest is the gap between neighbours.
227
+ Several bar series share this fraction.
228
+ @default 0.8 */
226
229
  barWidth?: number;
227
230
  }
228
231
 
@@ -355,7 +358,8 @@ export declare interface BoxPlotProps<T> {
355
358
  judgement, not the library's. */
356
359
  tone?: "ok" | "warning" | "alarm";
357
360
  /** Width as a fraction of the step, as a bar's: boxes and bars on one x axis
358
- share this fraction and stand side by side. */
361
+ share this fraction and stand side by side.
362
+ @default 0.8 */
359
363
  boxWidth?: number;
360
364
  }
361
365
 
@@ -497,7 +501,8 @@ export declare interface ChartProps extends Omit<HTMLAttributes<HTMLDivElement>,
497
501
  (ADR-0050).
498
502
  @default fills the frame, at least 300 px */
499
503
  height?: number;
500
- /** Outer spacing of the plot area in CSS pixels. */
504
+ /** Outer spacing of the plot area in CSS pixels.
505
+ @default 8 */
501
506
  padding?: number | Partial<Padding>;
502
507
  /** Goes to the root element, as it does everywhere in this workspace. */
503
508
  className?: string;
@@ -619,7 +624,7 @@ export declare interface ChartsWording {
619
624
  shown instead. */
620
625
  allShown: string;
621
626
  /** The control over a zoomed plot that brings every zoomed axis back to
622
- its own domain (component-view 04). */
627
+ its own domain. */
623
628
  showAll: string;
624
629
  /** The data table's disclosure key, closed and open. */
625
630
  showData: string;
@@ -631,14 +636,14 @@ export declare interface ChartsWording {
631
636
  /** The table's caption: the visible stretch it lists, both ends formatted. */
632
637
  tableCaption: (from: string, to: string) => string;
633
638
  /** A box's numbers, top to bottom as drawn: the tooltip's rows, the
634
- readout's parts and the data table's columns (box-plot B9). */
639
+ readout's parts and the data table's columns. */
635
640
  upperWhisker: string;
636
641
  upperQuartile: string;
637
642
  median: string;
638
643
  lowerQuartile: string;
639
644
  lowerWhisker: string;
640
645
  /** A box's outliers: the row's name, and the row's value - their count and
641
- the first few values, the rest counted (box-plot B9). */
646
+ the first few values, the rest counted. */
642
647
  outliers: string;
643
648
  /** A box's optional readings: its mean, its notch's two bounds as one row,
644
649
  and how many values stand behind it. */
@@ -677,8 +682,6 @@ export declare interface ChartView {
677
682
  }
678
683
 
679
684
  declare interface CommonProps {
680
- /** Axis id, through which series bind themselves. */
681
- id?: string;
682
685
  /** Axis title. */
683
686
  label?: string;
684
687
  /** Target value; the 1-2-5 algorithm may deviate. */
@@ -1021,14 +1024,16 @@ export declare interface LineProps<T> {
1021
1024
  color?: string;
1022
1025
  /** A role instead of a colour value; the theme resolves it. */
1023
1026
  tone?: "ok" | "warning" | "alarm";
1024
- /** Line width in CSS pixels. */
1027
+ /** Line width in CSS pixels.
1028
+ @default 1.5 */
1025
1029
  strokeWidth?: number;
1026
1030
  /** Dash pattern as a run of lengths in CSS pixels.
1027
1031
  @default a solid line */
1028
1032
  dash?: readonly number[];
1029
1033
  /** When the individual points are drawn as marks: `auto` every point up to
1030
1034
  60 points and above that only a point between two gaps - it has no line
1031
- to be seen by - `always`, or `never`, not even that one. */
1035
+ to be seen by - `always`, or `never`, not even that one.
1036
+ @default "auto" */
1032
1037
  markers?: "auto" | "always" | "never";
1033
1038
  /** Sample-and-hold: each value holds as a horizontal until the next sample
1034
1039
  and jumps there - a target, a digital signal. A gap ends the hold at
@@ -1390,7 +1395,8 @@ export declare interface ScatterProps<T> {
1390
1395
  color?: string;
1391
1396
  /** A role instead of a colour value; the theme resolves it. */
1392
1397
  tone?: "ok" | "warning" | "alarm";
1393
- /** Point radius in CSS pixels. */
1398
+ /** Point radius in CSS pixels.
1399
+ @default 3 */
1394
1400
  radius?: number;
1395
1401
  }
1396
1402
 
@@ -1725,6 +1731,9 @@ export declare function workingTimeTicks(input: CalendarInput, from: number, to:
1725
1731
 
1726
1732
  /** The props of `XAxis`. */
1727
1733
  export declare interface XAxisProps<T> extends CommonProps {
1734
+ /** Axis id, through which series bind themselves.
1735
+ @default "x" */
1736
+ id?: string;
1728
1737
  /** Where a row lies on this axis: a field of the row, compared by its
1729
1738
  name, or a function of it, compared by its source text as a series' is
1730
1739
  (`ValueFunction`) - with the same closure limit. A number is a position,
@@ -1741,10 +1750,12 @@ export declare interface XAxisProps<T> extends CommonProps {
1741
1750
  longer -, `"data"` keeps it, a pair is fixed: numbers, on a time axis
1742
1751
  milliseconds or two `Date`s, on a category axis places. On a `zoomable`
1743
1752
  axis it is the start: what the axis shows while the chart's view names
1744
- no span for it. */
1753
+ no span for it.
1754
+ @default "nice" */
1745
1755
  domain?: "nice" | "data" | readonly [number, number] | readonly [Date, Date];
1746
1756
  /** Which edge the axis stands at. A second x axis on the opposite edge is how
1747
- a series counts in a unit of its own. */
1757
+ a series counts in a unit of its own.
1758
+ @default "bottom" */
1748
1759
  position?: "bottom" | "top";
1749
1760
  /** The values are instants: milliseconds since the epoch, or with `time`
1750
1761
  said ISO 8601 strings as an API sends them, read by the platform's rule -
@@ -1783,10 +1794,14 @@ export declare interface XAxisProps<T> extends CommonProps {
1783
1794
  its rows from a string or a `StateBand` names its `lane`; the first stands
1784
1795
  at the top (ADR-0052). */
1785
1796
  export declare interface YAxisProps extends CommonProps {
1797
+ /** Axis id, through which series bind themselves.
1798
+ @default "y" */
1799
+ id?: string;
1786
1800
  /** As on the x axis, and `"visible"`: what the series show inside their x
1787
1801
  axis' domain - a zoomed hour gets the hour's range, not the week's -,
1788
1802
  widened to ticks as `"nice"` is. Where the x domain is not fixed that is
1789
- every point. */
1803
+ every point.
1804
+ @default "nice" */
1790
1805
  domain?: "nice" | "data" | "visible" | readonly [number, number];
1791
1806
  /** On a further y axis: take the first y axis' tick count and widen this
1792
1807
  axis' domain until its ticks fall on that one's grid lines, the steps
@@ -1794,7 +1809,8 @@ export declare interface YAxisProps extends CommonProps {
1794
1809
  the first y axis it changes nothing. */
1795
1810
  alignTicks?: boolean;
1796
1811
  /** Which edge the axis stands at. Several y axes per side are stacked
1797
- outwards, so that extents of clearly different magnitude stay readable. */
1812
+ outwards, so that extents of clearly different magnitude stay readable.
1813
+ @default "left" */
1798
1814
  position?: "left" | "right";
1799
1815
  }
1800
1816
 
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/charts 0.55.1
1
+ # @umriss-ui/charts 0.57.0
2
2
 
3
3
  > React canvas chart library for data-dense dashboards - line, area, bar, box plot, scatter, control and Pareto charts. Few chart kinds, drawn well, fast.
4
4
 
@@ -1306,7 +1306,7 @@ Under forced colours the chart draws in the system colours and tells its series
1306
1306
  | `ref` | `Ref<HTMLDivElement>` | — | The root element, the `<div>` that `className`, `style`, `id` and the `data-*` attributes reach. |
1307
1307
  | `width` | `number \| "100%"` | `"100%"` | Width in CSS pixels, or `"100%"` for the host's: the chart measures its host and follows it through a ResizeObserver.<br>Shown in: [Size a chart by its container (Installation)](#installation), [A legend beside the plot (Legend)](#legend) |
1308
1308
  | `height` | `number` | fills the frame, at least 300 px | Height in CSS pixels, fixed. Left out, the chart fills its frame - a stretched grid cell, a card the grid stretches, a container of definite height - and never goes below 300 px, which is also its height in a frame without one. A different floor goes through `style`'s `minHeight` ([ADR-0050](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0050-a-chart-fills-its-frame-never-below-its-floor.md)).<br>Shown in: [Mix series kinds](#chart-1), [Say there is nothing to show](#chart-1), [Read it by keyboard and screen reader](#chart-1) and 94 more |
1309
- | `padding` | `number \| Partial<``Padding``>` | — | Outer spacing of the plot area in CSS pixels.<br>Shown in: [Fix the domain and name the ticks (Axis)](#axis) |
1309
+ | `padding` | `number \| Partial<``Padding``>` | `8` | Outer spacing of the plot area in CSS pixels.<br>Shown in: [Fix the domain and name the ticks (Axis)](#axis) |
1310
1310
  | `empty` | `ReactNode` | the wording's `empty` | Shown in the middle of the plot area when no visible series has a point to show - no data, only gaps, or every series hidden. Axes and frame stay. Not while `loading`.<br>Shown in: [Say there is nothing to show](#chart-1) |
1311
1311
  | `loading` | `boolean` | `false` | The rows are on their way, as the table's `loading` says ([ADR-0042](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0042-a-rows-height-never-follows-what-it-shows.md)). A course already drawn stays: it dims after a moment and takes no pointer until the answer is in. Where there is nothing to show, the empty message waits. The plot is `aria-busy` meanwhile.<br>Shown in: [Show that rows are on their way](#chart-1) |
1312
1312
  | `wording` | `Partial<``ChartsWording``>` | `DEFAULT_CHARTS_WORDING` | The chart's words ([ADR-0031](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0031-the-charts-carry-their-own-wording.md)); entries left out fall back to English. Its `locale` also formats every number and every date or time label the chart makes itself (`en-GB`, `de-DE`; the browser's language is not read) - a `tickFormat` or `format` of your own stays in charge of its axis or series. German: `GERMAN_CHARTS_WORDING` from `@umriss-ui/charts/wording/de`.<br>Shown in: [Read it by keyboard and screen reader](#chart-1) |
@@ -1367,18 +1367,18 @@ Everything the charts put out as text.
1367
1367
  | `zoomHelp` *required* | `string` | — | The keys that zoom and pan it - only where the chart can be zoomed. |
1368
1368
  | `legendHelp` *required* | `string` | — | The keys of the legend's entries - only where it has one to press. |
1369
1369
  | `allShown` *required* | `string` | — | Read out where hiding would leave nothing to see, and every series is shown instead. |
1370
- | `showAll` *required* | `string` | — | The control over a zoomed plot that brings every zoomed axis back to its own domain (component-view 04). |
1370
+ | `showAll` *required* | `string` | — | The control over a zoomed plot that brings every zoomed axis back to its own domain. |
1371
1371
  | `showData` *required* | `string` | — | The data table's disclosure key, closed and open. |
1372
1372
  | `hideData` *required* | `string` | — | |
1373
1373
  | `positionColumn` *required* | `string` | — | The heading of the table's x column where its axis has no `label`, and of a matrix' row column where its y axis has none. |
1374
1374
  | `rowColumn` *required* | `string` | — | |
1375
1375
  | `tableCaption` *required* | `(from: string, to: string) => string` | — | The table's caption: the visible stretch it lists, both ends formatted. |
1376
- | `upperWhisker` *required* | `string` | — | A box's numbers, top to bottom as drawn: the tooltip's rows, the readout's parts and the data table's columns (box-plot B9). |
1376
+ | `upperWhisker` *required* | `string` | — | A box's numbers, top to bottom as drawn: the tooltip's rows, the readout's parts and the data table's columns. |
1377
1377
  | `upperQuartile` *required* | `string` | — | |
1378
1378
  | `median` *required* | `string` | — | |
1379
1379
  | `lowerQuartile` *required* | `string` | — | |
1380
1380
  | `lowerWhisker` *required* | `string` | — | |
1381
- | `outliers` *required* | `string` | — | A box's outliers: the row's name, and the row's value - their count and the first few values, the rest counted (box-plot B9). |
1381
+ | `outliers` *required* | `string` | — | A box's outliers: the row's name, and the row's value - their count and the first few values, the rest counted. |
1382
1382
  | `mean` *required* | `string` | — | A box's optional readings: its mean, its notch's two bounds as one row, and how many values stand behind it. |
1383
1383
  | `notch` *required* | `string` | — | |
1384
1384
  | `count` *required* | `string` | — | |
@@ -1399,9 +1399,9 @@ Measurements of the instrumentation for the benchmark page.
1399
1399
  #### Known limits
1400
1400
 
1401
1401
  - No error state of its own: where the rows could not be loaded, show an `Alert` from @umriss-ui/core. Waiting for them is `loading`.
1402
- - No pie, donut, radar or candlestick, no smoothing, animation or export, no WebGL ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md)). The share of a whole is bars on a percent axis: the Pareto page, "Shares, not counts".
1402
+ - No pie, donut, radar or candlestick, no smoothing, animation or export, no WebGL ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md)). The share of a whole is bars on a percent axis: the Pareto page, "Shares, not counts".
1403
1403
 
1404
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
1404
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
1405
1405
 
1406
1406
  ### Axis
1407
1407
 
@@ -2167,7 +2167,7 @@ export default function SmallMultiples() {
2167
2167
 
2168
2168
  ##### Values over decades
2169
2169
 
2170
- The chart's scales are straight: a log scale would break the affine mapping its axes rely on ([ADR-0001](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0001-affine-scale-contract.md), [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md)). So the value is `Math.log10` of the reading, `ticks` stand at 1 to 9 times every power of ten, `tickFormat` labels only the whole powers, and the series' `format` writes `10 ** v`, so that the tooltip shows the reading and not its logarithm.
2170
+ The chart's scales are straight: a log scale would break the affine mapping its axes rely on ([ADR-0001](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0001-affine-scale-contract.md), [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md)). So the value is `Math.log10` of the reading, `ticks` stand at 1 to 9 times every power of ten, `tickFormat` labels only the whole powers, and the series' `format` writes `10 ** v`, so that the tooltip shows the reading and not its logarithm.
2171
2171
 
2172
2172
  ```tsx
2173
2173
  import { Tooltip, useChart } from "@umriss-ui/charts";
@@ -2315,6 +2315,7 @@ The keys of [Chart](#chart-1) apply here.
2315
2315
 
2316
2316
  | Prop | Type | Default | Description |
2317
2317
  |---|---|---|---|
2318
+ | `id` | `string` | `"x"` | Axis id, through which series bind themselves.<br>Shown in: [Add axes for other magnitudes](#axis), [Bind every kind of series to a second axis](#axis) |
2318
2319
  | `value` *required* | `AxisField``<T> \| ((d: T, index: number) => ``AxisValue``)` | — | Where a row lies on this axis: a field of the row, compared by its name, or a function of it, compared by its source text as a series' is (`ValueFunction`) - with the same closure limit. A number is a position, a `Date` an instant, a string a category: every distinct one gets a place of its own, in the order the rows bring them, a tick and its name as the label ([ADR-0052](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0052-a-chart-reads-its-rows-as-they-come.md)). The type decides, never the content - `"2024"` is a category, `2024` a number - and a row without a value has no place. The axis reads the rows of every series bound to it; where those bring their own `data`, name their row: `<XAxis<HourCount> value="hour" />`.<br>Shown in: [Fix the domain and name the ticks](#axis), [Add axes for other magnitudes](#axis), [Leave out the hours nobody works](#axis) and 94 more |
2319
2320
  | `domain` | `"nice" \| "data" \| readonly [number, number] \| readonly [Date, Date]` | `"nice"` | `"nice"` widens the data's extent to ticks - to named `ticks` where there are any, on a time axis to whole units of a step of hours or longer -, `"data"` keeps it, a pair is fixed: numbers, on a time axis milliseconds or two `Date`s, on a category axis places. On a `zoomable` axis it is the start: what the axis shows while the chart's view names no span for it.<br>Shown in: [Bind every kind of series to a second axis](#axis), [Read it by keyboard and screen reader (Chart)](#chart-1), [Gestures and keys (Zoom and pan)](#zoom-and-pan) and 12 more |
2320
2321
  | `position` | `"bottom" \| "top"` | `"bottom"` | Which edge the axis stands at. A second x axis on the opposite edge is how a series counts in a unit of its own.<br>Shown in: [Add axes for other magnitudes](#axis), [Bind every kind of series to a second axis](#axis) |
@@ -2322,7 +2323,6 @@ The keys of [Chart](#chart-1) apply here.
2322
2323
  | `calendar` | `readonly ``WorkingInterval``[]` | — | Working calendar: the intervals in which time counts. With it the axis stands in working time - nights and weekends are out, and every removed span gets a break mark. The scale stays affine; the mapping happens in materialisation ([ADR-0001](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0001-affine-scale-contract.md)).<br>Shown in: [Leave out the hours nobody works](#axis), [Hand over a picture (Chart)](#chart-1) |
2323
2324
  | `zoomable` | `boolean` | `false` | Zoom and pan: Ctrl or ⌘ with the wheel - and a pinch - zoom around the pointer, a drag, a horizontal wheel or Shift with the wheel pan, a double click goes back to `domain`; with the focus on the chart, + and − zoom, Shift with ← or → pans and 0 goes back. The span shown is part of the chart's view, by this axis' `id` (`useChart`'s `initialView`, `onViewChange`, `setView`, `setDomain`). The plain wheel always scrolls the page.<br>Shown in: [Read it by keyboard and screen reader (Chart)](#chart-1), [Gestures and keys (Zoom and pan)](#zoom-and-pan), [Limit the zoom (Zoom and pan)](#zoom-and-pan) and 8 more |
2324
2325
  | `zoomLimits` | `ZoomLimits` | at most the data's extent or this axis' own `domain`, whichever is wider, at least three data steps | The narrowest and the widest span zoom may reach, in the axis' units - milliseconds on a time axis.<br>Shown in: [Limit the zoom (Zoom and pan)](#zoom-and-pan) |
2325
- | `id` | `string` | `"x"` | Axis id, through which series bind themselves.<br>Shown in: [Add axes for other magnitudes](#axis), [Align a second axis to the grid](#axis), [Bind every kind of series to a second axis](#axis) and 8 more |
2326
2326
  | `label` | `string` | — | Axis title.<br>Shown in: [Fix the domain and name the ticks](#axis), [Add axes for other magnitudes](#axis), [Leave out the hours nobody works](#axis) and 86 more |
2327
2327
  | `tickCount` | `number` | — | Target value; the 1-2-5 algorithm may deviate.<br>Shown in: [Fix the domain and name the ticks](#axis), [Leave out the hours nobody works](#axis), [Name the time zone of the instants](#axis) and 11 more |
2328
2328
  | `tickFormat` | `ValueFormat` | — | Label of a tick. Compared by its source text: one that reads a changed closure variable under the same text does not relabel the axis - give it a new text or remount. A bound `Intl.NumberFormat#format` is compared by identity. Or `NumberOptions`: Intl's options in the wording's locale, compared by value; the step's places stay unless the options set digits.<br>Shown in: [Fix the domain and name the ticks](#axis), [Leave out the hours nobody works](#axis), [Bind every kind of series to a second axis](#axis) and 24 more |
@@ -2335,10 +2335,10 @@ The keys of [Chart](#chart-1) apply here.
2335
2335
 
2336
2336
  | Prop | Type | Default | Description |
2337
2337
  |---|---|---|---|
2338
+ | `id` | `string` | `"y"` | Axis id, through which series bind themselves.<br>Shown in: [Add axes for other magnitudes](#axis), [Align a second axis to the grid](#axis), [Bind every kind of series to a second axis](#axis) and 8 more |
2338
2339
  | `domain` | `"nice" \| "data" \| "visible" \| readonly [number, number]` | `"nice"` | As on the x axis, and `"visible"`: what the series show inside their x axis' domain - a zoomed hour gets the hour's range, not the week's -, widened to ticks as `"nice"` is. Where the x domain is not fixed that is every point.<br>Shown in: [Fix the domain and name the ticks](#axis), [Bind every kind of series to a second axis](#axis), [Small multiples on one y domain](#axis) and 15 more |
2339
2340
  | `alignTicks` | `boolean` | — | On a further y axis: take the first y axis' tick count and widen this axis' domain until its ticks fall on that one's grid lines, the steps still 1-2-5 - one grid serves both. `tickCount` then does not apply; on the first y axis it changes nothing.<br>Shown in: [Align a second axis to the grid](#axis) |
2340
2341
  | `position` | `"left" \| "right"` | `"left"` | Which edge the axis stands at. Several y axes per side are stacked outwards, so that extents of clearly different magnitude stay readable.<br>Shown in: [Add axes for other magnitudes](#axis), [Align a second axis to the grid](#axis), [Bind every kind of series to a second axis](#axis) and 8 more |
2341
- | `id` | `string` | `"y"` | Axis id, through which series bind themselves.<br>Shown in: [Add axes for other magnitudes](#axis), [Align a second axis to the grid](#axis), [Bind every kind of series to a second axis](#axis) and 8 more |
2342
2342
  | `label` | `string` | — | Axis title.<br>Shown in: [Fix the domain and name the ticks](#axis), [Add axes for other magnitudes](#axis), [Leave out the hours nobody works](#axis) and 86 more |
2343
2343
  | `tickCount` | `number` | — | Target value; the 1-2-5 algorithm may deviate.<br>Shown in: [Fix the domain and name the ticks](#axis), [Leave out the hours nobody works](#axis), [Name the time zone of the instants](#axis) and 11 more |
2344
2344
  | `tickFormat` | `ValueFormat` | — | Label of a tick. Compared by its source text: one that reads a changed closure variable under the same text does not relabel the axis - give it a new text or remount. A bound `Intl.NumberFormat#format` is compared by identity. Or `NumberOptions`: Intl's options in the wording's locale, compared by value; the step's places stay unless the options set digits.<br>Shown in: [Fix the domain and name the ticks](#axis), [Leave out the hours nobody works](#axis), [Bind every kind of series to a second axis](#axis) and 24 more |
@@ -2418,10 +2418,10 @@ nothing.
2418
2418
 
2419
2419
  #### Known limits
2420
2420
 
2421
- - No logarithmic and no band scale: compute the logarithm in `value`; a category is a place on the linear scale ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md), [ADR-0052](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0052-a-chart-reads-its-rows-as-they-come.md)).
2421
+ - No logarithmic and no band scale: compute the logarithm in `value`; a category is a place on the linear scale ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md), [ADR-0052](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0052-a-chart-reads-its-rows-as-they-come.md)).
2422
2422
  - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
2423
2423
 
2424
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
2424
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
2425
2425
 
2426
2426
  ### Zoom and pan
2427
2427
 
@@ -3089,6 +3089,7 @@ The keys of [Chart](#chart-1) apply here.
3089
3089
 
3090
3090
  | Prop | Type | Default | Description |
3091
3091
  |---|---|---|---|
3092
+ | `id` | `string` | `"x"` | Axis id, through which series bind themselves.<br>Shown in: [Add axes for other magnitudes (Axis)](#axis), [Bind every kind of series to a second axis (Axis)](#axis) |
3092
3093
  | `value` *required* | `AxisField``<T> \| ((d: T, index: number) => ``AxisValue``)` | — | Where a row lies on this axis: a field of the row, compared by its name, or a function of it, compared by its source text as a series' is (`ValueFunction`) - with the same closure limit. A number is a position, a `Date` an instant, a string a category: every distinct one gets a place of its own, in the order the rows bring them, a tick and its name as the label ([ADR-0052](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0052-a-chart-reads-its-rows-as-they-come.md)). The type decides, never the content - `"2024"` is a category, `2024` a number - and a row without a value has no place. The axis reads the rows of every series bound to it; where those bring their own `data`, name their row: `<XAxis<HourCount> value="hour" />`.<br>Shown in: [Gestures and keys](#zoom-and-pan), [Limit the zoom](#zoom-and-pan), [Fit the y axis to what is visible](#zoom-and-pan) and 94 more |
3093
3094
  | `domain` | `"nice" \| "data" \| readonly [number, number] \| readonly [Date, Date]` | `"nice"` | `"nice"` widens the data's extent to ticks - to named `ticks` where there are any, on a time axis to whole units of a step of hours or longer -, `"data"` keeps it, a pair is fixed: numbers, on a time axis milliseconds or two `Date`s, on a category axis places. On a `zoomable` axis it is the start: what the axis shows while the chart's view names no span for it.<br>Shown in: [Gestures and keys](#zoom-and-pan), [Limit the zoom](#zoom-and-pan), [Fit the y axis to what is visible](#zoom-and-pan) and 12 more |
3094
3095
  | `position` | `"bottom" \| "top"` | `"bottom"` | Which edge the axis stands at. A second x axis on the opposite edge is how a series counts in a unit of its own.<br>Shown in: [Add axes for other magnitudes (Axis)](#axis), [Bind every kind of series to a second axis (Axis)](#axis) |
@@ -3096,7 +3097,6 @@ The keys of [Chart](#chart-1) apply here.
3096
3097
  | `calendar` | `readonly ``WorkingInterval``[]` | — | Working calendar: the intervals in which time counts. With it the axis stands in working time - nights and weekends are out, and every removed span gets a break mark. The scale stays affine; the mapping happens in materialisation ([ADR-0001](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0001-affine-scale-contract.md)).<br>Shown in: [Leave out the hours nobody works (Axis)](#axis), [Hand over a picture (Chart)](#chart-1) |
3097
3098
  | `zoomable` | `boolean` | `false` | Zoom and pan: Ctrl or ⌘ with the wheel - and a pinch - zoom around the pointer, a drag, a horizontal wheel or Shift with the wheel pan, a double click goes back to `domain`; with the focus on the chart, + and − zoom, Shift with ← or → pans and 0 goes back. The span shown is part of the chart's view, by this axis' `id` (`useChart`'s `initialView`, `onViewChange`, `setView`, `setDomain`). The plain wheel always scrolls the page.<br>Shown in: [Gestures and keys](#zoom-and-pan), [Limit the zoom](#zoom-and-pan), [Fit the y axis to what is visible](#zoom-and-pan) and 8 more |
3098
3099
  | `zoomLimits` | `ZoomLimits` | at most the data's extent or this axis' own `domain`, whichever is wider, at least three data steps | The narrowest and the widest span zoom may reach, in the axis' units - milliseconds on a time axis.<br>Shown in: [Limit the zoom](#zoom-and-pan) |
3099
- | `id` | `string` | `"x"` | Axis id, through which series bind themselves.<br>Shown in: [Add axes for other magnitudes (Axis)](#axis), [Align a second axis to the grid (Axis)](#axis), [Bind every kind of series to a second axis (Axis)](#axis) and 8 more |
3100
3100
  | `label` | `string` | — | Axis title.<br>Shown in: [Gestures and keys](#zoom-and-pan), [Limit the zoom](#zoom-and-pan), [Fit the y axis to what is visible](#zoom-and-pan) and 86 more |
3101
3101
  | `tickCount` | `number` | — | Target value; the 1-2-5 algorithm may deviate.<br>Shown in: [Keep charts in step](#zoom-and-pan), [Fix the domain and name the ticks (Axis)](#axis), [Leave out the hours nobody works (Axis)](#axis) and 11 more |
3102
3102
  | `tickFormat` | `ValueFormat` | — | Label of a tick. Compared by its source text: one that reads a changed closure variable under the same text does not relabel the axis - give it a new text or remount. A bound `Intl.NumberFormat#format` is compared by identity. Or `NumberOptions`: Intl's options in the wording's locale, compared by value; the step's places stay unless the options set digits.<br>Shown in: [Fix the domain and name the ticks (Axis)](#axis), [Leave out the hours nobody works (Axis)](#axis), [Bind every kind of series to a second axis (Axis)](#axis) and 24 more |
@@ -3256,7 +3256,7 @@ The optional numbers of a box by name.
3256
3256
 
3257
3257
  - No zoom along y, no rectangle zoom and no navigator: the x span is the one zoom there is.
3258
3258
 
3259
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
3259
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
3260
3260
 
3261
3261
  ### View
3262
3262
 
@@ -3540,7 +3540,7 @@ The optional numbers of a box by name.
3540
3540
 
3541
3541
  - The active point and the open data table are not part of the view: they are where the reader is, not how the chart is looked at.
3542
3542
 
3543
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
3543
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
3544
3544
 
3545
3545
  ## Series
3546
3546
 
@@ -4145,9 +4145,9 @@ nothing.
4145
4145
 
4146
4146
  #### Known limits
4147
4147
 
4148
- - No smoothing: a curve between two readings would invent values nobody measured ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md)).
4148
+ - No smoothing: a curve between two readings would invent values nobody measured ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md)).
4149
4149
 
4150
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
4150
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
4151
4151
 
4152
4152
  ### Area
4153
4153
 
@@ -5047,7 +5047,7 @@ The keys of [Chart](#chart-1) apply here.
5047
5047
  | `tone` | `"ok" \| "warning" \| "alarm"` | — | A role instead of a colour value; the theme resolves it. `color` beats it.<br>Shown in: [Compare the budget with the forecast (Scenarios)](#compare-the-budget-with-the-forecast) |
5048
5048
  | `stack` | `string` | — | The stack this series stands in: every Bar and Area with the same id on the same x and y axis stands on the ones registered before it. A gap stacks as zero; negative values stack downward from zero. The tooltip names each series' own value and the stack's total.<br>Shown in: [Stack bars](#bar), [Show shares of a whole](#bar), [Read a stack's total in the table (Tooltip)](#tooltip) and 1 more |
5049
5049
  | `normalize` | `boolean` | — | On any member of a stack, every x of the stack sums to 100 %: each value becomes its share, and the y axis reads in percent unless it has a `tickFormat`. The total stays the readings' own sum, written in the series' `format`.<br>Shown in: [Show shares of a whole](#bar) |
5050
- | `barWidth` | `number` | `0.8` | Width as a fraction of the step; just under 1, so that neighbours do not touch. Several bar series share this fraction.<br>Shown in: [Group bars side by side](#bar), [Count readings into a histogram](#bar), [Error bars](#bar) and 6 more |
5050
+ | `barWidth` | `number` | `0.8` | Width as a fraction of the step; the rest is the gap between neighbours. Several bar series share this fraction.<br>Shown in: [Group bars side by side](#bar), [Count readings into a histogram](#bar), [Error bars](#bar) and 6 more |
5051
5051
 
5052
5052
  ##### Types on this page
5053
5053
 
@@ -5108,7 +5108,7 @@ nothing.
5108
5108
 
5109
5109
  - Horizontal bars are the next kind to come ([ADR-0059](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0059-the-set-of-chart-kinds-is-open.md)); until then a `Matrix` or a `Table` ranks by name.
5110
5110
 
5111
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
5111
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
5112
5112
 
5113
5113
  ### Scatter
5114
5114
 
@@ -6151,7 +6151,7 @@ nothing.
6151
6151
 
6152
6152
  - No horizontal boxes, no violin or jittered points, no box width by count: a density is smoothing, a jitter a picture that does not repeat.
6153
6153
 
6154
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
6154
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/charts-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
6155
6155
 
6156
6156
  ### StateBand
6157
6157
 
@@ -6740,8 +6740,8 @@ The keys of [Chart](#chart-1) apply here.
6740
6740
  |---|---|---|---|
6741
6741
  | `value` *required* | `Value``<T>` | — | Index of the state in `states` - a number field of the row or a function of it; null/undefined/NaN/±Infinity is a gap - and a gap stays a hole, it gets no colour for "unknown". A colour would be a claim about the interval.<br>Shown in: [One vehicle through the day](#stateband), [Lay a state under a course](#stateband), [Give each one a lane](#stateband) and 4 more |
6742
6742
  | `states` *required* | `readonly ``StateEntry``[]` | — | The closed set of states, in the order of their codes.<br>Shown in: [One vehicle through the day](#stateband), [Lay a state under a course](#stateband), [Give each one a lane](#stateband) and 4 more |
6743
- | `xAxisId` | `string` | — | Binding to an x axis. |
6744
- | `yAxisId` | `string` | — | Binding to a y axis.<br>Shown in: [Lay a state under a course](#stateband), [Mark bands, limits and cells (Chart)](#chart-1), [Read limits above the states (LimitLine)](#limitline) |
6743
+ | `xAxisId` | `string` | `"x"` | Binding to an x axis. |
6744
+ | `yAxisId` | `string` | `"y"` | Binding to a y axis.<br>Shown in: [Lay a state under a course](#stateband), [Mark bands, limits and cells (Chart)](#chart-1), [Read limits above the states (LimitLine)](#limitline) |
6745
6745
  | `data` | `readonly T[]` | — | Series-own data; overrides the container data.<br>Shown in: [Lay a state under a course](#stateband), [Give each one a lane](#stateband), [Mark bands, limits and cells (Chart)](#chart-1) and 2 more |
6746
6746
  | `name` | `string` | "Series n", after its place in the chart | The name in legend and tooltip. Without one a warning stands in DEV - an unnamed series is a colour nobody can look up.<br>Shown in: [One vehicle through the day](#stateband), [Lay a state under a course](#stateband), [Give each one a lane](#stateband) and 4 more |
6747
6747
  | `lane` | `string` | — | The lane by its name: a category of the y axis, whose place the band takes, as wide as a bar is. The y axis then lists a lane per name, the first at the top, in the bands' order or its own `categories` ([ADR-0052](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0052-a-chart-reads-its-rows-as-they-come.md)). Not together with `laneFrom` or `laneTo`.<br>Shown in: [Give each one a lane](#stateband), [Mark bands, limits and cells (Chart)](#chart-1), [Read limits above the states (LimitLine)](#limitline) and 1 more |
@@ -8998,7 +8998,6 @@ From `XAxisProps` — the full table stands on [Axis](#axis).
8998
8998
  | Prop | Type | Default | Description |
8999
8999
  |---|---|---|---|
9000
9000
  | [`value`](#axis) *required* | [`AxisField`](#axis)`<T> \| ((d: T, index: number) => `[`AxisValue`](#axis)`)` | — | Where a row lies on this axis: a field of the row, compared by its name, or a function of it, compared by its source text as a series' is (`ValueFunction`) - with the same closure limit. A number is a position, a `Date` an instant, a string a category: every distinct one gets a place of its own, in the order the rows bring them, a tick and its name as the label ([ADR-0052](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0052-a-chart-reads-its-rows-as-they-come.md)). The type decides, never the content - `"2024"` is a category, `2024` a number - and a row without a value has no place. The axis reads the rows of every series bound to it; where those bring their own `data`, name their row: `<XAxis<HourCount> value="hour" />`. |
9001
- | [`id`](#axis) | `string` | `"x"` | Axis id, through which series bind themselves. |
9002
9001
  | [`label`](#axis) | `string` | — | Axis title. |
9003
9002
  | [`tickFormat`](#axis) | [`ValueFormat`](#axis) | — | Label of a tick. Compared by its source text: one that reads a changed closure variable under the same text does not relabel the axis - give it a new text or remount. A bound `Intl.NumberFormat#format` is compared by identity. Or `NumberOptions`: Intl's options in the wording's locale, compared by value; the step's places stay unless the options set digits. |
9004
9003
 
@@ -9006,9 +9005,9 @@ From `YAxisProps` — the full table stands on [Axis](#axis).
9006
9005
 
9007
9006
  | Prop | Type | Default | Description |
9008
9007
  |---|---|---|---|
9008
+ | [`id`](#axis) | `string` | `"y"` | Axis id, through which series bind themselves. |
9009
9009
  | [`domain`](#axis) | `"nice" \| "data" \| "visible" \| readonly [number, number]` | `"nice"` | As on the x axis, and `"visible"`: what the series show inside their x axis' domain - a zoomed hour gets the hour's range, not the week's -, widened to ticks as `"nice"` is. Where the x domain is not fixed that is every point. |
9010
9010
  | [`position`](#axis) | `"left" \| "right"` | `"left"` | Which edge the axis stands at. Several y axes per side are stacked outwards, so that extents of clearly different magnitude stay readable. |
9011
- | [`id`](#axis) | `string` | `"y"` | Axis id, through which series bind themselves. |
9012
9011
  | [`label`](#axis) | `string` | — | Axis title. |
9013
9012
  | [`tickFormat`](#axis) | [`ValueFormat`](#axis) | — | Label of a tick. Compared by its source text: one that reads a changed closure variable under the same text does not relabel the axis - give it a new text or remount. A bound `Intl.NumberFormat#format` is compared by identity. Or `NumberOptions`: Intl's options in the wording's locale, compared by value; the step's places stay unless the options set digits. |
9014
9013
 
@@ -9028,7 +9027,7 @@ From `BarProps` — the full table stands on [Bar](#bar).
9028
9027
  |---|---|---|---|
9029
9028
  | [`value`](#bar) *required* | [`Value`](#bar)`<T>` | — | Height - a number field of the row or a function of it; null/undefined/NaN/±Infinity means a gap. |
9030
9029
  | [`name`](#bar) | `string` | "Series n", after its place in the chart | The name in legend and tooltip. Without one a warning stands in DEV - an unnamed series is a colour nobody can look up. |
9031
- | [`barWidth`](#bar) | `number` | `0.8` | Width as a fraction of the step; just under 1, so that neighbours do not touch. Several bar series share this fraction. |
9030
+ | [`barWidth`](#bar) | `number` | `0.8` | Width as a fraction of the step; the rest is the gap between neighbours. Several bar series share this fraction. |
9032
9031
 
9033
9032
  From `LimitLineProps` — the full table stands on [LimitLine](#limitline).
9034
9033
 
@@ -10714,16 +10713,15 @@ From `XAxisProps` — the full table stands on [Axis](#axis).
10714
10713
  | [`domain`](#axis) | `"nice" \| "data" \| readonly [number, number] \| readonly [Date, Date]` | `"nice"` | `"nice"` widens the data's extent to ticks - to named `ticks` where there are any, on a time axis to whole units of a step of hours or longer -, `"data"` keeps it, a pair is fixed: numbers, on a time axis milliseconds or two `Date`s, on a category axis places. On a `zoomable` axis it is the start: what the axis shows while the chart's view names no span for it. |
10715
10714
  | [`time`](#axis) | `boolean` | — | The values are instants: milliseconds since the epoch, or with `time` said ISO 8601 strings as an API sends them, read by the platform's rule - a date with a time and no offset is local time, a date alone is UTC; a string that is none is not drawn. Rows that hold a `Date` put the axis in time without `time`. Ticks on local boundaries from the minute to the month, labels by level in en-GB with a 24-hour clock - `15:00`, `17 Mar`, `Mar 2026` - and the date on the first tick and on the first of a new day (`17 Mar 00:00`); a day tick there carries the year. The tooltip's x value carries the seconds where the readings lie less than a minute apart. Another language is a `tickFormat`, which is handed the instant in milliseconds. `calendar` implies it. |
10716
10715
  | [`zoomable`](#axis) | `boolean` | `false` | Zoom and pan: Ctrl or ⌘ with the wheel - and a pinch - zoom around the pointer, a drag, a horizontal wheel or Shift with the wheel pan, a double click goes back to `domain`; with the focus on the chart, + and − zoom, Shift with ← or → pans and 0 goes back. The span shown is part of the chart's view, by this axis' `id` (`useChart`'s `initialView`, `onViewChange`, `setView`, `setDomain`). The plain wheel always scrolls the page. |
10717
- | [`id`](#axis) | `string` | `"x"` | Axis id, through which series bind themselves. |
10718
10716
  | [`label`](#axis) | `string` | — | Axis title. |
10719
10717
 
10720
10718
  From `YAxisProps` — the full table stands on [Axis](#axis).
10721
10719
 
10722
10720
  | Prop | Type | Default | Description |
10723
10721
  |---|---|---|---|
10722
+ | [`id`](#axis) | `string` | `"y"` | Axis id, through which series bind themselves. |
10724
10723
  | [`domain`](#axis) | `"nice" \| "data" \| "visible" \| readonly [number, number]` | `"nice"` | As on the x axis, and `"visible"`: what the series show inside their x axis' domain - a zoomed hour gets the hour's range, not the week's -, widened to ticks as `"nice"` is. Where the x domain is not fixed that is every point. |
10725
10724
  | [`position`](#axis) | `"left" \| "right"` | `"left"` | Which edge the axis stands at. Several y axes per side are stacked outwards, so that extents of clearly different magnitude stay readable. |
10726
- | [`id`](#axis) | `string` | `"y"` | Axis id, through which series bind themselves. |
10727
10725
  | [`label`](#axis) | `string` | — | Axis title. |
10728
10726
 
10729
10727
  From `LineProps` — the full table stands on [Line](#line).
@@ -11563,18 +11561,18 @@ Everything the charts put out as text.
11563
11561
  | `zoomHelp` *required* | `string` | — | The keys that zoom and pan it - only where the chart can be zoomed. |
11564
11562
  | `legendHelp` *required* | `string` | — | The keys of the legend's entries - only where it has one to press. |
11565
11563
  | `allShown` *required* | `string` | — | Read out where hiding would leave nothing to see, and every series is shown instead. |
11566
- | `showAll` *required* | `string` | — | The control over a zoomed plot that brings every zoomed axis back to its own domain (component-view 04). |
11564
+ | `showAll` *required* | `string` | — | The control over a zoomed plot that brings every zoomed axis back to its own domain. |
11567
11565
  | `showData` *required* | `string` | — | The data table's disclosure key, closed and open. |
11568
11566
  | `hideData` *required* | `string` | — | |
11569
11567
  | `positionColumn` *required* | `string` | — | The heading of the table's x column where its axis has no `label`, and of a matrix' row column where its y axis has none. |
11570
11568
  | `rowColumn` *required* | `string` | — | |
11571
11569
  | `tableCaption` *required* | `(from: string, to: string) => string` | — | The table's caption: the visible stretch it lists, both ends formatted. |
11572
- | `upperWhisker` *required* | `string` | — | A box's numbers, top to bottom as drawn: the tooltip's rows, the readout's parts and the data table's columns (box-plot B9). |
11570
+ | `upperWhisker` *required* | `string` | — | A box's numbers, top to bottom as drawn: the tooltip's rows, the readout's parts and the data table's columns. |
11573
11571
  | `upperQuartile` *required* | `string` | — | |
11574
11572
  | `median` *required* | `string` | — | |
11575
11573
  | `lowerQuartile` *required* | `string` | — | |
11576
11574
  | `lowerWhisker` *required* | `string` | — | |
11577
- | `outliers` *required* | `string` | — | A box's outliers: the row's name, and the row's value - their count and the first few values, the rest counted (box-plot B9). |
11575
+ | `outliers` *required* | `string` | — | A box's outliers: the row's name, and the row's value - their count and the first few values, the rest counted. |
11578
11576
  | `mean` *required* | `string` | — | A box's optional readings: its mean, its notch's two bounds as one row, and how many values stand behind it. |
11579
11577
  | `notch` *required* | `string` | — | |
11580
11578
  | `count` *required* | `string` | — | |
@@ -11960,12 +11958,9 @@ where the cutoff is crossed.
11960
11958
  What a call may specify: a collect rank only together with the name of the
11961
11959
  remainder it creates.
11962
11960
 
11963
- ```ts
11964
- type ParetoSettings = { readonly cutoff?: number } & (
11965
- | { readonly collectRank?: undefined; readonly remainderName?: undefined }
11966
- | { readonly collectRank: number; readonly remainderName: string }
11967
- );
11968
- ```
11961
+ | Prop | Type | Default | Description |
11962
+ |---|---|---|---|
11963
+ | `cutoff` | `number` | — | |
11969
11964
 
11970
11965
  ##### `Rect`
11971
11966
 
@@ -12036,24 +12031,15 @@ Which rules run, and with which run lengths.
12036
12031
  The mapping of an axis' values onto pixels and back, with its ticks. Every
12037
12032
  scale of the library is affine; `LinearScale` implements it.
12038
12033
 
12039
- ```ts
12040
- interface Scale {
12041
- domain: readonly [number, number];
12042
- range: readonly [number, number];
12043
- /** Affine coefficients of the mapping px = v·m + b.
12044
-
12045
- They stand in the interface because the drawing code reads them and
12046
- computes inline in the point loop instead of calling toPx() per point -
12047
- that is what carries 60 fps at millions of points. Every scale of this
12048
- library is affine; see docs/adr/0001-affine-scale-contract.md, which also
12049
- says what a later log scale would cost. */
12050
- readonly m: number;
12051
- readonly b: number;
12052
- toPx(v: number): number;
12053
- fromPx(px: number): number;
12054
- ticks(n: number): number[];
12055
- }
12056
- ```
12034
+ | Prop | Type | Default | Description |
12035
+ |---|---|---|---|
12036
+ | `domain` *required* | `readonly [number, number]` | — | |
12037
+ | `range` *required* | `readonly [number, number]` | — | |
12038
+ | `m` *required* | `number` | — | Affine coefficients of the mapping px = v·m + b. They stand in the interface because the drawing code reads them and computes inline in the point loop instead of calling toPx() per point - that is what carries 60 fps at millions of points. Every scale of this library is affine; see docs/adr/0001-affine-scale-contract.md, which also says what a later log scale would cost. |
12039
+ | `b` *required* | `number` | — | |
12040
+ | `toPx` *required* | `(v: number) => number` | — | |
12041
+ | `fromPx` *required* | `(px: number) => number` | — | |
12042
+ | `ticks` *required* | `(n: number) => number[]` | — | |
12057
12043
 
12058
12044
  ##### `ScatterProps`
12059
12045
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/charts",
3
- "version": "0.55.1",
3
+ "version": "0.57.0",
4
4
  "description": "React canvas chart library for data-dense dashboards - line, area, bar, box plot, scatter, control and Pareto charts. Few chart kinds, drawn well, fast.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",
@@ -70,15 +70,18 @@
70
70
  "default": "./dist/charts.css"
71
71
  }
72
72
  },
73
+ "engines": {
74
+ "node": ">=22"
75
+ },
73
76
  "peerDependencies": {
74
- "react": ">=19",
75
- "react-dom": ">=19"
77
+ "react": "^19",
78
+ "react-dom": "^19"
76
79
  },
77
80
  "devDependencies": {
78
81
  "@fontsource/geist-mono": "^5.3.0",
79
82
  "@fontsource/geist-sans": "^5.3.0",
80
83
  "@umriss-ui/demo": "0.0.0",
81
- "@umriss-ui/core": "0.55.1",
84
+ "@umriss-ui/core": "0.57.0",
82
85
  "@types/node": "^22.20.2",
83
86
  "@types/react": "^19.0.0",
84
87
  "@types/react-dom": "^19.0.0",