A note on a chart, at a place of its data: what a graphics desk writes on a chart to tell its story.
chart
|> Fude.annotate(:label, x: "North", y: 136_000, text: "Best quarter on record")
|> Fude.annotate(:band, x: {~D[2026-03-01], ~D[2026-05-01]}, text: "Launch")
|> Fude.annotate(:line, y: 4000, text: "Goal")The places are values of the data, on the chart's own scales: a category's name, a date, a number.
:label- words with a line to a point (xandy; withxalone, the top of the chart at thatx).:band- a shaded range ofxor ofy({from, to}), with words at its top.:line- a line across the chart at anxor ay, with words.
Summary
Functions
An annotation of a type; raises an ArgumentError that says what is wrong.
Types
Functions
An annotation of a type; raises an ArgumentError that says what is wrong.