Skip to content
InsightCharts

Search

Search guides and components

Core concepts

Highlighting and annotations

The highlight prop colours one series and greys the others. The annotations prop marks a date, a threshold or a single value. This page also has the rules for writing titles.

Highlight

highlight names the entity the title is about. That entity takes the accent colour and every other series is drawn in the theme's context grey. On a multi-series chart it names a series; on a single-series bar chart it names a category.

Acme's active teams index rose from 100 in January to 156 in June

Monthly active teams, indexed to January = 100

Illustrative data

Pass an array to highlight several. The first takes the accent; the rest take the following categorical colours, in the order you list them.

Renewables supplied 52% of electricity in Germany and 24% in Japan

Share of electricity generation from renewables

Illustrative figures

Without highlight, a single series draws in the accent and several series take the categorical colours in a stable order.

Annotations

Annotations are plain JSON, positioned in data coordinates. They stay in place when the chart is resized, and an agent can write them. There are three kinds.

Monthly signups rose from 285 in May to 512 in September 2024

New accounts per month, 2024

Illustrative data
TypeFieldsUse it for
lineaxis ("x" or "y"), value, label?, dashed?, emphasis?A target, an average, the date something happened. Dashed by default; dashed: false draws it solid, emphasis: true draws it in ink rather than muted grey.
bandaxis, from, to, label?A shaded range: a recession, an outage, a target zone.
pointx, y, label, position?, dot?A callout anchored to one data point. position is "top" (default), "bottom", "left" or "right"; dot: false hides the marker. Use \n for line breaks.

Annotations attach to the chart's first cartesian series as ECharts mark lines, areas and points. Values on a category axis are category names; values on a time axis are ISO dates.

Writing titles

Write the title as one plain statement of what the data shows, the way a person would say it out loud, with the real number and the period in it. These rules also apply to subtitles, callouts, annotation labels and story steps.

Write thisNot this
Monthly churn fell from 4.2% to 2.1% in 2024Churn halved after the March onboarding revamp, and the gain has held for six months
Renewables supplied 98% of Norway's electricity in 2023Norway runs almost entirely on renewable electricity
Acme had 266 active teams in December 2024, 2.4 times GlobexAcme pulled away from the pack in late 2023
Solar's share rose from 2.7% to 5.5% between 2019 and 2023Solar is closing the gap with wind
Households wasted 631 million tonnes of food in 2022It is not a rich-country habit
  • Write one clause. Do not add a second half joined with a comma, "and", "but", "while", "yet", a semicolon, a colon or a dash. If there are two facts, write two sentences or put the second in the subtitle.
  • Put the number in. Write "fell from 4.2% to 2.1%", not "halved". Write "98%", not "almost entirely".
  • Take every number from the data. Do not state a cause or an event that the data does not show.
  • Do not use metaphors, idioms or dramatic verbs such as "soared" or "plunged".
  • Do not hint at something the reader has to work out.
  • A plain label is acceptable when there is no single fact to state: "Monthly churn, 2024".

The subtitle names the measure, the unit, the population and the period. source says where the numbers come from.