Add a marker to a chart: a horizontal line at a value or at a statistic of a measure, a vertical line at a date, or a band between two values or two dates.
It reaches everyone when you can edit the chart, and only you when you cannot: who in the answer says which. A line at a statistic follows the rows in view. A marker is a note for the chart’s readers.
Examples
Terminal window
# Add a marker to a chart: a horizontal line at a value or at a statistic of a measure, a vertical line at a date, or a band between two values or two dates
katerchartmarkeradd<query>
Arguments
Argument
Description
<query>
The chart’s query: its key, such as duckdb_sample/shop/top_regions, or in a person’s folder, duckdb_sample/users/<user id>/shop/top_regions; as <workspace>/<name>, such as shop/top_regions; its workspace’s folder and its name, such as connections/<connection>/workspaces/shop/top_regions; or its id, rel1_…, also from before a rename.
Options
Option
Description
--chart <chart>
The saved chart, by its name in the workspace. Left out, the query’s chart with no saved chart: each marker is then only yours.
--value <value>
A horizontal line, as <field>=<number>, such as platform_roas=3. Its field must be a measure, by the name the query returns it under.
--stat <stat>
A horizontal line that follows the data, as <field>=<statistic>, such as platform_roas=average. The statistic is one of average, median, highest and lowest over the rows in view.
--day <day>
A vertical line at this date, as YYYY-MM-DD.
--to <to>
The far end of a band: a number after --value, or a date after --day, so the marker covers the span between the two.
--label <text>
The words on the line, such as Break even.
--tone <tone>
How the line reads: one of neutral, positive, warning and negative. Write an empty value to take it off.
It also takes the global options anywhere on the line, and --help.