Skip to content

1.2.5

Latest

Choose a tag to compare

@yanqingwang yanqingwang released this 05 Oct 00:30

1.2.5

Axes can carry a note

A cell note says what is in a cell. Nothing on the chart could say what the scale means — where the
numbers came from, whether a higher score is better or worse, whether an axis runs backwards. That is
the context a quadrant chart is least able to do without.

Each axis now takes a note: a line of smaller muted text beside it. The X note sits below its caption,
the Y note runs up the left gutter. Writing one reserves room for it; clearing it gives the room back.
Charts without notes keep exactly the layout they had.

Axes → Note under the X axis… / Note beside the Y axis….

Scriptable

The note lives in the .mdx frontmatter as x.note / y.note, alongside everything else the plugin
owns — so it is searchable, diffable, and writable without opening Obsidian.

chart.set_axis("x", note="1-10 from the line manager, recalibrated each quarter")
chart.set_axis("x", clear_note=True)     # and the space it reserved
python3 Script/mdx_chart.py set-axis --path Q1.mdx --axis x \
    --label "Impact" --min 0 --max 10 --note "1-10 from the line manager"

An absent note is omitted from the file entirely, so removing one leaves no empty key and no diff.

No format change to existing files — a chart that has no axis note parses and writes exactly as
before.