Research note: the chart varieties (#123)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
f0b9cb40a4
commit
783c094078
10 changed files with 145 additions and 111 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,6 +1,7 @@
|
|||
/site/
|
||||
/docs/*.html
|
||||
/docs/brand/
|
||||
/docs/research/
|
||||
/life-weaver
|
||||
.tp-release-comment
|
||||
.task
|
||||
|
|
|
|||
|
|
@ -132,7 +132,11 @@ tasks:
|
|||
- go run ./cmd/life-weaver brand docs/brand
|
||||
- cp docs/brand/favicon.svg docs/favicon.svg
|
||||
- task-plus md2html --file docs/brand.md --dst docs
|
||||
- go run ./cmd/genealogy -people internal/chart/testdata/people -theme boxes,vine -out docs/research/charts 0 3 7
|
||||
- go run ./cmd/genealogy -people internal/chart/testdata/people -theme boxes -size full -out docs/research/charts/full 7
|
||||
- go run ./cmd/genealogy -people internal/chart/testdata/people -theme boxes,vine -up 1 -down 1 -out docs/research/charts/near 3
|
||||
- task-plus md2html --file research/charts.md --dst docs/research
|
||||
clean:
|
||||
desc: Remove build output
|
||||
cmds:
|
||||
- rm -rf site charts docs/*.html
|
||||
- rm -rf site charts docs/*.html docs/research
|
||||
|
|
|
|||
1
changes/123.added.md
Normal file
1
changes/123.added.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
A research note, `research/charts.md`, drawing every chart variety from the fixture register: themes, sizes and depths; rendered to the docs as `research/charts.html`. The demo output under `charts/` is no longer tracked (#123)
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="718.4" height="208" viewBox="0 0 718.4 208" font-family="system-ui, sans-serif" font-size="13">
|
||||
<style>
|
||||
:root {
|
||||
--paper: #fefdfb;
|
||||
--ink: #0f1953;
|
||||
--muted: #546380;
|
||||
--rule: #c8d9ef;
|
||||
--panel: #ebf3fc;
|
||||
--link: #2151bb;
|
||||
--copper: #b4662f;
|
||||
color-scheme: light dark;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--paper: #070d25;
|
||||
--ink: #d8e6f9;
|
||||
--muted: #909fb8;
|
||||
--rule: #2e3a55;
|
||||
--panel: #101834;
|
||||
--link: #99c0f8;
|
||||
--copper: #eea471;
|
||||
}
|
||||
}
|
||||
.box { fill: var(--panel); stroke: var(--rule); }
|
||||
.self { stroke: var(--copper); stroke-width: 2; }
|
||||
.spouse { stroke-dasharray: 5 3; }
|
||||
.influence { stroke: var(--muted); stroke-dasharray: 2 3; }
|
||||
.tie { fill: none; stroke: var(--muted); stroke-width: 1.2; }
|
||||
.influenced { fill: none; stroke: var(--link); stroke-dasharray: 6 4; }
|
||||
.label { fill: var(--ink); } .years, .role { fill: var(--muted); font-size: 11px; }
|
||||
</style>
|
||||
<line class="tie" x1="347.2" y1="46" x2="371.2" y2="46"/>
|
||||
<path class="tie" d="M98.8 140 V104 H359.2 V46"/>
|
||||
<path class="tie" d="M272.4 140 V104 H359.2 V46"/>
|
||||
<path class="tie" d="M446 140 V104 H359.2 V46"/>
|
||||
<path class="tie" d="M619.5999999999999 140 V104 H359.2 V46"/>
|
||||
<g class="kin"><rect class="box kin" x="197.6" y="24" width="149.6" height="44" rx="4"/><text class="label" x="272.4" y="42" text-anchor="middle">Malcolm Drummond</text><text class="years" x="272.4" y="58" text-anchor="middle">1856–1924</text></g>
|
||||
<g class="kin"><rect class="box kin" x="371.2" y="24" width="149.6" height="44" rx="4"/><text class="label" x="446" y="42" text-anchor="middle">Geraldine Drummond</text><text class="years" x="446" y="58" text-anchor="middle">–1956</text></g>
|
||||
<g class="sibling"><rect class="box sibling" x="24" y="140" width="149.6" height="44" rx="4"/><text class="label" x="98.8" y="158" text-anchor="middle">Jean Drummond</text><text class="years" x="98.8" y="174" text-anchor="middle">1891–1974</text></g>
|
||||
<g class="self"><rect class="box self" x="197.6" y="140" width="149.6" height="44" rx="4"/><text class="label" x="272.4" y="158" text-anchor="middle">Victoria Drummond</text><text class="years" x="272.4" y="174" text-anchor="middle">1894–1978</text></g>
|
||||
<g class="sibling"><rect class="box sibling" x="371.2" y="140" width="149.6" height="44" rx="4"/><text class="label" x="446" y="158" text-anchor="middle">Frances Drummond</text><text class="years" x="446" y="174" text-anchor="middle">1897–1974</text></g>
|
||||
<g class="sibling"><rect class="box sibling" x="544.8" y="140" width="149.6" height="44" rx="4"/><text class="label" x="619.5999999999999" y="158" text-anchor="middle">John Drummond</text><text class="years" x="619.5999999999999" y="174" text-anchor="middle">1900–1982</text></g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB |
|
|
@ -1,43 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="718.4" height="208" viewBox="0 0 718.4 208" font-family="system-ui, sans-serif" font-size="13">
|
||||
<style>
|
||||
:root {
|
||||
--paper: #fefdfb;
|
||||
--ink: #0f1953;
|
||||
--muted: #546380;
|
||||
--rule: #c8d9ef;
|
||||
--panel: #ebf3fc;
|
||||
--link: #2151bb;
|
||||
--copper: #b4662f;
|
||||
color-scheme: light dark;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--paper: #070d25;
|
||||
--ink: #d8e6f9;
|
||||
--muted: #909fb8;
|
||||
--rule: #2e3a55;
|
||||
--panel: #101834;
|
||||
--link: #99c0f8;
|
||||
--copper: #eea471;
|
||||
}
|
||||
}
|
||||
.box { fill: var(--panel); stroke: var(--rule); }
|
||||
.self { stroke: var(--copper); stroke-width: 2; }
|
||||
.spouse { stroke-dasharray: 5 3; }
|
||||
.influence { stroke: var(--muted); stroke-dasharray: 2 3; }
|
||||
.tie { fill: none; stroke: var(--muted); stroke-width: 1.2; }
|
||||
.influenced { fill: none; stroke: var(--link); stroke-dasharray: 6 4; }
|
||||
.label { fill: var(--ink); } .years, .role { fill: var(--muted); font-size: 11px; }
|
||||
</style>
|
||||
<line class="tie" x1="347.2" y1="46" x2="371.2" y2="46"/>
|
||||
<path class="tie" d="M98.8 140 V104 H359.2 V46"/>
|
||||
<path class="tie" d="M272.4 140 V104 H359.2 V46"/>
|
||||
<path class="tie" d="M446 140 V104 H359.2 V46"/>
|
||||
<path class="tie" d="M619.5999999999999 140 V104 H359.2 V46"/>
|
||||
<g class="kin"><rect class="box kin" x="197.6" y="24" width="149.6" height="44" rx="4"/><text class="label" x="272.4" y="42" text-anchor="middle">Malcolm Drummond</text><text class="years" x="272.4" y="58" text-anchor="middle">1856–1924</text></g>
|
||||
<g class="kin"><rect class="box kin" x="371.2" y="24" width="149.6" height="44" rx="4"/><text class="label" x="446" y="42" text-anchor="middle">Geraldine Drummond</text><text class="years" x="446" y="58" text-anchor="middle">–1956</text></g>
|
||||
<g class="self"><rect class="box self" x="24" y="140" width="149.6" height="44" rx="4"/><text class="label" x="98.8" y="158" text-anchor="middle">Jean Drummond</text><text class="years" x="98.8" y="174" text-anchor="middle">1891–1974</text></g>
|
||||
<g class="sibling"><rect class="box sibling" x="197.6" y="140" width="149.6" height="44" rx="4"/><text class="label" x="272.4" y="158" text-anchor="middle">Victoria Drummond</text><text class="years" x="272.4" y="174" text-anchor="middle">1894–1978</text></g>
|
||||
<g class="sibling"><rect class="box sibling" x="371.2" y="140" width="149.6" height="44" rx="4"/><text class="label" x="446" y="158" text-anchor="middle">Frances Drummond</text><text class="years" x="446" y="174" text-anchor="middle">1897–1974</text></g>
|
||||
<g class="sibling"><rect class="box sibling" x="544.8" y="140" width="149.6" height="44" rx="4"/><text class="label" x="619.5999999999999" y="158" text-anchor="middle">John Drummond</text><text class="years" x="619.5999999999999" y="174" text-anchor="middle">1900–1982</text></g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB |
|
|
@ -1,21 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en-GB">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Charts to review</title>
|
||||
<style>
|
||||
body { font-family: system-ui, sans-serif; margin: 2rem; color-scheme: light dark; }
|
||||
h2 { font-weight: normal; margin: 2rem 0 .5rem; }
|
||||
h2 small { color: #777; }
|
||||
figure { margin: 0; overflow-x: auto; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Charts to review</h1>
|
||||
<h2>Victoria Alexandrina Drummond <small>1894–1978</small></h2>
|
||||
<figure><img src="0-hourglass.svg" alt="The hourglass chart of Victoria Alexandrina Drummond"></figure>
|
||||
<h2>Jean Drummond <small>1891–1974</small></h2>
|
||||
<figure><img src="3-hourglass.svg" alt="The hourglass chart of Jean Drummond"></figure>
|
||||
</body>
|
||||
</html>
|
||||
43
docs/stories/019-research-note-the-chart-varieties.md
Normal file
43
docs/stories/019-research-note-the-chart-varieties.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# 019 — Research note: the chart varieties (#123)
|
||||
|
||||
**Status:** built
|
||||
**Roadmap:** none — the record of what stories 014 to 018 drew, to
|
||||
choose from
|
||||
|
||||
## Why
|
||||
|
||||
The charts can be judged only on a review page each person draws for
|
||||
themselves. A research note with every variety drawn from the fixture
|
||||
register, rendered with the docs and deployed with them, is one page
|
||||
to look at and point to when choosing what goes on the site.
|
||||
|
||||
## What changes
|
||||
|
||||
- `research/charts.md`: the note; `task docs:build` draws the charts
|
||||
into `docs/research/charts/` with `genealogy` from the fixture
|
||||
register and renders the note to `docs/research/charts.html`;
|
||||
`index.md` links it; `docs/research/` is gitignored as the other
|
||||
rendered docs are.
|
||||
- The vine is written five pixels to the millimetre rather than 3.6,
|
||||
its years at 2.3 mm: the docs renderer refuses text under 11 px.
|
||||
- `charts/`, the demo output story 016 committed before story 015's
|
||||
gitignore reached its branch, leaves git.
|
||||
|
||||
## Acceptance
|
||||
|
||||
| Build | Outcome |
|
||||
|---|---|
|
||||
| `task docs:build` | `docs/research/charts.html` and the SVGs it names, no mirror needed |
|
||||
|
||||
## Out of scope
|
||||
|
||||
The Drummond family: `task genealogy:demo` draws them from the mirror.
|
||||
|
||||
## Decisions
|
||||
|
||||
none
|
||||
|
||||
## Done when
|
||||
|
||||
- [x] changelog entry
|
||||
- [ ] issue closed with a link to the release
|
||||
3
index.md
3
index.md
|
|
@ -11,7 +11,8 @@ life history for each person, one page each.
|
|||
and the margin, as the build draws them.
|
||||
- [Research](https://git.bytestone.uk/hum3/life-weaver/src/branch/main/research)
|
||||
— measurements and surveys behind the design: how far the service's
|
||||
search scales, and which other sites share the aim (landscape.md).
|
||||
search scales, which other sites share the aim (landscape.md), and
|
||||
[the chart varieties](research/charts.html) drawn so far.
|
||||
- [Roadmap](https://git.bytestone.uk/hum3/life-weaver/src/branch/main/ROADMAP.md)
|
||||
- [Changelog](https://git.bytestone.uk/hum3/life-weaver/src/branch/main/CHANGELOG.md)
|
||||
- [Source](https://git.bytestone.uk/hum3/life-weaver)
|
||||
|
|
|
|||
|
|
@ -179,10 +179,10 @@ func Vine(c Chart) []byte {
|
|||
wmm, hmm := width*10, height*10
|
||||
var w bytes.Buffer
|
||||
fmt.Fprintf(&w, `<svg xmlns="http://www.w3.org/2000/svg" width="%g" height="%g" viewBox="0 0 %g %g" font-family="system-ui, sans-serif">`+"\n",
|
||||
math.Round(wmm*3.6), math.Round(hmm*3.6), wmm, hmm)
|
||||
math.Round(wmm*5), math.Round(hmm*5), wmm, hmm)
|
||||
w.WriteString("<style>\n" + brand.CSS() +
|
||||
".label { fill: var(--ink); font-size: 2.7px; }\n" +
|
||||
".years { fill: var(--muted); font-size: 2.1px; }\n" +
|
||||
".years { fill: var(--muted); font-size: 2.3px; }\n" +
|
||||
"</style>\n")
|
||||
fmt.Fprintf(&w, `<defs><mask id="vine" maskUnits="userSpaceOnUse" x="0" y="0" width="%g" height="%g">`+"\n", wmm, hmm)
|
||||
w.Write(ornament.Grow(v, uint32(c.Subject)))
|
||||
|
|
|
|||
91
research/charts.md
Normal file
91
research/charts.md
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
# Charts — the varieties drawn so far
|
||||
|
||||
What `genealogy` draws of the kin around a person, every variety on one
|
||||
page, from the fixture register (`internal/chart/testdata/people`):
|
||||
Malcolm and Geraldine, parents of Jean (1891) and Victoria (1894);
|
||||
Geraldine's parents Walter and Edith; Jean married Hugh, their child
|
||||
Ann, who married Robert; Bea, Victoria's nanny, an influence at 0.6,
|
||||
and Edith her grandmother at 0.3. Victoria, Geraldine, Jean and Edith
|
||||
are recorded female, Malcolm and Robert male, Walter other, the rest
|
||||
unknown. The Drummond family from the mirror is `task genealogy:demo`.
|
||||
|
||||
**Date**: 2026-11-03
|
||||
**Stories**: 014 (the model and the boxes), 016 (gender), 017 (brief
|
||||
names, sizes, themes), 018 (the vine)
|
||||
|
||||
## The hourglass chart
|
||||
|
||||
Ancestors above the subject, descendants below, the subject's own row
|
||||
with siblings in birth order and spouses beside them. The model is one:
|
||||
rows by generation and the edges between the boxes. Each theme is a
|
||||
drawing of it.
|
||||
|
||||
### Boxes
|
||||
|
||||
The drop-line chart: couples joined by a bar, children hung from it,
|
||||
the self box in copper, spouses dashed, an influence dotted, boxes
|
||||
tinted by gender (pink, blue, yellow; the panel colour when unknown),
|
||||
influences as dashed curves as wide as their weight with the role on
|
||||
them.
|
||||
|
||||
Victoria, two generations up and down. Bea has a box of her own after
|
||||
the parents; Edith is kin already, so her influence is only the curve.
|
||||
|
||||

|
||||
|
||||
Jean: the spouse beside the subject, the sibling after, the child
|
||||
centred under the couple.
|
||||
|
||||

|
||||
|
||||
Ann: a parent centred over their own ancestors stands apart from a
|
||||
parent without any, the bar bridging the gap.
|
||||
|
||||

|
||||
|
||||
### Vine
|
||||
|
||||
The same charts in the margin's flora: the subject a flower at the
|
||||
root, ancestors flowers, siblings leaves leaning away, spouses a spray
|
||||
of blossoms, children buds hanging on stems, influences sprigs on the
|
||||
thinnest stems. Each couple has an arch and a trunk down to a junction
|
||||
under their names, where the children's stems meet. The composition is
|
||||
masked in the link colour, so it follows the scheme; the names are
|
||||
written in the ink beside each motif.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Sizes
|
||||
|
||||
Brief is the default: the record's `short`, else the name before any
|
||||
comma or bracket cut to first word and surname. Full is the `short`,
|
||||
else the whole name, as pages link. Ann's chart at full size, Robert's
|
||||
record having no `short`:
|
||||
|
||||

|
||||
|
||||
## Depth
|
||||
|
||||
One generation up and one down, Jean. The chart leaves far kin out,
|
||||
influence or not; an influence who is not kin keeps their box.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Observations
|
||||
|
||||
- The boxes read at a glance and are cheap: a few kilobytes a chart.
|
||||
The vine is a hundred kilobytes and more, the flora being painted
|
||||
stroke by stroke; it is a drawing to look at, not a diagram to read.
|
||||
- The vine's layout is the boxes' layout in centimetres. A margin
|
||||
(#99) is tall and narrow where this is wide; the composition is
|
||||
what carries over, the placement does not.
|
||||
- Long names set the column pitch in both themes; brief names are the
|
||||
remedy, and a record's `short` the better one.
|
||||
- Not drawn: spouses of descendants, children of siblings, influences
|
||||
of anyone but the subject, pedigree and fan charts.
|
||||
Loading…
Reference in a new issue