@zsherman/charts 0.0.0-stage → 0.1.1

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.
Files changed (180) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +373 -0
  3. package/README.md +13 -2
  4. package/THIRD_PARTY_NOTICES.md +33 -0
  5. package/dist/dom/bar-list/bar-list.js +386 -0
  6. package/dist/dom/bar-list/bar-list.styles.js +171 -0
  7. package/dist/dom/bar-list/index.js +1 -0
  8. package/dist/dom/chart/chart.js +716 -0
  9. package/dist/dom/chart/chart.styles.js +165 -0
  10. package/dist/dom/chart/index.js +1 -0
  11. package/dist/dom/chart-grid/chart-grid.js +67 -0
  12. package/dist/dom/chart-grid/index.js +1 -0
  13. package/dist/dom/donut/donut.js +565 -0
  14. package/dist/dom/donut/donut.styles.js +111 -0
  15. package/dist/dom/donut/index.js +1 -0
  16. package/dist/dom/heat-graph/calendar.js +118 -0
  17. package/dist/dom/heat-graph/heat-graph.js +423 -0
  18. package/dist/dom/heat-graph/heat-graph.styles.js +168 -0
  19. package/dist/dom/heat-graph/index.js +1 -0
  20. package/dist/dom/heat-matrix/heat-matrix.js +346 -0
  21. package/dist/dom/heat-matrix/heat-matrix.styles.js +155 -0
  22. package/dist/dom/heat-matrix/index.js +1 -0
  23. package/dist/dom/heat-matrix/model.js +41 -0
  24. package/dist/dom/index.js +13 -0
  25. package/dist/dom/internal/colors.js +44 -0
  26. package/dist/dom/internal/floating-tip.js +83 -0
  27. package/dist/dom/internal/format.js +43 -0
  28. package/dist/dom/internal/grid-context.js +5 -0
  29. package/dist/dom/internal/hidden.styles.js +16 -0
  30. package/dist/dom/internal/legend.js +112 -0
  31. package/dist/dom/internal/legend.styles.js +108 -0
  32. package/dist/dom/internal/markers.js +101 -0
  33. package/dist/dom/internal/options.js +300 -0
  34. package/dist/dom/internal/place.js +27 -0
  35. package/dist/dom/internal/scheme-watch.js +73 -0
  36. package/dist/dom/internal/share.js +28 -0
  37. package/dist/dom/internal/types.js +0 -0
  38. package/dist/dom/row-chart/index.js +1 -0
  39. package/dist/dom/row-chart/model.js +59 -0
  40. package/dist/dom/row-chart/row-chart.js +691 -0
  41. package/dist/dom/row-chart/row-chart.styles.js +242 -0
  42. package/dist/dom/segmented-bar/index.js +1 -0
  43. package/dist/dom/segmented-bar/segmented-bar.js +280 -0
  44. package/dist/dom/segmented-bar/segmented-bar.styles.js +88 -0
  45. package/dist/dom/sparkline/index.js +1 -0
  46. package/dist/dom/sparkline/sparkline.js +145 -0
  47. package/dist/dom/stacked-histogram/histogram.js +137 -0
  48. package/dist/dom/stacked-histogram/index.js +1 -0
  49. package/dist/dom/stacked-histogram/stacked-histogram.js +761 -0
  50. package/dist/dom/stacked-histogram/stacked-histogram.styles.js +211 -0
  51. package/dist/dom/state-timeline/index.js +1 -0
  52. package/dist/dom/state-timeline/model.js +166 -0
  53. package/dist/dom/state-timeline/state-timeline.js +729 -0
  54. package/dist/dom/state-timeline/state-timeline.styles.js +171 -0
  55. package/dist/dom/status-history/index.js +1 -0
  56. package/dist/dom/status-history/status-history.js +542 -0
  57. package/dist/dom/status-history/status-history.styles.js +171 -0
  58. package/dist/solid/bar-list/bar-list.jsx +139 -0
  59. package/dist/solid/bar-list/bar-list.styles.jsx +171 -0
  60. package/dist/solid/bar-list/index.jsx +1 -0
  61. package/dist/solid/chart/chart.jsx +454 -0
  62. package/dist/solid/chart/chart.styles.jsx +165 -0
  63. package/dist/solid/chart/index.jsx +1 -0
  64. package/dist/solid/chart-grid/chart-grid.jsx +46 -0
  65. package/dist/solid/chart-grid/index.jsx +1 -0
  66. package/dist/solid/donut/donut.jsx +291 -0
  67. package/dist/solid/donut/donut.styles.jsx +111 -0
  68. package/dist/solid/donut/index.jsx +1 -0
  69. package/dist/solid/heat-graph/calendar.jsx +118 -0
  70. package/dist/solid/heat-graph/heat-graph.jsx +228 -0
  71. package/dist/solid/heat-graph/heat-graph.styles.jsx +168 -0
  72. package/dist/solid/heat-graph/index.jsx +1 -0
  73. package/dist/solid/heat-matrix/heat-matrix.jsx +165 -0
  74. package/dist/solid/heat-matrix/heat-matrix.styles.jsx +155 -0
  75. package/dist/solid/heat-matrix/index.jsx +1 -0
  76. package/dist/solid/heat-matrix/model.jsx +41 -0
  77. package/dist/solid/index.jsx +13 -0
  78. package/dist/solid/internal/colors.jsx +44 -0
  79. package/dist/solid/internal/floating-tip.jsx +68 -0
  80. package/dist/solid/internal/format.jsx +43 -0
  81. package/dist/solid/internal/grid-context.jsx +5 -0
  82. package/dist/solid/internal/hidden.styles.jsx +16 -0
  83. package/dist/solid/internal/legend.jsx +35 -0
  84. package/dist/solid/internal/legend.styles.jsx +108 -0
  85. package/dist/solid/internal/markers.jsx +101 -0
  86. package/dist/solid/internal/options.jsx +300 -0
  87. package/dist/solid/internal/place.jsx +27 -0
  88. package/dist/solid/internal/scheme-watch.jsx +73 -0
  89. package/dist/solid/internal/share.jsx +28 -0
  90. package/dist/solid/internal/types.jsx +0 -0
  91. package/dist/solid/row-chart/index.jsx +1 -0
  92. package/dist/solid/row-chart/model.jsx +59 -0
  93. package/dist/solid/row-chart/row-chart.jsx +312 -0
  94. package/dist/solid/row-chart/row-chart.styles.jsx +242 -0
  95. package/dist/solid/segmented-bar/index.jsx +1 -0
  96. package/dist/solid/segmented-bar/segmented-bar.jsx +125 -0
  97. package/dist/solid/segmented-bar/segmented-bar.styles.jsx +88 -0
  98. package/dist/solid/sparkline/index.jsx +1 -0
  99. package/dist/solid/sparkline/sparkline.jsx +88 -0
  100. package/dist/solid/stacked-histogram/histogram.jsx +137 -0
  101. package/dist/solid/stacked-histogram/index.jsx +1 -0
  102. package/dist/solid/stacked-histogram/stacked-histogram.jsx +381 -0
  103. package/dist/solid/stacked-histogram/stacked-histogram.styles.jsx +211 -0
  104. package/dist/solid/state-timeline/index.jsx +1 -0
  105. package/dist/solid/state-timeline/model.jsx +166 -0
  106. package/dist/solid/state-timeline/state-timeline.jsx +387 -0
  107. package/dist/solid/state-timeline/state-timeline.styles.jsx +171 -0
  108. package/dist/solid/status-history/index.jsx +1 -0
  109. package/dist/solid/status-history/status-history.jsx +279 -0
  110. package/dist/solid/status-history/status-history.styles.jsx +171 -0
  111. package/dist/styles.css +1 -0
  112. package/dist/types/bar-list/bar-list.d.ts +91 -0
  113. package/dist/types/bar-list/bar-list.styles.d.ts +148 -0
  114. package/dist/types/bar-list/index.d.ts +3 -0
  115. package/dist/types/chart/chart.d.ts +98 -0
  116. package/dist/types/chart/chart.styles.d.ts +145 -0
  117. package/dist/types/chart/index.d.ts +3 -0
  118. package/dist/types/chart-grid/chart-grid.d.ts +35 -0
  119. package/dist/types/chart-grid/index.d.ts +2 -0
  120. package/dist/types/donut/donut.d.ts +124 -0
  121. package/dist/types/donut/donut.styles.d.ts +96 -0
  122. package/dist/types/donut/index.d.ts +3 -0
  123. package/dist/types/heat-graph/calendar.d.ts +61 -0
  124. package/dist/types/heat-graph/heat-graph.d.ts +82 -0
  125. package/dist/types/heat-graph/heat-graph.styles.d.ts +141 -0
  126. package/dist/types/heat-graph/index.d.ts +4 -0
  127. package/dist/types/heat-matrix/heat-matrix.d.ts +65 -0
  128. package/dist/types/heat-matrix/heat-matrix.styles.d.ts +135 -0
  129. package/dist/types/heat-matrix/index.d.ts +3 -0
  130. package/dist/types/heat-matrix/model.d.ts +15 -0
  131. package/dist/types/index.d.ts +12 -0
  132. package/dist/types/internal/colors.d.ts +22 -0
  133. package/dist/types/internal/floating-tip.d.ts +15 -0
  134. package/dist/types/internal/format.d.ts +7 -0
  135. package/dist/types/internal/grid-context.d.ts +9 -0
  136. package/dist/types/internal/hidden.styles.d.ts +15 -0
  137. package/dist/types/internal/legend.d.ts +18 -0
  138. package/dist/types/internal/legend.styles.d.ts +96 -0
  139. package/dist/types/internal/markers.d.ts +16 -0
  140. package/dist/types/internal/options.d.ts +59 -0
  141. package/dist/types/internal/place.d.ts +20 -0
  142. package/dist/types/internal/scheme-watch.d.ts +12 -0
  143. package/dist/types/internal/share.d.ts +19 -0
  144. package/dist/types/internal/types.d.ts +163 -0
  145. package/dist/types/row-chart/index.d.ts +4 -0
  146. package/dist/types/row-chart/model.d.ts +50 -0
  147. package/dist/types/row-chart/row-chart.d.ts +148 -0
  148. package/dist/types/row-chart/row-chart.styles.d.ts +216 -0
  149. package/dist/types/segmented-bar/index.d.ts +3 -0
  150. package/dist/types/segmented-bar/segmented-bar.d.ts +65 -0
  151. package/dist/types/segmented-bar/segmented-bar.styles.d.ts +75 -0
  152. package/dist/types/sparkline/index.d.ts +3 -0
  153. package/dist/types/sparkline/sparkline.d.ts +38 -0
  154. package/dist/types/stacked-histogram/histogram.d.ts +48 -0
  155. package/dist/types/stacked-histogram/index.d.ts +4 -0
  156. package/dist/types/stacked-histogram/stacked-histogram.d.ts +73 -0
  157. package/dist/types/stacked-histogram/stacked-histogram.styles.d.ts +187 -0
  158. package/dist/types/state-timeline/index.d.ts +3 -0
  159. package/dist/types/state-timeline/model.d.ts +63 -0
  160. package/dist/types/state-timeline/state-timeline.d.ts +108 -0
  161. package/dist/types/state-timeline/state-timeline.styles.d.ts +151 -0
  162. package/dist/types/status-history/index.d.ts +3 -0
  163. package/dist/types/status-history/status-history.d.ts +72 -0
  164. package/dist/types/status-history/status-history.styles.d.ts +150 -0
  165. package/docs/api.json +1346 -0
  166. package/docs/bar-list.md +190 -0
  167. package/docs/chart-grid.md +77 -0
  168. package/docs/chart.md +355 -0
  169. package/docs/donut.md +182 -0
  170. package/docs/heat-graph.md +121 -0
  171. package/docs/heat-matrix.md +108 -0
  172. package/docs/llms.txt +68 -0
  173. package/docs/row-chart.md +193 -0
  174. package/docs/search-index.json +291 -0
  175. package/docs/segmented-bar.md +128 -0
  176. package/docs/sparkline.md +82 -0
  177. package/docs/stacked-histogram.md +123 -0
  178. package/docs/state-timeline.md +141 -0
  179. package/docs/status-history.md +121 -0
  180. package/package.json +109 -4
