Set axis values
set_axis_valuesDefine or extend an extra timeline axis after the consent gate by upserting values with sections, citations, and source references.
Instructions
Define or extend an extra axis (slot 1 or 2) after the consent gate.
values: [{id, name, role?, color?, symbol_svg?, sections?: [{h,t,prov?}],
aliases?: [str], cite?: {ch?, p?, note?}, sources?: [source id]}],
upserted by id, so this can be called repeatedly as material arrives.
aliases are other names the material uses for a value (running text
naming one links to its page; "X v. Y" short forms are generated).
cite is where it sits in a book; cite_link ({label?, url with {p}
and optionally {sec}, sections: {chapter number: section id}}) turns each
cite into a link.
Unlike the entity axis there is no count cap — this is where a course's
cases belong, each carrying the student's own brief in sections.
hide_nav keeps the chips on the cards and the detail pages reachable
while dropping the axis from the nav bar, drawer and legend, and labels
those chips with the value's name rather than a glyph. Set it for anything
with more values than a nav row can hold; skip glyph design for it. Such
an axis gets an index page under "Index" in the nav instead, and no Filter
section unless filter is true. sources (manifest ids) show on the
index page; index_sections [{h,t}] open it; index_blurb names the
section headings (in order) whose text excerpts each row; nav_label
shortens the nav button; index_label names the nav group (default
"Index", shared by both axes).
§0: sections are verbatim from the user's materials. This tool exists
because an axis declared inside create_timeline is authored BEFORE
record_materials_consent runs — so axis values carrying real content had no
gate. This one is consent-locked like add_nodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| label | Yes | ||
| filter | No | ||
| values | Yes | ||
| sources | No | ||
| hide_nav | No | ||
| singular | Yes | ||
| cite_link | No | ||
| nav_label | No | ||
| index_blurb | No | ||
| index_label | No | ||
| timeline_id | Yes | ||
| index_sections | No |