6 Commits
Author SHA1 Message Date
CatoandClaude 1515cf2981 feat: day/week ticks, column label thinning, Meter tone, Sparkline gaps (#18)
Three gaps found when four apps tried to adopt 0.6.0:

- LineChart: a dated axis now ticks on days, weeks, months or years for any
  span, and is never left bare. A 30-day daily series had no date label.
- ColumnChart: period labels are printed whole and thinned (every n-th) per
  band of plot width via a container query, instead of being cut at 8
  characters or to their column ("20…", "J…" at 390px).
- Meter: tone (accent, neutral, positive, warning, negative) and
  showValue={false}. Sparkline: null breaks the line, per-point tones colour
  their dots; dots are round-capped strokes so they render filled.

Additions only. Tests in core, render and browser checks; demo, README and
CHANGELOG updated.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 19:25:54 +01:00
Cato 14c38d56ce feat(charts): support ordinal bar scales and localized labels (#17) 2026-10-28 18:13:44 +01:00
Cato 3490fa41fb feat(charts): add reference bands, stacked columns and doughnuts (#15) 2026-10-28 07:47:53 +01:00
CatoandClaude d40fb3fe68 feat(line): markers and area on LineChart, so a year of closes is a clean line (#10)
A share-price chart of daily closes drew a dot on every value: about 250
beads on a one-year chart. LineChart gains two backward-compatible props:

- markers: "all" (default, unchanged) | "none" | "ends" | "auto".
  auto drops the dots above 60 points on a series; ends keeps only the
  last value. A hidden value is a full-height strip of the plot (strips
  tile it edge to edge), and hover or keyboard focus shows its dot, a
  hairline cursor and its value. The table still holds every value.
- area: a light fill under each line in the series' token colour.

Core gains areaPath, hitColumns, resolveMarkers, AUTO_MARKER_LIMIT.
Browser check runs at 1440px too and covers the dense chart at 390/1440.


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 13:46:54 +01:00
CatoandClaude b54b26715e feat: ShareBars otherLabel and a ColumnChart for values by period (#9)
ShareBars took {rows, caption, other} and always called the remainder
"Other", so an app that knew what its rest was ("Others, each below 5%")
could only say it in the caption. `otherLabel` names it in the legend and the
table; left out, it is still "Other".

ColumnChart draws figures by period: revenue and net income by fiscal year,
periods left to right in the order given (fiscal labels are not dates, so
nothing re-sorts them), several series side by side, a loss below the zero
line, a missing figure as no column and "—" in the table, each column
focusable with its value and a link to its source. The ranked BarChart could
not do this: it re-orders rows by size, so a year chart came out of order.

Release 0.2.0.


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 08:55:08 +01:00
bitbaum-fleet da998b84d0 @bitbaum/chartkit 0.1.0: its own repo
Moved from bitbaum/substrata packages/chartkit at 2085534968dbf062d5c9440dec755a49947a01fd; the history before this commit is there. Created by bitbaum/fleet scripts/packages/create-package-repos.mjs from registers/package-repos.json.
2026-10-23 10:00:24 +00:00