@@ -0,0 +1,291 @@
1
+ {"records":[
2
+ {"id":"bar-list.md","kind":"page","title":"Bar list","page":"Bar list","doc":"bar-list.md","entry":"@zsherman/charts/bar-list","keywords":"bar list, top pages, top customers, ranking, leaderboard, horizontal bars, referrers, top countries, breakdown","text":"Ranked horizontal bars: top pages, top referrers, top customers. Each bar is scaled to the largest value, its label sits on the bar, and the value is at the end of the row, with an optional share of the total. Rows can be links or filter buttons. It's plain DOM, so it renders on the server."},
3
+ {"id":"bar-list.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Bar list","doc":"bar-list.md","anchor":"usage-guidelines","text":"Use it to rank categories by one measure, when the question is \"which ones, and by how much\": pages, sources, countries, customers. For change over time use a Chart; for parts of one whole, a Segmented bar or a Donut; for several series per row (before and after, a split per row), a Row chart. Name it with label: what is ranked, by what, over which period (\"Top pages by visitors, last 7 days\"). It's the list's accessible name. Rows are ranked largest first. Keep your own order with sort=\"none\" (a fixed list of plans), or sort=\"ascending\" for \"slowest first\" style lists where smaller is the story. Show a handful of rows (limit={5}) and put the rest behind Show more. Use share when the proportion matters more than the count. Values below 0 or missing count as 0. A value above 0 always shows a sliver of bar, so it never reads as zero."},
4
+ {"id":"bar-list.md#anatomy","kind":"section","title":"Anatomy","page":"Bar list","doc":"bar-list.md","anchor":"anatomy","text":"Each row is a BarListItem: label · string · What is ranked. Cut short on its bar when long; the full text is in the row's name and title. value · number | null · Its amount. Missing or negative counts as 0. href · string · Makes the row a link. icon · JSX.Element · An icon before the label (<Icon icon={Globe} />), decorative. key · string · Identifies the row for selected when labels repeat. Defaults to label. data · T · Your own data, handed back to onSelect. What renders: a root div (data-slot=\"bar-list\") holding the headers (bar-list-header, hidden from assistive technology), a ul (bar-list-list, named by label) of li rows (bar-list-item). Each row holds a link (href), a button (onSelect) or a plain div, with the bar (bar-list-bar, its fill bar-list-fill and label bar-list-label), the value (bar-list-value) and the share (bar-list-share). Show more is a kit Button (bar-list-more). With no rows the named list stays (empty) and a paragraph after it (bar-list-empty) says why.","code":"BarList label data value href icon key sort descending limit onShowMore share max total labelHeader Page valueHeader Visitors shareHeader Share format color chart-1 onSelect item index selected Direct labels showMore showLess empty"},
5
+ {"id":"bar-list.md#show-more","kind":"section","title":"Show more","page":"Bar list","doc":"bar-list.md","anchor":"show-more","text":"limit shows the first rows. Without onShowMore, Show more expands the list in place (aria-expanded, aria-controls the list), and while it's collapsed the last rows fade out. With onShowMore, the button calls you instead: open every row in a dialog, with search if the list is long.","code":"BarList zsherman charts bar-list Dialog DialogBody DialogContent DialogHeader DialogTitle kit dialog createSignal open setOpen label Top pages visitors last days data limit onShowMore onOpenChange next size All share"},
6
+ {"id":"bar-list.md#part-of-a-larger-list","kind":"section","title":"Part of a larger list","page":"Bar list","parent":"Show more","doc":"bar-list.md","anchor":"part-of-a-larger-list","text":"A list that shows part of a larger one (the results of a search in that dialog, a page of rows) would rescale to what's left: the only match would fill its bar and read as 100%. Pass the whole list's largest value as max and its total as total, and each row keeps its length and share as the others are filtered out.","code":"all pages found filter label includes query BarList Pages matching the search data max Math map value total reduce sum share"},
7
+ {"id":"bar-list.md#links-and-filters","kind":"section","title":"Links and filters","page":"Bar list","doc":"bar-list.md","anchor":"links-and-filters","text":"A row with href is a link: open that page, customer or campaign. With onSelect, rows without href are buttons, for filtering the rest of the page by one category; every row is a toggle button (aria-pressed). Pass selected (the row's key, or its label) so the chosen row is pressed and its bar darker; null or nothing means none is chosen. Without either, rows are plain list items. icon is an element: create it where the list renders (in the component), not in a module-level constant, so each list gets its own.","code":"BarList zsherman charts bar-list Icon kit icon Link Search icons createSignal source setSource label Visits referrer last days data engines value _840 Direct _120 selected onSelect item current"},
8
+ {"id":"bar-list.md#formats","kind":"section","title":"Formats","page":"Bar list","doc":"bar-list.md","anchor":"formats","text":"Values follow the kit's locale (LocaleProvider), full below 10,000 and compact above (12.9K), the same as Chart's axes. Pass format for units or currency. Shares have one decimal under 10% (\"4.2%\"), none above (\"42%\"), and \"<0.1%\" for a sliver.","code":"usd Intl NumberFormat en-US style currency USD notation compact BarList label Top customers annual revenue data format"},
9
+ {"id":"bar-list.md#accessibility","kind":"section","title":"Accessibility","page":"Bar list","doc":"bar-list.md","anchor":"accessibility","text":"The rows are a list named by label. Each row is named \"Label, value, share\" (\"/pricing, 7.3K, 16%\"), whether it's a link, a button or a plain item; the visible bar and numbers are hidden from assistive technology so nothing is read twice. Long labels are cut short on their bar with an ellipsis; the full text stays in the row's name and in a title on the label. Links and buttons are ordinary tab stops; buttons are toggles, pressed when their row is selected. An empty list keeps its name: it's read as an empty list, then the empty text. In right-to-left text (dir=\"rtl\") the bars grow from the right and the values sit at the left end. The bar's length isn't the only cue: the value is always written at the end of the row."},
10
+ {"id":"bar-list.md#words","kind":"section","title":"Words","page":"Bar list","doc":"bar-list.md","anchor":"words","text":"showMore, showLess and empty take labels, or app-wide the kit's LocaleProvider messages={{ barList: { … } }}."},
11
+ {"id":"bar-list.md#gotchas","kind":"section","title":"Gotchas","page":"Bar list","doc":"bar-list.md","anchor":"gotchas","text":"The bars are a light wash of color, so the label on them stays legible: don't pass a dark color expecting a solid bar. Shares are of every row, not only those shown, so the visible shares can add up to less than 100%. key identifies a row for selected when two rows share a label."},
12
+ {"id":"bar-list.md#api-reference","kind":"section","title":"API reference","page":"Bar list","doc":"bar-list.md","anchor":"api-reference","text":""},
13
+ {"id":"chart-grid.md","kind":"page","title":"Chart grid","page":"Chart grid","doc":"chart-grid.md","entry":"@zsherman/charts/chart-grid","keywords":"chart grid, dashboard charts, small multiples, synced cursor, metrics panel","text":"Several charts on one time axis, laid out in columns that follow the width, with one cursor: point at a moment in one chart and read it in all of them. For a diagnostics or metrics panel read together, or for a set of series too large for one chart (small multiples)."},
14
+ {"id":"chart-grid.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Chart grid","doc":"chart-grid.md","anchor":"usage-guidelines","text":"Use a grid for measures that share an x axis and are read together, each in its own unit: throughput, latency, errors, CPU. One chart each, one y axis each. Give every chart a title with its unit (\"Latency (ms)\") and a label with its finding; give the grid a label that names the panel and the period. Keep the panels few (two to six). A grid isn't a dashboard of dozens. Keep the charts alike: the same height (chartHeight), the same x formatter, one unit system. Turn sync off only when the charts don't share an x axis; then a grid of separate charts is the right tool anyway. Add a heading above the grid; chart titles are plain text, not headings."},
15
+ {"id":"chart-grid.md#anatomy","kind":"section","title":"Anatomy","page":"Chart grid","doc":"chart-grid.md","anchor":"anatomy","text":"A div (data-slot=\"chart-grid\", role=\"group\" named by label) laid out as a CSS grid: as many columns as fit at minColumnWidth (320px), or exactly columns. Charts inside share a cursor sync key and take chartHeight unless they set height.","code":"ChartGrid label minColumnWidth columns sync chartHeight Chart"},
16
+ {"id":"chart-grid.md#live-grids","kind":"section","title":"Live grids","page":"Chart grid","doc":"chart-grid.md","anchor":"live-grids","text":"Each chart's data updates on its own, without rebuilding, and the shared cursor stays put:","code":"data setData createSignal metrics map initial ChartGrid label Cluster live chartHeight minColumnWidth For each Chart title series legend zoom"},
17
+ {"id":"chart-grid.md#gotchas","kind":"section","title":"Gotchas","page":"Chart grid","doc":"chart-grid.md","anchor":"gotchas","text":"Charts sync by x value, so they need the same x units (all Unix seconds). Zooming one chart doesn't zoom the others."},
18
+ {"id":"chart-grid.md#api-reference","kind":"section","title":"API reference","page":"Chart grid","doc":"chart-grid.md","anchor":"api-reference","text":""},
19
+ {"id":"chart.md","kind":"page","title":"Chart","page":"Chart","doc":"chart.md","entry":"@zsherman/charts/chart","keywords":"chart, graph, plot, line chart, area chart, bar chart, column chart, time series, uplot, visualization","text":"A canvas chart for values over time or across categories: lines, areas and bars, grouped or stacked, with a tooltip at the cursor, a legend that toggles series, drag to zoom and data that streams in without rebuilding the chart. Built on uPlot, themed with the kit's tokens; the plot is a named image whose values the arrow keys read out."},
20
+ {"id":"chart.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Chart","doc":"chart.md","anchor":"usage-guidelines","text":"Use a line for a trend of one or more series where the shape over time matters; an area for one series whose volume matters; bars for values people compare one by one. Name every chart with label: the metric, the period and the main finding (\"Signups per week, last quarter: up 30%\"). Add title for a visible name unless the page already gives one. Keep it to five series or fewer. A larger set reads better as several charts in a ChartGrid. One y axis per chart. Two measures with different units or scales are two charts on the same x axis (a ChartGrid syncs their cursors). The legend appears for two or more series and toggles each one; a single series needs none, its title names it. Give the chart a definite width from its container (it fills it) and a height (240 by default). The legend and title sit outside that height. When there's no data, show an EmptyState (or a sentence) instead of empty axes."},
21
+ {"id":"chart.md#anatomy","kind":"section","title":"Anatomy","page":"Chart","doc":"chart.md","anchor":"anatomy","text":"What renders: a root div (data-slot=\"chart\") with the title (chart-title), the plot (chart-plot, role=\"img\" with aria-label, focusable when it has data) holding uPlot's canvas and the tooltip (chart-tooltip, a manual popover in the top layer, with a heading chart-tooltip-heading and a row per series, chart-tooltip-row, data-focused on the focused series' row), a polite live region (chart-readout) for the keyboard readout, and the legend (chart-legend: a list of toggle buttons, chart-legend-item, each with a swatch, chart-swatch).","code":"Chart title label data series line area bar color dash points time categories format range steps grid legend live tooltip formatX render onCursor point focus markers axis value Target zoom onZoom onSelect controller labels"},
22
+ {"id":"chart.md#series","kind":"section","title":"Series","page":"Chart","doc":"chart.md","anchor":"series","text":"Each entry of series describes the y array at the same position (series[0] is data[1]). label · The name in the legend, tooltip and readout. Required. type · \"line\" (default), \"area\" (a 12% wash under the line) or \"bar\". color · \"chart-1\" … \"chart-8\", or any CSS color (\"var(--sui-text-subtle)\"). Defaults to the next chart color in order. width · Line width in pixels (2). dash · A dash pattern ([6, 4]) for a target or a forecast: a cue beside color. points · A dot at each point. For a few points, not dense series. show · false to start hidden (the legend shows it off). format · Formats this series' values in the tooltip, legend and readout."},
23
+ {"id":"chart.md#bars-and-categories","kind":"section","title":"Bars and categories","page":"Chart","doc":"chart.md","anchor":"bars-and-categories","text":"Bars sit on their x value, at most 24px wide with a rounded data end. Several bar series are grouped side by side; stacked stacks them (and areas) instead, and the tooltip and legend still show each series' own value. A category axis takes x.categories: the data's x array is 0, 1, 2, … and each value is named. Parts of a daily total, stacked (bars and stacks start at zero; segments are separated by a 2px gap in the surface color, and hiding a series from the legend restacks the rest):","code":"Chart title Revenue plan label Monthly revenue June November Enterprise grows fastest data series Starter bar Team categories Jun Jul Aug Sep Oct Nov format zoom Deploys per day environment last two weeks deploys stacked Production Staging Preview"},
24
+ {"id":"chart.md#axes-and-formats","kind":"section","title":"Axes and formats","page":"Chart","doc":"chart.md","anchor":"axes-and-formats","text":"x and y take format (tick labels; also the tooltip unless a series has its own), range (a fixed [min, max]), steps (allowed tick steps: [1] for whole numbers), label (an axis title), grid and show. On a time axis (the default without categories), ticks are uPlot's dates; the tooltip heading uses Intl.DateTimeFormat in the kit's locale, with as much detail as the data's span needs. Numbers default to the locale's format, compact from 10,000 (12.9K). Pass a time zone to your formatters when the data's day boundaries matter; the defaults use the reader's.","code":"week Intl DateTimeFormat en-US month short day numeric timeZone UTC Chart label Weekly signup conversion rising just under the target data series Conversion points format Date range toFixed markers axis value Target tooltip formatX Week"},
25
+ {"id":"chart.md#reference-lines-and-bands","kind":"section","title":"Reference lines and bands","page":"Chart","doc":"chart.md","anchor":"reference-lines-and-bands","text":"markers draws a target, a threshold or a window across the plot: on y a horizontal line (a target, an SLO) or band (a normal range), on x a vertical line (a deploy, a release) or band (an incident). A line is dashed; a band is a wash. Each takes a label, drawn beside it in a text color and read out after the chart's label (\"SLO 300 ms: 300 ms; Incident: 3:04 PM – 3:18 PM\"), and a tone: neutral (the default) for a reference, a status tone when it means a state. The y axis keeps every y marker in view. axis · \"y\" (at a value) or \"x\" (at a time or category). value · One value for a line, [from, to] for a band, in the axis' units. label · Drawn beside it and read out with the chart. tone · \"neutral\" (default), \"accent\", \"success\", \"warning\", \"danger\". Say the meaning in label too. dash · The line's dash pattern in pixels ([6, 4]). Use a marker, not a second series, for a constant: it isn't data, so it stays out of the legend and the tooltip.","code":"Chart label API latency per minute p95 broke the SLO during incident data series p50 format markers axis value tone warning deployedAt Deploy incidentStart incidentEnd Incident danger"},
26
+ {"id":"chart.md#live-data","kind":"section","title":"Live data","page":"Chart","doc":"chart.md","anchor":"live-data","text":"New data flows into the existing chart (uPlot's setData): it never rebuilds, so a signal updated 20 times a second is fine. Build each update as new arrays (the window slides by dropping the oldest point). Pause the stream when the chart is off screen or the tab is hidden. legend=\"live\" shows each series' value at the cursor (the latest value otherwise). For data that changes outside Solid (a socket buffer), the controller's setData does the same as the prop: Any other prop (series, axes, stacking, tooltip) rebuilds the chart in place when it changes: no key needed.","code":"data setData createSignal ChartData initial createEffect running timer setInterval append Date now clearInterval Chart label Five live system signals percent capacity series map width range format Math round legend zoom controller socket tick"},
27
+ {"id":"chart.md#zoom-and-selection","kind":"section","title":"Zoom and selection","page":"Chart","doc":"chart.md","anchor":"zoom-and-selection","text":"Dragging across the plot zooms the x axis (zoom, on by default); a double-click zooms back out. onZoom reports the range after a zoom and null when it resets; the controller's resetZoom resets it from a button. Streaming data keeps the zoom. For a brush that selects a range without zooming (to filter a table, say), set zoom={false} and onSelect: it receives the dragged { min, max } and the brush clears.","code":"range setRange createSignal ChartRange chart ChartController Show when Button size onClick resetZoom Reset zoom Chart label API latency per minute data series p50 p95 onZoom controller"},
28
+ {"id":"chart.md#tooltip-and-cursor","kind":"section","title":"Tooltip and cursor","page":"Chart","doc":"chart.md","anchor":"tooltip-and-cursor","keywords":"custom tooltip, tooltip content, tooltip render, cursor callback, hover callback, crosshair, highlight series, focus series, dim other series, tooltip clipped, tooltip overflow","text":"The tooltip follows the pointer and the keyboard's cursor. It renders in the top layer (a manual popover, still inside the chart in the DOM, so its theme and tokens reach it): a card with overflow: hidden, a scrolling dialog body or a stacking context never cuts it off. It sits beside the cursor, flips to the other side where it would leave the viewport, and slides along the cursor at the top and bottom edges. tooltip={{ render }} puts your own content in the box, in place of the heading and the rows: a total, shares, a note. render is called once while the tooltip is open with an accessor for the ChartPoint under the cursor; read it in your JSX and the content follows the cursor. The box, its placement and the keyboard stay the chart's. A ChartPoint is what's under the cursor: index · number · The index into the data arrays. x · number · The x value (Unix seconds on a time axis, the index on a category axis). xText · string · The x value as the tooltip heading writes it. series · ChartPointSeries[] · Every series in order, hidden ones included: label, value (its own value, not a stack's running total; null where it has no reading), text (the value formatted), color (CSS, for your own swatch) and shown. focused · number | null · The focused series (an index into series): the pointer is on it, or its legend entry is hovered or focused. onCursor reports the same point to your code whenever the cursor moves to another point or the focused series changes, and null when it leaves: a readout above the chart, your own legend, the matching row of a table. It fires for the pointer, the keyboard and a ChartGrid's shared cursor, and not at all until the cursor has been somewhere. With two or more lines or areas side by side, the pointer near one focuses it: the others fade, and the tooltip sets its row apart. Hovering or focusing a legend entry focuses its series too, for any type (bars and stacks are focused from the legend only, since the pointer's distance to a bar's top says little about which bar it's on). focus={false} turns both off. A ChartGrid's charts focus each on their own.","code":"Chart ChartPoint zsherman charts chart For Breakdown point shown series filter total reduce sum value div style display grid gap strong xText deploys each flex span width height background color aria-hidden flex-grow label text Deploys per day environment data stacked Production bar Staging tooltip render setPoint createSignal map join Point the Response time latency p50 p95 onCursor"},
29
+ {"id":"chart.md#controller","kind":"section","title":"Controller","page":"Chart","doc":"chart.md","anchor":"controller","text":"controller receives a ChartController once the chart mounts, for work that doesn't fit props: data from outside Solid, ranges set from your own controls, uPlot's own API. setData(data) · Replace the data without rebuilding the chart (the same as new data). setXRange({ min, max }) · Zoom the x axis to a range (reported through onZoom). setYRange({ min, max }) · Fix the y axis to a range until the data changes. resetZoom() · Fit the x axis to the data again (reported as onZoom(null)). uplot() · The uPlot instance, or null before mount and on the server. A ChartRange is { min: number; max: number } in x units (Unix seconds on a time axis). For your own drawing, pass uPlot plugins or hooks; they're added after the chart's own."},
30
+ {"id":"chart.md#colors","kind":"section","title":"Colors","page":"Chart","doc":"chart.md","anchor":"colors","text":"Series take the chart tokens in order: --sui-chart-1 (blue), -2 (orange), -3 (aqua), -4 (yellow), -5 (magenta), -6 (green), -7 (violet), -8 (red), each a light and a dark value, chosen so neighbours stay apart for color-blind readers. A series keeps its color when others are hidden, so color follows the series, not its position on screen. Pick a series color by token name (color: \"chart-3\") to keep it themed; any CSS color works. Override a token for your brand like any kit token::root { --sui-chart-1: oklch(0.55 0.14 160); } (both schemes: light-dark(…, …)). Past eight series, fold the rest into \"Other\" or split the chart; never generate a ninth hue. Text never wears a series color: labels and values use the kit's text colors, with the series' swatch beside them. Status colors (--sui-success, --sui-danger) mean states, not series. In light mode, chart-3, -4 and -5 sit under 3:1 against the surface: a chart using them keeps its legend and offers its values as a table."},
31
+ {"id":"chart.md#words","kind":"section","title":"Words","page":"Chart","doc":"chart.md","anchor":"words","text":"The chart's own strings (the keyboard hint after the plot's name, the legend list's name) take labels={{ keyboardHint, legend }}, or app-wide the kit's LocaleProvider messages={{ chart: { … } }}. Numbers and dates follow LocaleProvider's locale."},
32
+ {"id":"chart.md#accessibility","kind":"section","title":"Accessibility","page":"Chart","doc":"chart.md","anchor":"accessibility","text":"The plot is an image named by label (and description, if set). Write the finding into it, not just the metric. Labeled markers are read after it. With a tooltip, the plot is focusable: Left and Right move the cursor one point (Home and End to the ends, Escape to clear), the tooltip follows, and a polite live region reads the x value and each visible series' value. A custom render changes only what's seen: the live region still reads the values. The legend is a list of toggle buttons (aria-pressed), outside the image, each named by its series. A canvas exposes nothing else. When people need the values, put them in a table or text next to the chart (the \"with a data table\" example uses the kit's Table). Separate series by more than hue where it matters: dash, points, or the legend's names."},
33
+ {"id":"chart.md#gotchas","kind":"section","title":"Gotchas","page":"Chart","doc":"chart.md","anchor":"gotchas","text":"x in milliseconds draws a chart in the year 58,000: divide by 1000. One series entry per y array, in the same order: the entry at index i describes data[i + 1]. The chart fills its container's width; a container with no width (display: none, an unmeasured flex item) draws nothing until it gets one. Canvas text uses the chart's font family and size; a web font that loads later redraws it. tooltip.render gets an accessor: read point() inside your JSX (<Breakdown point={point()} />), not once at the top of render, or the content stays on the first point."},
34
+ {"id":"chart.md#api-reference","kind":"section","title":"API reference","page":"Chart","doc":"chart.md","anchor":"api-reference","text":""},
35
+ {"id":"donut.md","kind":"page","title":"Donut","page":"Donut","doc":"donut.md","entry":"@zsherman/charts/donut","keywords":"donut, pie chart, doughnut, ring chart, part to whole, breakdown, share, distribution, legend, other slice","text":"Part-to-whole as a ring of slices: revenue by region, traffic by channel, tickets by reason. The total sits in the centre, and the legend list beside the ring carries every value and share: hovering or focusing a row highlights its slice (and the reverse), and with onSelect the rows filter the rest of the page. It's plain SVG, so it renders on the server."},
36
+ {"id":"donut.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Donut","doc":"donut.md","anchor":"usage-guidelines","text":"Use it for one whole split into a few categories, when the share is the point. Three to six slices read best. To rank many categories, use a Bar list; to compare wholes over time, a stacked Chart; for a whole on one line, a Segmented bar. Name it with label: what the whole is. The ring's accessible name is the label, the total, then every slice's share, written from the data (\"Revenue by region, Q3 2026, Total $1.2M: North America 40%, EMEA 32%, …\"). Keep the legend (it's on by default): it's where values are written and how slices are read. Don't add a tooltip. Slices are drawn in the order of data, from the top, clockwise. Sort the data largest first unless the categories have an order of their own."},
37
+ {"id":"donut.md#anatomy","kind":"section","title":"Anatomy","page":"Donut","doc":"donut.md","anchor":"anatomy","text":"Each category is a DonutDatum: label · string · The category (\"EMEA\"). value · number | null · Its amount. Missing, zero or negative draws no slice; the legend row stays, at 0. key · string · Identifies the category for selected when labels repeat. Defaults to label. color · ChartColor · A chart token (\"chart-3\") or any CSS color. Defaults to the next chart token among the drawn slices; set it to keep a category's color when the data changes. data · T · Your own data, handed back to onSelect (in the slice's items). What renders: a root div (data-slot=\"donut\", aria-busy while loading) with the figure (donut-figure, role=\"img\" named from the data) holding the svg of slices (donut-slice, data-index, data-active while highlighted; donut-track when empty or loading) and the centre (donut-center, hidden from assistive technology), then the legend (donut-legend, a ul of donut-legend-item rows, each a button with onSelect).","code":"Donut label data value color size thickness gap center legend maxSlices format onSelect slice selected EMEA loading labels total other empty"},
38
+ {"id":"donut.md#legend-and-highlight","kind":"section","title":"Legend and highlight","page":"Donut","doc":"donut.md","anchor":"legend-and-highlight","text":"Hovering a legend row, or focusing it when rows are buttons, highlights its slice: the others dim and the centre shows that slice's value, then its share and label (\"16% · Paid social\"). The value is sized to fit the hole. Hovering a slice highlights its row; the pointer wins over the focus, and the focus over the selection. With onSelect, each row is a toggle button named \"Label, value, share\" (clicking a slice selects too). Pass selected (the category's key, or its label) so the chosen row is pressed and its slice stays highlighted; null or nothing means none is chosen. A selected category that is folded into \"Other\" marks \"Other\". onSelect receives a DonutSlice: its key, label, value, share (0 to 1), color, index, whether it's other, and items, the data behind it (one category, or every category folded into \"Other\"). Without onSelect the rows are plain list items: hover still highlights, and the values are all written in the list, so nothing is lost for keyboard users.","code":"Donut zsherman charts donut createSignal channel setChannel label Signups last days data signups selected onSelect slice current"},
39
+ {"id":"donut.md#many-categories","kind":"section","title":"Many categories","page":"Donut","doc":"donut.md","anchor":"many-categories","text":"Past maxSlices (8 by default, the number of chart colors), the largest categories keep their slices and the rest fold into one \"Other\" slice in a gray, last. Its legend row lists what it holds, with each share (\"India 3.2%, Netherlands 1.8%, …\"), so every category stays in the page."},
40
+ {"id":"donut.md#your-own-legend-placement","kind":"section","title":"Your own legend placement","page":"Donut","doc":"donut.md","anchor":"your-own-legend-placement","text":"Children replace the built-in legend. Place a DonutLegend among them (it must be inside the Donut): with a heading, or without shares (share={false}). center replaces the centre's content.","code":"Donut DonutLegend zsherman charts donut label Seats role Team plan data seats center strong div style flex rem span use share"},
41
+ {"id":"donut.md#compact","kind":"section","title":"Compact","page":"Donut","doc":"donut.md","anchor":"compact","text":"Under 80px the donut has no centre: a mark beside text, in a table cell or a list row. legend={false} hides the list from sight but keeps it in the page for assistive technology, so the values are still there; name the donut for what it shows and write the key figure in the text beside it. With legend={false} the slices aren't clickable, since a keyboard couldn't reach them; a DonutLegend placed in children still offers the choice.","code":"Donut label checkout-web tests size legend data Passed value color sui-success Failed sui-danger"},
42
+ {"id":"donut.md#colors","kind":"section","title":"Colors","page":"Donut","doc":"donut.md","anchor":"colors","text":"Drawn slices take the chart colors in order (--sui-chart-1, --sui-chart-2, …), the same as Chart's series, so no two slices share a color; \"Other\" is a gray. Folding or new data can move a category to another color: pass color for categories that must keep theirs when the data changes. maxSlices defaults to 8, which with \"Other\" stays within the eight chart colors. color on a datum takes a chart token (\"chart-3\") or any CSS color, such as a status token for a breakdown by state (\"var(--sui-danger)\"). Slices keep their colors in forced-colors mode (they're data); the legend names them."},
43
+ {"id":"donut.md#states","kind":"section","title":"States","page":"Donut","doc":"donut.md","anchor":"states","text":"Empty: no data, or nothing above 0. An empty ring in the track color with \"No data\" in the centre (labels.empty), and the name ends in it. Categories at 0 keep their legend rows. Loading: loading draws a skeleton ring and skeleton legend rows that keep the layout, sets aria-busy on the root, and names the ring \"…: Loading\". The pulse stops under reduced motion. One dominant value: every slice above 0 keeps at least 2px of arc (the room comes out of the larger slices), and the legend says how small (\"<0.1%\")."},
44
+ {"id":"donut.md#formats","kind":"section","title":"Formats","page":"Donut","doc":"donut.md","anchor":"formats","text":"Values follow the kit's locale (LocaleProvider): full below a total of 10,000 and compact above (93.6K), the same in the centre and the legend. Pass format for currency or units. Shares have one decimal under 10%, none above, and \"<0.1%\" for a sliver."},
45
+ {"id":"donut.md#accessibility","kind":"section","title":"Accessibility","page":"Donut","doc":"donut.md","anchor":"accessibility","text":"The ring is an image (role=\"img\") named from the data: the label, the total and each slice's share. The centre is visual only. The legend list is always in the page (visible, or for assistive technology only with legend={false}), so every value can be read. With onSelect, the legend rows are buttons, each a tab stop named \"Label, value, share\", pressed when selected. Focusing one shows it in the centre."},
46
+ {"id":"donut.md#words","kind":"section","title":"Words","page":"Donut","doc":"donut.md","anchor":"words","text":"total, other, empty and loading take labels, or app-wide the kit's LocaleProvider messages={{ donut: { … } }}."},
47
+ {"id":"donut.md#gotchas","kind":"section","title":"Gotchas","page":"Donut","doc":"donut.md","anchor":"gotchas","text":"Negative and missing values count as 0; a donut can't show a negative part. Use a bar Chart. Shares are rounded on their own, so they can add up to 99% or 101%. selected matches a category by its key (or label); \"Other\" is matched by its own key, the labels.other word, or by any category folded into it."},
48
+ {"id":"donut.md#api-reference","kind":"section","title":"API reference","page":"Donut","doc":"donut.md","anchor":"api-reference","text":""},
49
+ {"id":"heat-graph.md","kind":"page","title":"Heat graph","page":"Heat graph","doc":"heat-graph.md","entry":"@zsherman/charts/heat-graph","keywords":"heatmap, calendar heatmap, contribution graph, activity graph, github graph, punch card","text":"A calendar of daily counts, one cell per day in week columns, shaded by level: which days and weekdays are busy across weeks or months. It's plain DOM (no canvas), so it renders on the server. It's a grid with one tab stop: the arrow keys move by day and week, each day is named with its count and date, and the tooltip follows both the pointer and the focus."},
50
+ {"id":"heat-graph.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Heat graph","doc":"heat-graph.md","anchor":"usage-guidelines","text":"Use it for daily counts over weeks or months, when the question is which days and weekdays are busy: contributions, deploys, support tickets, sessions. Name it with label: the measure, the period and the takeaway (\"Commits in 2026: 1,204, busiest in the spring\"). Put the key numbers in text beside it too; shade isn't a number. Give the count its unit with labels.count (\"12 commits\"): every day's name and tooltip use it. Set start and end for a fixed period (a year, the last 12 weeks), so the grid doesn't depend on which days have data and an empty period still draws. For values between pairs of things (not days), use a Heat matrix; for exact values or a trend over time, a Chart; for one number's shape in a stat tile, a Sparkline."},
51
+ {"id":"heat-graph.md#anatomy","kind":"section","title":"Anatomy","page":"Heat graph","doc":"heat-graph.md","anchor":"anatomy","text":"What renders: a root div (data-slot=\"heat-graph\") with the month names (heat-graph-months, hidden from assistive technology), the grid (heat-graph-grid, role=\"grid\" named by label) of seven rows, one per weekday, each holding a gridcell per day (data-date, data-level 0–4) with its mark (heat-graph-mark), then the legend (heat-graph-legend) and the tooltip (heat-graph-tooltip). Weekday names (Mon, Wed, Fri) sit at the start of their rows.","code":"HeatGraph label data date count start end weekStart monday thresholds color chart-1 shape rounded sizeEncoding fixed cellSize cellGap monthLabels dayLabels legend onSelectDay day labels less more"},
52
+ {"id":"heat-graph.md#levels-and-colors","kind":"section","title":"Levels and colors","page":"Heat graph","doc":"heat-graph.md","anchor":"levels-and-colors","text":"A day's level is 0 with no activity, then 1 to 4 by thresholds: the count at or above each bound. The default bounds are quarters of the busiest day in the period ([1, 4, 7, 10] when the busiest day has 12; one level per count up to 4). Fix thresholds when graphs side by side must share a scale, or when the levels mean something (\"10 or more is a busy day\"). The ramp is one hue, light to dark: level 0 is the muted surface, levels 1–3 wash color over it (30%, 55%, 78%), level 4 is the color itself. color takes a chart token (\"chart-3\") or any CSS color; the ramp follows the light and dark schemes. Levels keep their colors in forced-colors mode (they're data); the focus ring follows the system."},
53
+ {"id":"heat-graph.md#size-encoding","kind":"section","title":"Size encoding","page":"Heat graph","doc":"heat-graph.md","anchor":"size-encoding","text":"sizeEncoding=\"value\" sizes each mark by its count as well as its shade: the mark's area is proportional to the count, from a small dot at zero to the full cell on the busiest day. With shape=\"circle\" the days read as bubbles. The whole cell stays the hover and click target."},
54
+ {"id":"heat-graph.md#layout","kind":"section","title":"Layout","page":"Heat graph","doc":"heat-graph.md","anchor":"layout","text":"Without cellSize, the cells share the root's width (a year of 53 weeks needs about 700px for readable cells). With it, each cell is that many pixels and the graph takes its own width (max-content): put it in a scrolling container (overflow-x: auto) where the space is narrower, with about 4px of padding so the focused day's ring isn't cut off at the edges. cellGap sets the space between cells (3px). The first column starts on the week's first day, so a period that starts midweek leaves the days before it empty."},
55
+ {"id":"heat-graph.md#keyboard","kind":"section","title":"Keyboard","page":"Heat graph","doc":"heat-graph.md","anchor":"keyboard","text":"Tab · Into the grid, on the latest day (or the last one focused). ↑ / ↓ · The day before or after. ← / → · The same weekday a week earlier or later (mirrored in right-to-left text). Home / End · The first or last day of the period. Enter, Space · onSelectDay with the focused day. Escape · Hide the tooltip."},
56
+ {"id":"heat-graph.md#accessibility","kind":"section","title":"Accessibility","page":"Heat graph","doc":"heat-graph.md","anchor":"accessibility","text":"The grid is named by label; each day is a gridcell named with its count and full date (\"12 commits, Wednesday, March 4, 2026\"), so the shade is never the only way to read a day. Month and weekday names and the legend are hidden from assistive technology: every day's name says its date and count already. The tooltip repeats the day's name for pointer and keyboard users; it isn't announced. Keep the takeaway in label and the key numbers in text nearby: a year is 365 days to step through."},
57
+ {"id":"heat-graph.md#words","kind":"section","title":"Words","page":"Heat graph","doc":"heat-graph.md","anchor":"words","text":"The legend's ends and a day's count in words take labels={{ less, more, count }}, or app-wide the kit's LocaleProvider messages={{ heatGraph: { … } }}. count(n, formatted) receives the count and the count formatted in the locale. Month, weekday and date names, and the default week start, follow LocaleProvider's locale."},
58
+ {"id":"heat-graph.md#gotchas","kind":"section","title":"Gotchas","page":"Heat graph","doc":"heat-graph.md","anchor":"gotchas","text":"Dates are calendar days: \"2026-03-04\" is March 4 everywhere, and a Date is read as its local day. Pass days, not timestamps in UTC that may fall on the day before in the user's time zone. Counts must be numbers: a day missing from data counts as 0. With fluid cells in a narrow container, the cells get small: set cellSize and scroll instead."},
59
+ {"id":"heat-graph.md#api-reference","kind":"section","title":"API reference","page":"Heat graph","doc":"heat-graph.md","anchor":"api-reference","text":""},
60
+ {"id":"heat-matrix.md","kind":"page","title":"Heat matrix","page":"Heat matrix","doc":"heat-matrix.md","entry":"@zsherman/charts/heat-matrix","keywords":"heat matrix, heatmap, heat map table, matrix, confusion matrix, correlation, from to, route latency, region to region, pairwise, cross table, pivot, cohort","text":"A table of values between two sets of things (routes from one region to another, services by hour), each cell shaded on a five-step heat scale from cool to hot, with its value written on it. A real table: the headers name every cell for assistive technology. It's plain DOM, so it renders on the server."},
61
+ {"id":"heat-matrix.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Heat matrix","doc":"heat-matrix.md","anchor":"usage-guidelines","text":"Use it when each value belongs to a pair (from × to, service × hour, cohort × week) and the question is which pairs stand out. The shade finds them; the written value says how much. Name it with label: what the cells measure, between what, over which period. Write the unit into format (\"14.5 ms\"), so every cell and the legend carry it. Higher is hotter: the scale is for values where more is worse (latency, loss, errors, load). For a value where more is better, show its shortfall instead (the error rate, not the success rate). Fix thresholds when the shades mean something (\"over 20 ms is bad\") or when matrices side by side must share a scale. Without them, the five steps split the data's range evenly, so the hottest cell is always red, even on a calm day. A pair of a thing with itself (a route to its own region) usually says nothing: muteDiagonal draws it muted and leaves it out of the scale. Keep it to a few dozen columns. Past what fits, it scrolls sideways (and takes focus, so the keyboard can scroll it); for values over many time steps, a State timeline or a Chart reads better."},
62
+ {"id":"heat-matrix.md#anatomy","kind":"section","title":"Anatomy","page":"Heat matrix","doc":"heat-matrix.md","anchor":"anatomy","text":"What renders: a root div (data-slot=\"heat-matrix\") with the scroller (heat-matrix-scroller: a focusable region named by label only while it scrolls) holding a table (heat-matrix-table, named by label): the corner cell (heat-matrix-corner), the column headers (heat-matrix-column, th scope=\"col\"), and per row a row header (heat-matrix-row, th scope=\"row\") and the cells (heat-matrix-cell, with data-step 0–5 and data-active while hovered). Under it, the legend (heat-matrix-legend, a list of the steps), or heat-matrix-empty when there are no rows or columns.","code":"HeatMatrix label rows columns values corner format thresholds muteDiagonal legend cellHeight labels missing empty"},
63
+ {"id":"heat-matrix.md#the-heat-scale","kind":"section","title":"The heat scale","page":"Heat matrix","doc":"heat-matrix.md","anchor":"the-heat-scale","text":"Five steps, from pale yellow through amber and orange to red: --sui-chart-heat-1 … --sui-chart-heat-5, each with a light and a dark value (a little dimmer in dark mode). Values on steps 1–4 are written in --sui-chart-heat-text, on step 5 in --sui-chart-heat-text-inverse; every pair is held to 4.5:1 in both schemes. Override the steps like any token, keeping their text readable: A cell's step comes from thresholds, the lower bounds of steps 2 to 5: a value below the first is step 1, at or above the last is step 5. The default bounds split the range of the values (not counting muted or missing cells) into five even steps; when every value is the same, all are step 1 and the legend is left out. Missing values (null, undefined, NaN) and muted cells are step 0: the muted surface, a dash, and \"No data\" for assistive technology.","code":"root sui-chart-heat-5 oklch"},
64
+ {"id":"heat-matrix.md#accessibility","kind":"section","title":"Accessibility","page":"Heat matrix","doc":"heat-matrix.md","anchor":"accessibility","text":"It's a table named by label, with real column and row headers, so a screen reader announces \"vultr-af-south, vultr-us-west-sea, 32.6 ms\" as it moves through the cells. Shade is never the only cue: every value is written. Long column names wrap; long row names are cut short with an ellipsis, the full text in a title. When the columns don't fit, the scroller becomes a focusable region named by label, so the arrow keys scroll it. Hovering a cell rings it and sets its row and column headers apart. The shades keep their colors in forced-colors mode (they're data), with their text."},
65
+ {"id":"heat-matrix.md#words","kind":"section","title":"Words","page":"Heat matrix","doc":"heat-matrix.md","anchor":"words","text":"missing, empty and legend take labels, or app-wide the kit's LocaleProvider messages={{ heatMatrix: { … } }}. Numbers follow LocaleProvider's locale."},
66
+ {"id":"heat-matrix.md#gotchas","kind":"section","title":"Gotchas","page":"Heat matrix","doc":"heat-matrix.md","anchor":"gotchas","text":"values[row][column], in the order of rows and columns. A short row leaves the rest of its cells missing. muteDiagonal compares the row's and the column's names: it mutes the cells where they're equal, wherever they are. The default steps follow the data, so the same value can change shade from one day to the next. Fix thresholds for a scale that means the same thing every time."},
67
+ {"id":"heat-matrix.md#api-reference","kind":"section","title":"API reference","page":"Heat matrix","doc":"heat-matrix.md","anchor":"api-reference","text":""},
68
+ {"id":"row-chart.md","kind":"page","title":"Row chart","page":"Row chart","doc":"row-chart.md","entry":"@zsherman/charts/row-chart","keywords":"row chart, horizontal bar chart, horizontal bars, grouped bars, stacked bars, comparison, baseline vs candidate, before and after, A/B, benchmark, breakdown per row, user vs kernel, delta, change","text":"Horizontal bars, one row per category. Grouped, each row has a bar per series under one another, to compare them row by row: a baseline and a candidate, with the change written after it. Stacked, each row is one bar split into its series: user and kernel time, parts of each row's whole. Rows carry a label with a note under it, can sit in groups and can be muted, and a tooltip shows the row on hover or with the arrow keys. It's plain DOM, so it renders on the server."},
69
+ {"id":"row-chart.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Row chart","doc":"row-chart.md","anchor":"usage-guidelines","text":"Use it for a handful of named rows, each with a value per series: benchmarks per host, before and after per region, a cost split per team. Rows with long names and notes read better as rows than as a category axis. layout=\"grouped\" (the default) compares series within each row. Put the reference first (a baseline, \"before\", last month) in tone: \"neutral\", and turn on delta to write the last series' change from it. layout=\"stacked\" splits each row into parts of its whole. The bar's length is the row's total; the tooltip gives each part's share. For one measure ranked largest first (top pages, top customers), use a Bar list; for one whole, a Segmented bar; for values over time or many categories, a Chart. Name it with label: what is compared, by what, and which way is better (\"Participants per vCPU, higher is better\"). Keep it to a few series (two or three grouped, up to five or six stacked) and a few dozen rows. Values below 0 or missing count as 0 and draw no bar; a missing value is written \"–\". A value above 0 always shows a sliver."},
70
+ {"id":"row-chart.md#anatomy","kind":"section","title":"Anatomy","page":"Row chart","doc":"row-chart.md","anchor":"anatomy","text":"series is a list of RowChartSeries, and rows of RowChartRow: series[].label · string · The series' name in the legend, the tooltip and each row's name. series[].note · string · A short note after the name in the legend, in the mono face: a version, a commit. series[].color · ChartColor · A chart token (\"chart-3\") or any CSS color. series[].tone · ChartTone · A status tone instead: \"neutral\" (gray) for a baseline. Ignored when color is set. rows[].label · string · What the row is. Cut short with an ellipsis when long (full text in its title and name). rows[].note · string · A line under the label: a configuration, a region, a size. rows[].values · (number | null)[] · One value per series, in the series' order. rows[].group · string · Rows with the same group sit together; a line separates a group from the next. rows[].muted · boolean · Draws the row a step back: bars mixed into the surface, a lighter label. A base build, a \"before\" row. rows[].colors · (ChartColor | undefined)[] · This row's colors by series, in place of the series' own. rows[].key, rows[].data · string, T · Your own id and data, handed back to valueText and the tooltip's render. Without color or tone, series take the chart colors in order, counting only the series without either (a neutral baseline doesn't use up chart-1). What renders: a root div (data-slot=\"row-chart\") with the legend (row-chart-legend, a list of row-chart-legend-item, notes in row-chart-legend-note), the rows (row-chart-plot, a group named by label, focusable with the tooltip, holding a list row-chart-rows), each row an li (row-chart-row, with data-muted, data-group-start and data-active) with its label (row-chart-label), note (row-chart-note), bars (row-chart-bars: each row-chart-bar, or a stacked bar's row-chart-segments) and the text after them (row-chart-value). The tooltip is row-chart-tooltip, a manual popover in the top layer; row-chart-readout is the polite live region; row-chart-empty replaces the rows when there are none.","code":"RowChart label series note color tone rows values group muted colors key data layout grouped max format delta valueText row value text legend tooltip render labels total keyboardHint empty"},
71
+ {"id":"row-chart.md#grouped-compare-series-row-by-row","kind":"section","title":"Grouped: compare series row by row","page":"Row chart","doc":"row-chart.md","anchor":"grouped-compare-series-row-by-row","text":"Each row has a bar per series, one under the other, on one scale for the whole chart. delta writes the last series' change from the first after its value, \"20.6 (+54.9%)\", in the locale's percent; a row whose first value is missing or 0 has no change to write. The last series' text is set in the body color; the others are muted. rows[].colors draws a row in its own colors, for a kind of row that shouldn't read as one more of the others (bare metal among cloud hosts):","code":"label storm Loopback note values group metal colors chart-7"},
72
+ {"id":"row-chart.md#stacked-parts-of-each-row","kind":"section","title":"Stacked: parts of each row","page":"Row chart","doc":"row-chart.md","anchor":"stacked-parts-of-each-row","text":"layout=\"stacked\" draws one bar per row, its series side by side with 2px between them. The bar's length is the row's total on one scale for the chart; the text after it is the total. The tooltip lists the total, then each part with its value and share. Mute the rows people compare against (muted: true), and pair each with the row it's compared to in a group:","code":"twoDecimals Intl NumberFormat en-US minimumFractionDigits maximumFractionDigits percent style RowChart label Relay vCPU split user space kernel base build layout stacked series User note Rust QUIC crypto Kernel UDP CNI sched color chart-4 rows Gcore Base Skylake Cilium values group gcore muted New format valueText text value row"},
73
+ {"id":"row-chart.md#the-text-after-the-bars","kind":"section","title":"The text after the bars","page":"Row chart","doc":"row-chart.md","anchor":"the-text-after-the-bars","text":"format writes values (the locale's numbers by default, compact from 10,000: 12.9K). valueText replaces the text after each bar (grouped) or each stacked bar, with a RowChartValue: row · RowChartRow<T> · The row. series · number | null · The series' index; null for a stacked row's total. value · number · The value, or the row's total when stacked (missing counts as 0). text · string · What the chart would write: the value, with the change when delta. delta · number | undefined · With delta, on the last series: the change from the first value (0.549 for +54.9%). The text is also read in each row's name, so write it in words a screen reader can say. The chart keeps room after the longest bar for the longest text, so long texts shorten every bar a little."},
74
+ {"id":"row-chart.md#tooltip","kind":"section","title":"Tooltip","page":"Row chart","doc":"row-chart.md","anchor":"tooltip","text":"Hovering a row, or reaching it with the arrow keys, shows its tooltip: the label and note, then each series' value (with the change, grouped; with the total and each share, stacked). It renders in the top layer, so no card or dialog clips it, flipping and sliding to stay on screen. tooltip={false} turns it off (and the rows stop taking focus). tooltip={{ render }} puts your own content in the box. render gets an accessor for the active row's RowChartPoint: row, index, total, totalText and series (each label, value, text, share when stacked, and color). Read it in your JSX:","code":"RowChart RowChartPoint zsherman charts row-chart For Breakdown point div style display grid gap row label note Total totalText vCPU each series text share layout stacked rows tooltip render"},
75
+ {"id":"row-chart.md#side-by-side","kind":"section","title":"Side by side","page":"Row chart","doc":"row-chart.md","anchor":"side-by-side","text":"Two row charts next to each other (capacity, and where the time goes) compare only on their own scales. To compare bar lengths between charts measuring the same thing, give both the same max."},
76
+ {"id":"row-chart.md#accessibility","kind":"section","title":"Accessibility","page":"Row chart","doc":"row-chart.md","anchor":"accessibility","text":"The rows are a group named by label, holding a list. Each row is named in words: \"Gcore eu-central, g1-cpu-4-4 · 16p: Baseline 13.3, Candidate 20.6 (+54.9%)\", or stacked \"Gcore New, Skylake 2.2G: Total 0.77; User vCPU 0.47 (61%), Kernel vCPU 0.30 (39%)\". The visible labels, bars and numbers are hidden from assistive technology so nothing is read twice. With the tooltip, the group is focusable: Up and Down move through the rows (Home and End to the ends, Escape to clear), the tooltip follows, and a polite live region reads the row's name. The legend is a list of the series, named from label (\"…: series\"). Long labels and notes are cut short with an ellipsis; the full text stays in the row's name and in a title. The bar's length isn't the only cue: every value is written after its bar, and a muted row is also named like the others. In right-to-left text (dir=\"rtl\") labels sit on the right and bars grow leftward."},
77
+ {"id":"row-chart.md#words","kind":"section","title":"Words","page":"Row chart","doc":"row-chart.md","anchor":"words","text":"total, keyboardHint, legend and empty take labels, or app-wide the kit's LocaleProvider messages={{ rowChart: { … } }}. Numbers and changes follow LocaleProvider's locale."},
78
+ {"id":"row-chart.md#gotchas","kind":"section","title":"Gotchas","page":"Row chart","doc":"row-chart.md","anchor":"gotchas","text":"values follow the series' order; a row with fewer values than series has the rest missing (\"–\"). Negative values count as 0: the chart draws magnitudes from zero, not differences around it. For a change that goes both ways, write it with delta or valueText. A muted row's bars are mixed into --sui-surface; on a page background that differs much from the surface, they read lighter or darker than you might expect."},
79
+ {"id":"row-chart.md#api-reference","kind":"section","title":"API reference","page":"Row chart","doc":"row-chart.md","anchor":"api-reference","text":""},
80
+ {"id":"segmented-bar.md","kind":"page","title":"Segmented bar","page":"Segmented bar","doc":"segmented-bar.md","entry":"@zsherman/charts/segmented-bar","keywords":"segmented bar, category bar, stacked bar, 100% bar, status breakdown, usage bar, storage, quota, part to whole, progress by status, target marker","text":"One bar split into parts: a breakdown by category or by status that fills the bar (100%), or parts \"used of\" a total, like storage of a quota. A marker can show a target or a limit, and a legend under the bar gives each part's value and share. It's plain DOM, so it renders on the server."},
81
+ {"id":"segmented-bar.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Segmented bar","doc":"segmented-bar.md","anchor":"usage-guidelines","text":"Use it for one whole split into a few parts, read left to right: test results by state, deals by stage, storage by file type. Up to about six parts; past that, fold the small ones into \"Other\" yourself, or use a Bar list to rank them. Name it with label: what the bar shows. The bar's accessible name is the label, then every part's share, written from the data (\"Test results, run 4821: Passed 88%, Flaky 4.2%, Failed 2.3%, Skipped 5.6%\"). Turn the legend on wherever people need the numbers: it's where the values are written. Without it, put the key figures in text near the bar. For several wholes to compare side by side, use a stacked Row chart (one bar per row, with labels and notes) or a stacked Chart (bars over time); for one whole as a ring, a Donut; for a single value of a maximum, the kit's Meter or Progress."},
82
+ {"id":"segmented-bar.md#anatomy","kind":"section","title":"Anatomy","page":"Segmented bar","doc":"segmented-bar.md","anchor":"anatomy","text":"Each part is a SegmentedBarSegment, and marker a SegmentedBarMarker: label · string · The part (\"Passed\"). value · number | null · Its amount. Missing or negative counts as 0: no bar, a legend row at 0. tone · \"neutral\" | \"accent\" | \"info\" | \"success\" | \"warning\" | \"danger\" · A status color, for a breakdown by state. color · ChartColor · A chart token or any CSS color; wins over tone. marker.value · number · Where the tick sits, in the segments' units (of max, or of the total). Not drawn unless it's a finite number. marker.label · string · Its text above the bar, also read at the end of the bar's name. What renders: a root div (data-slot=\"segmented-bar\") with the marker's label (segmented-bar-marker-label, hidden from assistive technology), the bar (segmented-bar-bar, role=\"img\" named from the data) of segments (segmented-bar-segment), the marker's tick (segmented-bar-marker), and the legend (segmented-bar-legend, a ul), or segmented-bar-empty when there are no segments.","code":"SegmentedBar label segments value tone color max marker Warning legend format height labels remaining empty"},
83
+ {"id":"segmented-bar.md#colors-and-tones","kind":"section","title":"Colors and tones","page":"Segmented bar","doc":"segmented-bar.md","anchor":"colors-and-tones","text":"Without color or tone, parts take the chart colors in order (--sui-chart-1, --sui-chart-2, …), the same as Chart's series. For a breakdown by state, set tone: the kit's status colors as Badge uses them (success, warning, danger, info, accent, and a gray neutral for \"skipped\" or \"not started\"). color takes a chart token (\"chart-3\") or any CSS color, and wins over tone. Colors never carry meaning alone: the legend names every part, and the bar's name lists them."},
84
+ {"id":"segmented-bar.md#used-of-a-total","kind":"section","title":"Used of a total","page":"Segmented bar","doc":"segmented-bar.md","anchor":"used-of-a-total","text":"max turns the bar into \"used of\" a total: the parts fill their share of max, the rest stays empty track, and the legend and the name add a row for the rest (labels.remaining, \"Remaining\" by default). A total above max fills the bar.","code":"Intl NumberFormat en-US style unit gigabyte maximumFractionDigits SegmentedBar label Storage used segments Video value Photos Documents Backups max marker Warning labels remaining Free format legend"},
85
+ {"id":"segmented-bar.md#marker","kind":"section","title":"Marker","page":"Segmented bar","doc":"segmented-bar.md","anchor":"marker","text":"marker draws a tick across the bar at value (in the segments' units, of max or of the total) with its label above it: a target, a limit, \"you are here\". The label is centred on the tick and lines up with it near either end. It's read at the end of the bar's name, so write it as a phrase (\"Warning at 90 GB\", \"Goal: 80%\"). A value that isn't a finite number draws no marker. In right-to-left text the parts and the marker run from the right."},
86
+ {"id":"segmented-bar.md#states","kind":"section","title":"States","page":"Segmented bar","doc":"segmented-bar.md","anchor":"states","text":"No segments: the bar is empty track, its name ends in \"No data\" (labels.empty), and the legend's place says so. All zero: the parts draw nothing; the legend keeps a row for each at 0. With max, the rest is 100%. One part far larger than the others: every part above 0 keeps at least 2px of bar, and the legend says how small (\"<0.1%\")."},
87
+ {"id":"segmented-bar.md#formats","kind":"section","title":"Formats","page":"Segmented bar","doc":"segmented-bar.md","anchor":"formats","text":"Values follow the kit's locale (LocaleProvider), full below 10,000 and compact above; pass format for units. Shares have one decimal under 10%, none above, and \"<0.1%\" for a sliver. The legend wraps into columns as the width allows; long labels wrap within their row."},
88
+ {"id":"segmented-bar.md#words","kind":"section","title":"Words","page":"Segmented bar","doc":"segmented-bar.md","anchor":"words","text":"remaining and empty take labels, or app-wide the kit's LocaleProvider messages={{ segmentedBar: { … } }}."},
89
+ {"id":"segmented-bar.md#gotchas","kind":"section","title":"Gotchas","page":"Segmented bar","doc":"segmented-bar.md","anchor":"gotchas","text":"Shares are rounded on their own, so they can add up to 99% or 101%. After eight parts without color or tone, the chart colors repeat: fold the small parts first. Don't use status tones for categories that aren't states (regions, file types): use the chart colors."},
90
+ {"id":"segmented-bar.md#api-reference","kind":"section","title":"API reference","page":"Segmented bar","doc":"segmented-bar.md","anchor":"api-reference","text":""},
91
+ {"id":"sparkline.md","kind":"page","title":"Sparkline","page":"Sparkline","doc":"sparkline.md","entry":"@zsherman/charts/sparkline","keywords":"sparkline, trend line, mini chart, kpi, stat tile, micro chart","text":"A word-sized trend line with no axes, legend or tooltip: the shape of the last days or hours next to the figure it supports, in a stat tile or a table cell. It shows a direction, not values. It's a small SVG, not a canvas chart: it renders on the server, follows the color scheme through CSS, and adds about 1 KiB rather than uPlot."},
92
+ {"id":"sparkline.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Sparkline","doc":"sparkline.md","anchor":"usage-guidelines","text":"Put the number first and the sparkline under or beside it; the sparkline never replaces the figure. Say the trend in label (\"up 12%\"): the line is an image with no values to read. Give it the same period everywhere on a page (30 days in every tile), so tiles compare. Pick one color for the metric (color=\"chart-1\"), or the series color it has in the full chart elsewhere on the page. A falling metric that's bad news is still a line in its series color; say \"down\" in the badge or text, not with red. area adds a wash under the line, for metrics whose volume matters (revenue, traffic). For values people read or compare, use a Chart."},
93
+ {"id":"sparkline.md#anatomy","kind":"section","title":"Anatomy","page":"Sparkline","doc":"sparkline.md","anchor":"anatomy","text":"A div (data-slot=\"sparkline\", role=\"img\" named by label, not focusable) holding an svg stretched to its box: the line (sparkline-line, a non-scaling stroke, so it keeps its width however wide the tile), the optional wash (sparkline-area) and dot (sparkline-dot, with a surface ring). The y range fits the values; there's no zero baseline, so it shows change, not size.","code":"Sparkline label data height color chart-1 area dot"},
94
+ {"id":"sparkline.md#stat-tiles","kind":"section","title":"Stat tiles","page":"Sparkline","doc":"sparkline.md","anchor":"stat-tiles","text":"","code":"Badge zsherman kit badge Card CardContent CardHeader CardTitle card Sparkline charts sparkline size Revenue style display grid gap div flex align-items baseline span font-size sui-text-xl font-weight sui-weight-semibold $48 tone success label last days data revenue color chart-1 area dot height"},
95
+ {"id":"sparkline.md#gotchas","kind":"section","title":"Gotchas","page":"Sparkline","doc":"sparkline.md","anchor":"gotchas","text":"It fills its container's width: inside a flex row, give it room (flex: 1 or a width). null in the values breaks the line there, as in a Chart. With no values it draws nothing: say so in the tile."},
96
+ {"id":"sparkline.md#api-reference","kind":"section","title":"API reference","page":"Sparkline","doc":"sparkline.md","anchor":"api-reference","text":""},
97
+ {"id":"stacked-histogram.md","kind":"page","title":"Stacked histogram","page":"Stacked histogram","doc":"stacked-histogram.md","entry":"@zsherman/charts/stacked-histogram","keywords":"histogram, log volume, events over time, time buckets, stacked bars, range selection, brush, zoom to range, time window","text":"Counts per time bucket, stacked by series: the shape of events over time above a log or record list. Drag across the bars, or hold Shift with the arrow keys, to select a range; the selection card's Zoom hands it to onZoom, and you set the window. It's SVG and DOM (no canvas, no uPlot), so it renders on the server. The arrow keys read each bucket out."},
98
+ {"id":"stacked-histogram.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"usage-guidelines","text":"Use it for event counts over time split by kind, above the list they come from: log lines by level, requests by status, jobs by outcome. It shows the shape and picks a window; the list shows the records. Name it with label: the total, what is counted and the takeaway (\"4,357 log events by level; errors spike after 2:52 PM\"). Pass onZoom when choosing a window should filter the list: set domain to the range it receives, and filter the list the same way. Offer a Reset beside it (zooming back out is yours: set domain back). Order series bottom to top: the one that matters most (errors) on the baseline, where it's easiest to compare. For a continuous measure (latency, CPU) use a Chart; for daily counts over months, a Heat graph; for one service's pass/fail per interval, a Status history; for exact counts, a table."},
99
+ {"id":"stacked-histogram.md#anatomy","kind":"section","title":"Anatomy","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"anatomy","text":"What renders: a root div (data-slot=\"stacked-histogram\") with the plot (stacked-histogram-plot: role=\"application\" with onZoom, else role=\"img\", named by label) holding an SVG with one path per series (stacked-histogram-series), the cursor band (stacked-histogram-band), the selection (stacked-histogram-selection) and the tooltip (stacked-histogram-tooltip); then the time axis (stacked-histogram-axis), the legend (stacked-histogram-legend), the selection card (stacked-histogram-selection-card, a group named \"Selection\" with Clear and Zoom buttons) and a polite live region (stacked-histogram-readout).","code":"StackedHistogram label buckets time values series key color bucketMs _000 domain height onZoom range legend timeZone UTC formatValue labels zoom clear total selection keyboardHint selectHint"},
100
+ {"id":"stacked-histogram.md#data","kind":"section","title":"Data","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"data","text":"time is a bucket's start in milliseconds (Date.UTC(…), date.getTime()), and bucketMs its width in milliseconds: 60_000 for minutes, not 60. Buckets are sorted oldest first. A missing key, a negative or a non-finite count is drawn as 0. Buckets outside domain aren't drawn: pass every bucket and let domain choose, or pass only the window's. A gap in the buckets is a gap in the bars. The bars scale to the busiest bucket in the window, so zooming in rescales them."},
101
+ {"id":"stacked-histogram.md#zoom-and-selection","kind":"section","title":"Zoom and selection","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"zoom-and-selection","text":"With onZoom, a press and drag over the bars selects whole buckets; a click selects one. The selection parks: the bars outside it fade, and the selection card under the axis shows its range and each series' sum, with Clear and Zoom. Drag either edge of a parked selection to resize it. Zoom calls onZoom({ from, to }) (to is the end of the last bucket) and drops the selection; set domain to it. A selection outlives live updates: it's kept in time, not bucket positions, and clipped to the window."},
102
+ {"id":"stacked-histogram.md#keyboard","kind":"section","title":"Keyboard","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"keyboard","text":"Tab · Into the plot (then to the selection card's buttons). ← / → · The previous or next bucket: its range and counts are read out, and the tooltip follows. Home / End · The first or last bucket. Shift + ← / → / Home / End · Extend a selection from where it started (with onZoom). Enter · Zoom to the selection. Escape · Clear the selection; again, the cursor. Time runs left to right in right-to-left text too, as on a chart's axis."},
103
+ {"id":"stacked-histogram.md#accessibility","kind":"section","title":"Accessibility","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"accessibility","text":"The plot is named by label and described by a keyboard hint; with onZoom it's an application, so screen readers pass the keys through. Each bucket the cursor reaches is read out in a polite live region (\"2:00 – 2:01 PM: Errors 0, Warnings 3, Info 27; Total 30\"); a selection reads its range and total. Series never rely on color alone: the tooltip, the card and the readout name them, and the legend lists them. Bars keep their colors in forced-colors mode (they're data); the selection and focus ring use system colors. Give the records themselves (the log list) or a table for exact values: the bars show shape."},
104
+ {"id":"stacked-histogram.md#words","kind":"section","title":"Words","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"words","text":"The card's buttons and name, the total row and the keyboard hints take labels, or app-wide the kit's LocaleProvider messages={{ stackedHistogram: { … } }}. Numbers and times follow LocaleProvider's locale."},
105
+ {"id":"stacked-histogram.md#gotchas","kind":"section","title":"Gotchas","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"gotchas","text":"Set timeZone when the server renders: the server and the browser may sit in different zones and would write different times. Ticks fall on round times in that zone. Keep buckets, series and domain stable between updates (a signal or a memo): a selection is kept across updates, but a new domain clips it. Log levels are states: their colors can be the kit's status colors (var(--sui-danger), var(--sui-warning)); other series take chart tokens."},
106
+ {"id":"stacked-histogram.md#api-reference","kind":"section","title":"API reference","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"api-reference","text":""},
107
+ {"id":"state-timeline.md","kind":"page","title":"State timeline","page":"State timeline","doc":"state-timeline.md","entry":"@zsherman/charts/state-timeline","keywords":"state timeline, status timeline, timeline, swimlanes, lanes, gantt, uptime over time, route health, packet loss over time, service states, discrete states, grafana state timeline","text":"Many rows on one time axis, each a lane of colored states: the loss level of every route over 12 hours, the status of each service over a day, a host's power states. Runs of one state are merged into one segment, so hundreds of readings per row stay light, and a short failure is never drawn thinner than a pixel. A cursor runs through every lane at the pointer, with a tooltip for the row under it; the arrow keys walk rows and segments. It's plain SVG and DOM, so it renders on the server; each row is named with its share of time per state."},
108
+ {"id":"state-timeline.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"State timeline","doc":"state-timeline.md","anchor":"usage-guidelines","text":"Use it for a few to a few dozen things whose state changes over time, when the question is \"which ones, and when\": route health, service status, deploy stages per environment, machines' states. Name it with label: what the rows are, what the states mean, the period. Keep it to a handful of states, listed from calm to severe. Later states draw over earlier ones where a segment is widened to a pixel, so a short failure is never hidden under its neighbours. Map measurements to states yourself (loss over 5% is \"high\") and keep the measurement in value for the tooltip. step is how long one reading lasts. With readings at a fixed interval (a probe a minute), set it to the interval: a missing reading leaves a gap. With readings only when the state changes, set it to the longest a reading may stand for (and range to the period), and each lasts until the next. For one service's recent health as a strip of equal intervals, use a Status history; for values over time, a Chart; for values between pairs, a Heat matrix; for one request's spans as a waterfall, SpanTimeline from @zsherman/kit/span-timeline."},
109
+ {"id":"state-timeline.md#anatomy","kind":"section","title":"Anatomy","page":"State timeline","doc":"state-timeline.md","anchor":"anatomy","text":"time is a Date, milliseconds since the epoch, or an ISO string. state is a state's key, or null for a reading with no data (a gap). Without color or tone, states take the chart colors in order. What renders: a root div (data-slot=\"state-timeline\") with the legend (state-timeline-legend), the plot (state-timeline-plot, a group named by label, focusable with the tooltip) holding a list of rows (state-timeline-rows) whose items (state-timeline-row) carry the label (state-timeline-label, data-active on the active row) and the lane (state-timeline-lane, an SVG with one path per state), then the axis (state-timeline-axis), the cursor line (state-timeline-cursor) and the tooltip (state-timeline-tooltip, a manual popover in the top layer). state-timeline-readout is the polite live region; state-timeline-empty replaces the plot when there are no rows.","code":"StateTimeline label states key tone color rows data time state value note step _000 range start end rowHeight rowGap ticks timeZone UTC formatTime date formatValue legend tooltip labels keyboardHint noData empty"},
110
+ {"id":"state-timeline.md#readings-segments-and-gaps","kind":"section","title":"Readings, segments and gaps","page":"State timeline","doc":"state-timeline.md","anchor":"readings-segments-and-gaps","text":"Each reading lasts until the next one, or until step has passed, whichever comes first, so a reading that comes late by more than a step leaves a gap. Back-to-back readings in the same state merge into one segment: a row of 720 one-minute readings that's mostly \"ok\" draws a handful of rectangles, one path per state. Gaps show the lane's muted surface. Segments are clipped to range.","code":"StateTimeline label Service status November UTC states key Operational tone success down Outage danger rows Checkout data time Date state note Payment provider returned step _000 range timeZone"},
111
+ {"id":"state-timeline.md#tooltip-and-cursor","kind":"section","title":"Tooltip and cursor","page":"State timeline","doc":"state-timeline.md","anchor":"tooltip-and-cursor","text":"Over a lane, a line runs through every lane at the pointer's time and the tooltip shows the row, the time, its state with the reading's value (written with formatValue) and note, and the segment's start, end and length. The tooltip renders in the top layer, so no card or dialog clips it, and stays on screen. tooltip={false} turns it off (and the plot stops taking focus)."},
112
+ {"id":"state-timeline.md#accessibility","kind":"section","title":"Accessibility","page":"State timeline","doc":"state-timeline.md","anchor":"accessibility","text":"The rows are a group named by label, holding a list. Each row is named with its share of time per state: \"Checkout: Operational 97%, Outage 2.8%\" (and \"No data\" for gaps). The lanes, labels and axis are hidden from assistive technology so nothing is read twice. With the tooltip, the plot is focusable: Up and Down choose a row at the same time, Left and Right move to the row's previous or next segment, Home and End to its first and last, Escape clears. The tooltip follows, and a polite live region reads \"Checkout: Outage, 2:02 PM – 2:19 PM\". Colors aren't the only cue: the legend names each state, the tooltip and the readout say it in words, and each row's name gives the shares. Long row names are cut short with an ellipsis; the full text is in the row's name and a title. Time runs left to right in right-to-left text too, as it does on a chart's axis; the labels move to the right."},
113
+ {"id":"state-timeline.md#words","kind":"section","title":"Words","page":"State timeline","doc":"state-timeline.md","anchor":"words","text":"keyboardHint, noData, legend and empty take labels, or app-wide the kit's LocaleProvider messages={{ stateTimeline: { … } }}. Times follow LocaleProvider's locale and timeZone."},
114
+ {"id":"state-timeline.md#gotchas","kind":"section","title":"Gotchas","page":"State timeline","doc":"state-timeline.md","anchor":"gotchas","text":"time in milliseconds, not seconds (unlike Chart's x values). step defaults to the shortest interval between readings across rows. With readings only on change, that's the shortest change, and every longer stretch would become a gap: set step yourself. States are drawn in the order of states: list them calm to severe, so the severe ones are on top."},
115
+ {"id":"state-timeline.md#api-reference","kind":"section","title":"API reference","page":"State timeline","doc":"state-timeline.md","anchor":"api-reference","text":""},
116
+ {"id":"status-history.md","kind":"page","title":"Status history","page":"Status history","doc":"status-history.md","entry":"@zsherman/charts/status-history","keywords":"uptime, status page, health check, monitor, availability, incidents, uptime bars, service status","text":"One bar per check interval, colored by what the check found: healthy, degraded, failed or no data. For the recent health of one service on a monitor card or status page. It's plain DOM, so it renders on the server. It's a grid with one tab stop: the arrow keys move by interval, each bar is named with its time and state, and the tooltip follows both the pointer and the focus."},
117
+ {"id":"status-history.md#usage-guidelines","kind":"section","title":"Usage guidelines","page":"Status history","doc":"status-history.md","anchor":"usage-guidelines","text":"Use it for one service or check over recent intervals, when the question is \"was it up, and when wasn't it\": a monitor card, a status page row, a list of services. Name it with label: what is checked, the period and the result (\"Checkout, last 90 hours: 98.9% uptime, 1 failed hour\"). Put the uptime in text too (summary). Compute the uptime yourself and say how: whether degraded intervals count as up, and whether unknown ones count at all. Give failures a note (\"checkout returned 503 for 14 minutes\"): it's read after the time and state, and shown in the tooltip. For many services or routes on one time axis, use a State timeline; for counts or measurements, a Chart or a Stacked histogram; for daily activity over months, a Heat graph; for one current state, a badge."},
118
+ {"id":"status-history.md#anatomy","kind":"section","title":"Anatomy","page":"Status history","doc":"status-history.md","anchor":"anatomy","text":"What renders: a root div (data-slot=\"status-history\") with the header corners (status-history-header), the grid (status-history-grid, role=\"grid\" named by label) with one row (status-history-bars) of gridcell bars (data-index, data-status), the axis (status-history-axis, hidden from assistive technology), the footer corners (status-history-footer), the legend (status-history-legend) and the tooltip (status-history-tooltip). Empty corners take no space.","code":"StatusHistory label data time status note height gap title summary startLabel endLabel axis legend colors error chart-8 timeZone UTC formatTime date onSelectEntry entry index labels success degraded"},
119
+ {"id":"status-history.md#states","kind":"section","title":"States","page":"Status history","doc":"status-history.md","anchor":"states","text":"success · The check ran and met its target. · --sui-success · Healthy degraded · It worked but missed a target (slow responses). · --sui-warning · Degraded error · It failed, or the service was down. · --sui-danger · Failed unknown · No check ran, or no result arrived: says nothing about health. · a faint neutral · No data colors overrides a state's color with a chart token or any CSS color. Bars keep their colors in forced-colors mode (they're data); the focus ring follows the system."},
120
+ {"id":"status-history.md#layout","kind":"section","title":"Layout","page":"Status history","doc":"status-history.md","anchor":"layout","text":"The bars share the root's width; the gap narrows when they run out of room, so 90 bars fit a phone. time is a Date, milliseconds or an ISO string. Times are written with the clock when intervals are shorter than a day, else as dates; axis writes a date under the first interval of each day (up to five), or times within a single day."},
121
+ {"id":"status-history.md#keyboard","kind":"section","title":"Keyboard","page":"Status history","doc":"status-history.md","anchor":"keyboard","text":"Tab · Into the grid, on the latest interval (or the last one focused). ← / → · The previous or next interval (mirrored in right-to-left text). Home / End · The first or last interval. Enter, Space · onSelectEntry with the focused interval. Escape · Hide the tooltip."},
122
+ {"id":"status-history.md#accessibility","kind":"section","title":"Accessibility","page":"Status history","doc":"status-history.md","anchor":"accessibility","text":"The grid is named by label; each bar is a gridcell named with its time, state and note (\"Nov 17, 2026, 9:00 PM: Failed. checkout returned 503 for 14 minutes\"), so color is never the only way to read a bar. The tooltip repeats the bar's time, state and note for pointer and keyboard users; it isn't announced. legend names the states with their counts: turn it on where people compare services. onSelectEntry works from the keyboard too (Enter or Space on the focused bar)."},
123
+ {"id":"status-history.md#words","kind":"section","title":"Words","page":"Status history","doc":"status-history.md","anchor":"words","text":"The state words take labels, or app-wide the kit's LocaleProvider messages={{ statusHistory: { … } }}. Dates and numbers follow LocaleProvider's locale."},
124
+ {"id":"status-history.md#gotchas","kind":"section","title":"Gotchas","page":"Status history","doc":"status-history.md","anchor":"gotchas","text":"Set timeZone when the server renders, so the server and the browser write the same times. Use unknown, not success, for intervals with no result: a gap in monitoring isn't uptime. Status colors are for states only: don't reuse them for a chart series that isn't a state."},
125
+ {"id":"status-history.md#api-reference","kind":"section","title":"API reference","page":"Status history","doc":"status-history.md","anchor":"api-reference","text":""},
126
+ {"id":"api:chart/Chart","kind":"part","title":"Chart","page":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Chart from @zsherman/charts/chart.","code":"controller cursor data description focus height hooks label labels legend markers onCursor onSelect onZoom padding plugins series stacked syncKey title tooltip x y zoom"},
127
+ {"id":"api:chart/Chart.controller","kind":"prop","title":"controller","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Receives the chart's controller once it mounts: push data, set ranges, reach uPlot. Type: ((controller: ChartController) => void)."},
128
+ {"id":"api:chart/Chart.cursor","kind":"prop","title":"cursor","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Show the cursor line and points on hover. Type: boolean. Default: true."},
129
+ {"id":"api:chart/Chart.data","kind":"prop","title":"data","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"[x,...ys]: x values first, then one array per series. Updates without rebuilding the chart. Type: AlignedData. Required."},
130
+ {"id":"api:chart/Chart.description","kind":"prop","title":"description","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"A longer description read after the label (a trend, the peak). Type: string."},
131
+ {"id":"api:chart/Chart.focus","kind":"prop","title":"focus","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Fade the other series while one is focused: the pointer near a line or an area, or a legend entry hovered or focused (any series type). The tooltip sets the focused series' row apart. Type: boolean. Default: true."},
132
+ {"id":"api:chart/Chart.height","kind":"prop","title":"height","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"The plot's height in pixels, axes included (the legend and title sit outside it). The width follows the container. Type: number. Default: 240."},
133
+ {"id":"api:chart/Chart.hooks","kind":"prop","title":"hooks","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"uPlot hooks of your own. Type: Arrays."},
134
+ {"id":"api:chart/Chart.label","kind":"prop","title":"label","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"What the chart shows, for assistive technology: the metric, the period and the main finding (\"Requests per minute, last hour: steady at about 1,200\"). The canvas has no other name. Type: string. Required."},
135
+ {"id":"api:chart/Chart.labels","kind":"prop","title":"labels","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"The chart's built-in strings, in your words or language (app-wide: LocaleProvider messages.chart). Type: Partial<ChartLabels>."},
136
+ {"id":"api:chart/Chart.legend","kind":"prop","title":"legend","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"The series legend under the plot; each entry toggles its series. \"live\" also shows each value at the cursor (the latest value otherwise). Defaults to on for two or more series. Type: \"live\" | boolean."},
137
+ {"id":"api:chart/Chart.markers","kind":"prop","title":"markers","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Reference lines and bands: a target or a threshold on y, a deploy or an incident on x. The y axis keeps them in view, and their labels are read out after the chart's label. Type: ChartMarker[]."},
138
+ {"id":"api:chart/Chart.onCursor","kind":"prop","title":"onCursor","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Called when the cursor moves to another point, or the focused series changes, with what's under it; null when it leaves the plot. For your own legend, a readout beside the chart, or the matching row of a table. Fires for the keyboard's cursor and a ChartGrid's shared one too. Type: ((point: ChartPoint | null) => void)."},
139
+ {"id":"api:chart/Chart.onSelect","kind":"prop","title":"onSelect","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Called with the dragged x range instead of zooming (brush selection; set zoom={false}). Type: ((range: ChartRange) => void)."},
140
+ {"id":"api:chart/Chart.onZoom","kind":"prop","title":"onZoom","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Called after a zoom with the new x range, and with null when the chart zooms back out. Type: ((range: ChartRange | null) => void)."},
141
+ {"id":"api:chart/Chart.padding","kind":"prop","title":"padding","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Space around the plot in pixels: [top, right, bottom, left]. Type: [number, number, number, number]."},
142
+ {"id":"api:chart/Chart.plugins","kind":"prop","title":"plugins","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"uPlot plugins of your own (annotations, custom drawing). Type: Plugin[]."},
143
+ {"id":"api:chart/Chart.series","kind":"prop","title":"series","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"One entry per y array, in the same order. Type: ChartSeries[]. Required."},
144
+ {"id":"api:chart/Chart.stacked","kind":"prop","title":"stacked","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Stack the series: each sits on the ones before it. The tooltip and legend show each series' own value. Type: boolean."},
145
+ {"id":"api:chart/Chart.syncKey","kind":"prop","title":"syncKey","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Charts with the same key share a cursor. Charts in a ChartGrid share one by default. Type: string."},
146
+ {"id":"api:chart/Chart.title","kind":"prop","title":"title","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"A visible title above the plot. Leave it out when the page already names the chart. Type: Element."},
147
+ {"id":"api:chart/Chart.tooltip","kind":"prop","title":"tooltip","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"The tooltip at the cursor, also driven by the keyboard (arrow keys on the focused plot). Type: boolean | ChartTooltip. Default: true."},
148
+ {"id":"api:chart/Chart.x","kind":"prop","title":"x","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"The x axis: time (the default), numbers or categories. Type: ChartXAxis."},
149
+ {"id":"api:chart/Chart.y","kind":"prop","title":"y","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"The y axis. Type: ChartAxis."},
150
+ {"id":"api:chart/Chart.zoom","kind":"prop","title":"zoom","page":"Chart","parent":"Chart","doc":"chart.md","anchor":"chart-1","entry":"@zsherman/charts/chart","text":"Drag across the plot to zoom the x axis; double-click to zoom out. Type: boolean. Default: true."},
151
+ {"id":"api:sparkline/Sparkline","kind":"part","title":"Sparkline","page":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"Sparkline from @zsherman/charts/sparkline.","code":"area color data dot height label width"},
152
+ {"id":"api:sparkline/Sparkline.area","kind":"prop","title":"area","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"Fill a wash under the line. Type: boolean."},
153
+ {"id":"api:sparkline/Sparkline.color","kind":"prop","title":"color","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"The line's color: a chart token (chart-1 … chart-8) or any CSS color. Type: ChartColor. Default: \"chart-1\"."},
154
+ {"id":"api:sparkline/Sparkline.data","kind":"prop","title":"data","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"The values, oldest first; or [x, y] aligned data when the points aren't evenly spaced. Type: readonly (number | null)[] | AlignedData. Required."},
155
+ {"id":"api:sparkline/Sparkline.dot","kind":"prop","title":"dot","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"Mark the latest value with a dot: where \"now\" is. Type: boolean."},
156
+ {"id":"api:sparkline/Sparkline.height","kind":"prop","title":"height","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"Height in pixels. The width follows the container. Type: number. Default: 32."},
157
+ {"id":"api:sparkline/Sparkline.label","kind":"prop","title":"label","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"The trend in words: the metric, the period and its direction (\"Revenue, last 30 days: up 12%\"). Type: string. Required."},
158
+ {"id":"api:sparkline/Sparkline.width","kind":"prop","title":"width","page":"Sparkline","parent":"Sparkline","doc":"sparkline.md","anchor":"sparkline-1","entry":"@zsherman/charts/sparkline","text":"Line width in pixels. Type: number. Default: 1.5."},
159
+ {"id":"api:chart-grid/ChartGrid","kind":"part","title":"ChartGrid","page":"Chart grid","doc":"chart-grid.md","anchor":"chartgrid","entry":"@zsherman/charts/chart-grid","text":"ChartGrid from @zsherman/charts/chart-grid.","code":"chartHeight columns label minColumnWidth sync"},
160
+ {"id":"api:chart-grid/ChartGrid.chartHeight","kind":"prop","title":"chartHeight","page":"Chart grid","parent":"ChartGrid","doc":"chart-grid.md","anchor":"chartgrid","entry":"@zsherman/charts/chart-grid","text":"Plot height for charts that don't set height. Type: number."},
161
+ {"id":"api:chart-grid/ChartGrid.columns","kind":"prop","title":"columns","page":"Chart grid","parent":"ChartGrid","doc":"chart-grid.md","anchor":"chartgrid","entry":"@zsherman/charts/chart-grid","text":"A fixed number of columns instead (they still shrink to fit). Type: number."},
162
+ {"id":"api:chart-grid/ChartGrid.label","kind":"prop","title":"label","page":"Chart grid","parent":"ChartGrid","doc":"chart-grid.md","anchor":"chartgrid","entry":"@zsherman/charts/chart-grid","text":"Names the panel and its period for assistive technology (\"Network, last hour\"). Type: string. Required."},
163
+ {"id":"api:chart-grid/ChartGrid.minColumnWidth","kind":"prop","title":"minColumnWidth","page":"Chart grid","parent":"ChartGrid","doc":"chart-grid.md","anchor":"chartgrid","entry":"@zsherman/charts/chart-grid","text":"The narrowest a column gets, in pixels: the grid fits as many columns as the width allows. Type: number. Default: 320."},
164
+ {"id":"api:chart-grid/ChartGrid.sync","kind":"prop","title":"sync","page":"Chart grid","parent":"ChartGrid","doc":"chart-grid.md","anchor":"chartgrid","entry":"@zsherman/charts/chart-grid","text":"One cursor for every chart in the grid: point at a moment in one, read it in all. Turn it off when the charts don't share an x axis. Type: boolean. Default: true."},
165
+ {"id":"api:heat-graph/HeatGraph","kind":"part","title":"HeatGraph","page":"Heat graph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"HeatGraph from @zsherman/charts/heat-graph.","code":"cellGap cellSize color data dayLabels end label labels legend monthLabels onSelectDay shape sizeEncoding start thresholds weekStart"},
166
+ {"id":"api:heat-graph/HeatGraph.cellGap","kind":"prop","title":"cellGap","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"Space between cells in pixels. Type: number. Default: 3."},
167
+ {"id":"api:heat-graph/HeatGraph.cellSize","kind":"prop","title":"cellSize","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"A fixed cell size in pixels. Without it, cells share the width (a year needs about 700px). Type: number."},
168
+ {"id":"api:heat-graph/HeatGraph.color","kind":"prop","title":"color","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The ramp's color, from a wash over the muted surface (level 1) to the full color (level 4). Type: ChartColor. Default: \"chart-1\"."},
169
+ {"id":"api:heat-graph/HeatGraph.data","kind":"prop","title":"data","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"One entry per day (entries on the same day add up). Days without one count as 0. Type: readonly HeatGraphDatum[]. Required."},
170
+ {"id":"api:heat-graph/HeatGraph.dayLabels","kind":"prop","title":"dayLabels","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"Weekday names beside the rows (every other one). Type: boolean. Default: true."},
171
+ {"id":"api:heat-graph/HeatGraph.end","kind":"prop","title":"end","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The last day shown. Defaults to the latest day in data. Set both to draw an empty period. Type: string | Date."},
172
+ {"id":"api:heat-graph/HeatGraph.label","kind":"prop","title":"label","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"What the graph shows, for assistive technology: the measure, the period and the takeaway. Type: string. Required."},
173
+ {"id":"api:heat-graph/HeatGraph.labels","kind":"prop","title":"labels","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The graph's words, in your wording or language (app-wide: LocaleProvider messages.heatGraph). Type: Partial<HeatGraphLabels>."},
174
+ {"id":"api:heat-graph/HeatGraph.legend","kind":"prop","title":"legend","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The Less → More legend. Type: boolean. Default: true."},
175
+ {"id":"api:heat-graph/HeatGraph.monthLabels","kind":"prop","title":"monthLabels","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"Month names over the weeks. Type: boolean. Default: true."},
176
+ {"id":"api:heat-graph/HeatGraph.onSelectDay","kind":"prop","title":"onSelectDay","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"Called when a day is clicked or chosen with Enter or Space: open that day's activity. Type: ((day: HeatGraphDay) => void)."},
177
+ {"id":"api:heat-graph/HeatGraph.shape","kind":"prop","title":"shape","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The mark: rounded squares read as a calendar; circle pairs with sizeEncoding=\"value\". Type: \"circle\" | \"rounded\" | \"square\". Default: \"rounded\"."},
178
+ {"id":"api:heat-graph/HeatGraph.sizeEncoding","kind":"prop","title":"sizeEncoding","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"\"value\" sizes each mark by its count too (its area), so magnitude reads without the legend. A zero day keeps a small mark; the whole cell stays the hover and click target. Type: \"fixed\" | \"value\". Default: \"fixed\"."},
179
+ {"id":"api:heat-graph/HeatGraph.start","kind":"prop","title":"start","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The first day shown (\"2026-01-01\" or a Date). Defaults to the earliest day in data. Type: string | Date."},
180
+ {"id":"api:heat-graph/HeatGraph.thresholds","kind":"prop","title":"thresholds","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The lower bounds of levels 1–4, such as [1, 5, 10, 20]. Defaults to quarters of the busiest day. Fix them when graphs side by side must share a scale. Type: [number, number, number, number]."},
181
+ {"id":"api:heat-graph/HeatGraph.weekStart","kind":"prop","title":"weekStart","page":"Heat graph","parent":"HeatGraph","doc":"heat-graph.md","anchor":"heatgraph","entry":"@zsherman/charts/heat-graph","text":"The weekday each column starts on. Defaults to the locale's (Monday in most, Sunday in the US). Type: \"monday\" | \"sunday\"."},
182
+ {"id":"api:stacked-histogram/StackedHistogram","kind":"part","title":"StackedHistogram","page":"Stacked histogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"StackedHistogram from @zsherman/charts/stacked-histogram.","code":"bucketMs buckets domain formatValue height label labels legend onZoom series timeZone"},
183
+ {"id":"api:stacked-histogram/StackedHistogram.bucketMs","kind":"prop","title":"bucketMs","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The width of a bucket in milliseconds (60_000 for minutes). Type: number. Required."},
184
+ {"id":"api:stacked-histogram/StackedHistogram.buckets","kind":"prop","title":"buckets","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"One entry per time bucket, oldest first. Buckets outside domain aren't drawn. Type: readonly HistogramBucket[]. Required."},
185
+ {"id":"api:stacked-histogram/StackedHistogram.domain","kind":"prop","title":"domain","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The time window drawn (to exclusive). Defaults to the buckets' own span; set it to what onZoom chose. Type: HistogramRange."},
186
+ {"id":"api:stacked-histogram/StackedHistogram.formatValue","kind":"prop","title":"formatValue","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"How a count is written. Defaults to the locale's number format. Type: ((value: number) => string)."},
187
+ {"id":"api:stacked-histogram/StackedHistogram.height","kind":"prop","title":"height","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The bars' height in pixels. Type: number. Default: 64."},
188
+ {"id":"api:stacked-histogram/StackedHistogram.label","kind":"prop","title":"label","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"What is counted, for assistive technology: the total and the measure (\"412 log events by level\"). Type: string. Required."},
189
+ {"id":"api:stacked-histogram/StackedHistogram.labels","kind":"prop","title":"labels","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The histogram's words, in your wording or language (app-wide: LocaleProvider messages.stackedHistogram). Type: Partial<StackedHistogramLabels>."},
190
+ {"id":"api:stacked-histogram/StackedHistogram.legend","kind":"prop","title":"legend","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The series names under the axis. On by default for two or more series. Type: boolean."},
191
+ {"id":"api:stacked-histogram/StackedHistogram.onZoom","kind":"prop","title":"onZoom","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"Called with the range a person selected (by dragging, or Shift with the arrow keys) and chose to zoom to. Without it, the histogram only reads out its buckets. Type: ((range: HistogramRange) => void)."},
192
+ {"id":"api:stacked-histogram/StackedHistogram.series","kind":"prop","title":"series","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The stacked series, bottom to top: the first sits on the baseline. Type: readonly HistogramSeries[]. Required."},
193
+ {"id":"api:stacked-histogram/StackedHistogram.timeZone","kind":"prop","title":"timeZone","page":"Stacked histogram","parent":"StackedHistogram","doc":"stacked-histogram.md","anchor":"stackedhistogram","entry":"@zsherman/charts/stacked-histogram","text":"The time zone times are written in and ticks fall on (\"UTC\", \"Europe/Berlin\"). Defaults to the runtime's: set it when the server renders, so server and browser write the same times. Type: string."},
194
+ {"id":"api:status-history/StatusHistory","kind":"part","title":"StatusHistory","page":"Status history","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"StatusHistory from @zsherman/charts/status-history.","code":"axis colors data endLabel formatTime gap height label labels legend onSelectEntry startLabel summary timeZone title"},
195
+ {"id":"api:status-history/StatusHistory.axis","kind":"prop","title":"axis","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Dates under the bars, for a long range without startLabel and endLabel. Type: boolean."},
196
+ {"id":"api:status-history/StatusHistory.colors","kind":"prop","title":"colors","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Each state's color: a chart token (chart-1 … chart-8) or any CSS color. Defaults to the kit's status colors. Type: Partial<Record<StatusState, ChartColor>>."},
197
+ {"id":"api:status-history/StatusHistory.data","kind":"prop","title":"data","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"One entry per interval, oldest first. Each draws one bar; bars are never merged. Type: readonly StatusEntry<T>[]. Required."},
198
+ {"id":"api:status-history/StatusHistory.endLabel","kind":"prop","title":"endLabel","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Below the end: where it ends (\"Now\"). Type: Element."},
199
+ {"id":"api:status-history/StatusHistory.formatTime","kind":"prop","title":"formatTime","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"How an interval's time is written in its name and tooltip. Defaults to the locale's date, and time when intervals are shorter than a day. Type: ((date: Date) => string)."},
200
+ {"id":"api:status-history/StatusHistory.gap","kind":"prop","title":"gap","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Space between bars in pixels (it narrows when the bars run out of room). Type: number. Default: 2."},
201
+ {"id":"api:status-history/StatusHistory.height","kind":"prop","title":"height","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"The bars' height in pixels. Type: number. Default: 32."},
202
+ {"id":"api:status-history/StatusHistory.label","kind":"prop","title":"label","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"The history in words, for assistive technology: what is checked, the period and the result. Type: string. Required."},
203
+ {"id":"api:status-history/StatusHistory.labels","kind":"prop","title":"labels","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"The status words, in your wording or language (app-wide: LocaleProvider messages.statusHistory). Type: Partial<StatusHistoryLabels>."},
204
+ {"id":"api:status-history/StatusHistory.legend","kind":"prop","title":"legend","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"The states shown, each named with its count. Type: boolean."},
205
+ {"id":"api:status-history/StatusHistory.onSelectEntry","kind":"prop","title":"onSelectEntry","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Called when a bar is clicked or chosen with Enter or Space: open that interval's details. Type: ((entry: StatusEntry<T>, index: number) => void)."},
206
+ {"id":"api:status-history/StatusHistory.startLabel","kind":"prop","title":"startLabel","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Below the start: where the range begins (\"90 hours ago\"). Type: Element."},
207
+ {"id":"api:status-history/StatusHistory.summary","kind":"prop","title":"summary","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Above the end: the result (\"99.2% uptime\"). Type: Element."},
208
+ {"id":"api:status-history/StatusHistory.timeZone","kind":"prop","title":"timeZone","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"The time zone times are written in (\"UTC\", \"Europe/Berlin\"). Defaults to the runtime's: set it when the server renders, so server and browser write the same times. Type: string."},
209
+ {"id":"api:status-history/StatusHistory.title","kind":"prop","title":"title","page":"Status history","parent":"StatusHistory","doc":"status-history.md","anchor":"statushistory","entry":"@zsherman/charts/status-history","text":"Above the start: what is checked (\"Checkout\"). Type: Element."},
210
+ {"id":"api:bar-list/BarList","kind":"part","title":"BarList","page":"Bar list","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"BarList from @zsherman/charts/bar-list.","code":"color data format label labelHeader labels limit max onSelect onShowMore selected share shareHeader sort total valueHeader"},
211
+ {"id":"api:bar-list/BarList.color","kind":"prop","title":"color","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The bars' color: a chart token (chart-1 … chart-8) or any CSS color, drawn as a light wash so the label on it stays legible. Type: ChartColor. Default: \"chart-1\"."},
212
+ {"id":"api:bar-list/BarList.data","kind":"prop","title":"data","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The rows. They're ranked by value unless sort says otherwise. Type: readonly BarListItem<T>[]. Required."},
213
+ {"id":"api:bar-list/BarList.format","kind":"prop","title":"format","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"How values are written. Defaults to the locale's numbers, compact from 10,000 (12.9K), as Chart's axes. Type: ((value: number) => string)."},
214
+ {"id":"api:bar-list/BarList.label","kind":"prop","title":"label","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The list's name for assistive technology: what is ranked, by what, over which period (\"Top pages by visitors, last 7 days\"). Type: string. Required."},
215
+ {"id":"api:bar-list/BarList.labelHeader","kind":"prop","title":"labelHeader","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"A header over the labels (\"Page\"). Type: Element."},
216
+ {"id":"api:bar-list/BarList.labels","kind":"prop","title":"labels","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The words, in your wording or language (app-wide: LocaleProvider messages.barList). Type: Partial<BarListLabels>."},
217
+ {"id":"api:bar-list/BarList.limit","kind":"prop","title":"limit","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"Show the first limit rows, and a Show more button for the rest. Type: number."},
218
+ {"id":"api:bar-list/BarList.max","kind":"prop","title":"max","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The value a full bar stands for. Defaults to the largest in data. Pass the whole list's largest when data is part of it (search results, a page of it), so a bar keeps its length as others are left out. Type: number."},
219
+ {"id":"api:bar-list/BarList.onSelect","kind":"prop","title":"onSelect","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"Makes each row a toggle button (for rows with no href): filter the page by the chosen row. Type: ((item: BarListItem<T>, index: number) => void)."},
220
+ {"id":"api:bar-list/BarList.onShowMore","kind":"prop","title":"onShowMore","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"Called by Show more (with limit): open your own view of every row, a dialog with search. Without it, Show more expands the list in place, and the last rows fade out while it's collapsed. Type: (() => void)."},
221
+ {"id":"api:bar-list/BarList.selected","kind":"prop","title":"selected","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The key (or label) of the row that is on, for a filter: its button is pressed and its bar darker. null or nothing: none is on. Type: string | null."},
222
+ {"id":"api:bar-list/BarList.share","kind":"prop","title":"share","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"A column with each row's share of the total (of every row, not only those shown). Type: boolean."},
223
+ {"id":"api:bar-list/BarList.shareHeader","kind":"prop","title":"shareHeader","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"A header over the shares, with share (\"Share\"). Type: Element."},
224
+ {"id":"api:bar-list/BarList.sort","kind":"prop","title":"sort","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The order: largest first, smallest first, or as given. Type: \"ascending\" | \"descending\" | \"none\". Default: \"descending\"."},
225
+ {"id":"api:bar-list/BarList.total","kind":"prop","title":"total","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"The total the shares are of. Defaults to the sum of data. Pass the whole list's total when data is part of it, so a row's share doesn't grow as others are left out. Type: number."},
226
+ {"id":"api:bar-list/BarList.valueHeader","kind":"prop","title":"valueHeader","page":"Bar list","parent":"BarList","doc":"bar-list.md","anchor":"barlist","entry":"@zsherman/charts/bar-list","text":"A header over the values (\"Visitors\"). Type: Element."},
227
+ {"id":"api:segmented-bar/SegmentedBar","kind":"part","title":"SegmentedBar","page":"Segmented bar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"SegmentedBar from @zsherman/charts/segmented-bar.","code":"format height label labels legend marker max segments"},
228
+ {"id":"api:segmented-bar/SegmentedBar.format","kind":"prop","title":"format","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"How values are written in the legend. Defaults to the locale's numbers, compact from 10,000. Type: ((value: number) => string)."},
229
+ {"id":"api:segmented-bar/SegmentedBar.height","kind":"prop","title":"height","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"The bar's height in pixels. Type: number. Default: 8."},
230
+ {"id":"api:segmented-bar/SegmentedBar.label","kind":"prop","title":"label","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"What the bar shows (\"Storage\", \"Test results\"). Its name is this, then each part's share, written from the data. Type: string. Required."},
231
+ {"id":"api:segmented-bar/SegmentedBar.labels","kind":"prop","title":"labels","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"The words, in your wording or language (app-wide: LocaleProvider messages.segmentedBar). Type: Partial<SegmentedBarLabels>."},
232
+ {"id":"api:segmented-bar/SegmentedBar.legend","kind":"prop","title":"legend","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"A legend under the bar: each part's swatch, label, value and share (and the rest of max). Type: boolean."},
233
+ {"id":"api:segmented-bar/SegmentedBar.marker","kind":"prop","title":"marker","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"A tick with its own label: a target or a limit. Type: SegmentedBarMarker."},
234
+ {"id":"api:segmented-bar/SegmentedBar.max","kind":"prop","title":"max","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"The whole, for \"used of total\" (84 GB of 100 GB): the rest stays empty track. Without it, the segments fill the bar (100%). A total above max fills the bar. Type: number."},
235
+ {"id":"api:segmented-bar/SegmentedBar.segments","kind":"prop","title":"segments","page":"Segmented bar","parent":"SegmentedBar","doc":"segmented-bar.md","anchor":"segmentedbar","entry":"@zsherman/charts/segmented-bar","text":"The parts, in order from the start. Type: readonly SegmentedBarSegment[]. Required."},
236
+ {"id":"api:row-chart/RowChart","kind":"part","title":"RowChart","page":"Row chart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"RowChart from @zsherman/charts/row-chart.","code":"delta format label labels layout legend max rows series tooltip valueText"},
237
+ {"id":"api:row-chart/RowChart.delta","kind":"prop","title":"delta","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"Grouped: write the last series' change from the first after its value (\"20.6 (+54.9%)\"), for a baseline and a candidate. Type: boolean."},
238
+ {"id":"api:row-chart/RowChart.format","kind":"prop","title":"format","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"How values are written. Defaults to the locale's numbers, compact from 10,000 (12.9K). Type: ((value: number) => string)."},
239
+ {"id":"api:row-chart/RowChart.label","kind":"prop","title":"label","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The chart's name for assistive technology: what is compared, by what (\"Participants per vCPU, baseline vs candidate\"). Type: string. Required."},
240
+ {"id":"api:row-chart/RowChart.labels","kind":"prop","title":"labels","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The words, in your wording or language (app-wide: LocaleProvider messages.rowChart). Type: Partial<RowChartLabels>."},
241
+ {"id":"api:row-chart/RowChart.layout","kind":"prop","title":"layout","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"grouped: one bar per series, under one another, to compare them row by row (before and after, A and B). stacked: one bar per row split into its series, for parts of a whole (user and kernel time). Type: \"grouped\" | \"stacked\". Default: \"grouped\"."},
242
+ {"id":"api:row-chart/RowChart.legend","kind":"prop","title":"legend","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The series legend above the rows. Defaults to on for two or more series. Type: boolean."},
243
+ {"id":"api:row-chart/RowChart.max","kind":"prop","title":"max","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The value a full-length bar stands for. Defaults to the largest bar (grouped) or row total (stacked). Pass the same max to charts that sit side by side so their bars compare. Type: number."},
244
+ {"id":"api:row-chart/RowChart.rows","kind":"prop","title":"rows","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The rows, top to bottom, in the order given. Type: readonly RowChartRow<T>[]. Required."},
245
+ {"id":"api:row-chart/RowChart.series","kind":"prop","title":"series","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The series, in the order of each row's values. Type: readonly RowChartSeries[]. Required."},
246
+ {"id":"api:row-chart/RowChart.tooltip","kind":"prop","title":"tooltip","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The tooltip on a row: each series' value (and share, stacked) and the total. Also driven by the keyboard (arrow keys on the focused chart). Type: boolean | RowChartTooltip<T>. Default: true."},
247
+ {"id":"api:row-chart/RowChart.valueText","kind":"prop","title":"valueText","page":"Row chart","parent":"RowChart","doc":"row-chart.md","anchor":"rowchart","entry":"@zsherman/charts/row-chart","text":"The text after each bar (grouped) or each stacked bar, in place of the chart's: add a share, a unit, a note. It's also read in each row's name. Type: ((value: RowChartValue<T>) => string)."},
248
+ {"id":"api:heat-matrix/HeatMatrix","kind":"part","title":"HeatMatrix","page":"Heat matrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"HeatMatrix from @zsherman/charts/heat-matrix.","code":"cellHeight columns corner format label labels legend muteDiagonal rows thresholds values"},
249
+ {"id":"api:heat-matrix/HeatMatrix.cellHeight","kind":"prop","title":"cellHeight","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"A cell's height in pixels. Type: number. Default: 32."},
250
+ {"id":"api:heat-matrix/HeatMatrix.columns","kind":"prop","title":"columns","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The column headers, start to end (\"to\"). Type: readonly string[]. Required."},
251
+ {"id":"api:heat-matrix/HeatMatrix.corner","kind":"prop","title":"corner","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"Text in the top corner, over the row headers: what the rows and columns are (\"from \\\\ to\"). Type: Element."},
252
+ {"id":"api:heat-matrix/HeatMatrix.format","kind":"prop","title":"format","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"How values are written in the cells and the legend. Defaults to the locale's numbers. Type: ((value: number) => string)."},
253
+ {"id":"api:heat-matrix/HeatMatrix.label","kind":"prop","title":"label","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The table's name: what the cells measure, between what, over which period (\"Route RTT, peak increase\"). Type: string. Required."},
254
+ {"id":"api:heat-matrix/HeatMatrix.labels","kind":"prop","title":"labels","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The words, in your wording or language (app-wide: LocaleProvider messages.heatMatrix). Type: Partial<HeatMatrixLabels>."},
255
+ {"id":"api:heat-matrix/HeatMatrix.legend","kind":"prop","title":"legend","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The scale's steps and their ranges under the matrix. Type: boolean. Default: true."},
256
+ {"id":"api:heat-matrix/HeatMatrix.muteDiagonal","kind":"prop","title":"muteDiagonal","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"Leave the cells where a row meets the column of the same name (a route to itself) out of the scale: they're drawn muted, and their values don't set the default steps. Type: boolean."},
257
+ {"id":"api:heat-matrix/HeatMatrix.rows","kind":"prop","title":"rows","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The row headers, top to bottom (\"from\"). Type: readonly string[]. Required."},
258
+ {"id":"api:heat-matrix/HeatMatrix.thresholds","kind":"prop","title":"thresholds","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The lower bounds of steps 2–5 of the heat scale, such as [5, 10, 15, 20]. Defaults to five even steps between the smallest and the largest value. Fix them when the shades mean something (over 20 ms is bad) or when matrices side by side must share a scale. Type: [number, number, number, number]."},
259
+ {"id":"api:heat-matrix/HeatMatrix.values","kind":"prop","title":"values","page":"Heat matrix","parent":"HeatMatrix","doc":"heat-matrix.md","anchor":"heatmatrix","entry":"@zsherman/charts/heat-matrix","text":"The values, one array per row with one value per column (values[row][column]); null for none. Type: readonly (readonly (number | null | undefined)[])[]. Required."},
260
+ {"id":"api:state-timeline/StateTimeline","kind":"part","title":"StateTimeline","page":"State timeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"StateTimeline from @zsherman/charts/state-timeline.","code":"formatTime formatValue label labels legend range rowGap rowHeight rows states step ticks timeZone tooltip"},
261
+ {"id":"api:state-timeline/StateTimeline.formatTime","kind":"prop","title":"formatTime","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"How a time is written in the tooltip and the keyboard readout. Type: ((date: Date) => string)."},
262
+ {"id":"api:state-timeline/StateTimeline.formatValue","kind":"prop","title":"formatValue","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"How a sample's value is written in the tooltip (\"2.4% loss\"). Type: ((value: number) => string)."},
263
+ {"id":"api:state-timeline/StateTimeline.label","kind":"prop","title":"label","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The chart's name for assistive technology: what the rows are, what the states mean, the period. Type: string. Required."},
264
+ {"id":"api:state-timeline/StateTimeline.labels","kind":"prop","title":"labels","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The words, in your wording or language (app-wide: LocaleProvider messages.stateTimeline). Type: Partial<StateTimelineLabels>."},
265
+ {"id":"api:state-timeline/StateTimeline.legend","kind":"prop","title":"legend","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The states legend above the lanes. Type: boolean. Default: true."},
266
+ {"id":"api:state-timeline/StateTimeline.range","kind":"prop","title":"range","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The period shown, [start, end]. Defaults to the first reading to the end of the last. Type: readonly [string | number | Date, string | number | Date]."},
267
+ {"id":"api:state-timeline/StateTimeline.rowGap","kind":"prop","title":"rowGap","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"Space between lanes in pixels. Type: number. Default: 4."},
268
+ {"id":"api:state-timeline/StateTimeline.rowHeight","kind":"prop","title":"rowHeight","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"Each lane's height in pixels. Type: number. Default: 14."},
269
+ {"id":"api:state-timeline/StateTimeline.rows","kind":"prop","title":"rows","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The rows, top to bottom. Type: readonly StateTimelineRow<T>[]. Required."},
270
+ {"id":"api:state-timeline/StateTimeline.states","kind":"prop","title":"states","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The states, from calm to severe. Each sample's state is one of their keys. Type: readonly StateTimelineState[]. Required."},
271
+ {"id":"api:state-timeline/StateTimeline.step","kind":"prop","title":"step","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"How long one reading lasts, in milliseconds: a reading later than this after the last leaves a gap. Defaults to the shortest interval between readings. Type: number."},
272
+ {"id":"api:state-timeline/StateTimeline.ticks","kind":"prop","title":"ticks","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"About how many times to write under the lanes (round times: every 30 minutes, every hour). Type: number. Default: 8."},
273
+ {"id":"api:state-timeline/StateTimeline.timeZone","kind":"prop","title":"timeZone","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The time zone times are written in (\"UTC\"). Defaults to the reader's. Type: string."},
274
+ {"id":"api:state-timeline/StateTimeline.tooltip","kind":"prop","title":"tooltip","page":"State timeline","parent":"StateTimeline","doc":"state-timeline.md","anchor":"statetimeline","entry":"@zsherman/charts/state-timeline","text":"The tooltip at the pointer, also driven by the keyboard (arrow keys on the focused chart). Type: boolean. Default: true."},
275
+ {"id":"api:donut/Donut","kind":"part","title":"Donut","page":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"Donut from @zsherman/charts/donut.","code":"center data format gap label labels legend loading maxSlices onSelect selected size thickness"},
276
+ {"id":"api:donut/Donut.center","kind":"prop","title":"center","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"Replaces the centre's content (by default the total, or the hovered or focused slice). false keeps the default. Type: Element."},
277
+ {"id":"api:donut/Donut.data","kind":"prop","title":"data","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The categories, in the order they're drawn from the top, clockwise. Type: readonly DonutDatum<T>[]. Required."},
278
+ {"id":"api:donut/Donut.format","kind":"prop","title":"format","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"How values are written. Defaults to the locale's numbers, compact from 10,000. Type: ((value: number) => string)."},
279
+ {"id":"api:donut/Donut.gap","kind":"prop","title":"gap","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The space between slices in pixels. Defaults to 2 (1 under 64). Type: number."},
280
+ {"id":"api:donut/Donut.label","kind":"prop","title":"label","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"What the whole is (\"Revenue by region\"). The image's name is this, the total, then each slice's share. Type: string. Required."},
281
+ {"id":"api:donut/Donut.labels","kind":"prop","title":"labels","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The words, in your wording or language (app-wide: LocaleProvider messages.donut). Type: Partial<DonutLabels>."},
282
+ {"id":"api:donut/Donut.legend","kind":"prop","title":"legend","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The legend list beside the donut, the way to read and choose slices. false keeps the values in the page for assistive technology only, and the slices aren't clickable. Children replace it: place a DonutLegend among them (it offers the choice even with legend={false}). Type: boolean. Default: true."},
283
+ {"id":"api:donut/Donut.loading","kind":"prop","title":"loading","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"A skeleton ring while the data loads; the root is aria-busy. Type: boolean."},
284
+ {"id":"api:donut/Donut.maxSlices","kind":"prop","title":"maxSlices","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The most slices drawn: past it, the smallest categories fold into one \"Other\" slice, whose legend row lists them. Type: number. Default: 8."},
285
+ {"id":"api:donut/Donut.onSelect","kind":"prop","title":"onSelect","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"Makes each legend row a toggle button (and each slice clickable): filter the page by the chosen category. With legend={false} the slices aren't clickable; a DonutLegend in children still offers the choice. Type: ((slice: DonutSlice<T>) => void)."},
286
+ {"id":"api:donut/Donut.selected","kind":"prop","title":"selected","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The key (or label) of the category that is on, for a filter: its row is pressed and its slice stays highlighted. A category folded into \"Other\" marks \"Other\". null or nothing: none is on. Type: string | null."},
287
+ {"id":"api:donut/Donut.size","kind":"prop","title":"size","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The donut's width and height in pixels. Under 80 it's a compact mark with nothing in the centre. Type: number. Default: 160."},
288
+ {"id":"api:donut/Donut.thickness","kind":"prop","title":"thickness","page":"Donut","parent":"Donut","doc":"donut.md","anchor":"donut-1","entry":"@zsherman/charts/donut","text":"The ring's width in pixels. Defaults to an eighth of size (a fifth under 64). Type: number."},
289
+ {"id":"api:donut/DonutLegend","kind":"part","title":"DonutLegend","page":"Donut","doc":"donut.md","anchor":"donutlegend","entry":"@zsherman/charts/donut","text":"DonutLegend from @zsherman/charts/donut.","code":"share"},
290
+ {"id":"api:donut/DonutLegend.share","kind":"prop","title":"share","page":"Donut","parent":"DonutLegend","doc":"donut.md","anchor":"donutlegend","entry":"@zsherman/charts/donut","text":"Each row's share of the total, after its value. Type: boolean. Default: true."}
291
+ ]}