A line over time, with the quiet reading aids a pace chart needs.
import { LineChart } from '@oztix/roadie-charts/line-chart'
Every reading aid at once: the band of similar shows with its dashed median, the forecast dotted in a faint cone, the target tick, and a labelled dot for today. When today is the last point, its label joins the end labels so the two never collide.
Two or three series use the pair and trio sets. Past four series, or on a narrow card, the end labels give way to a legend. On a narrow card the legend also names the band, median, forecast and target, so a single line keeps its reading aids.
Name the series that tells the story. It draws in the highlight at 2px and the rest step back.
Chart card. The card sets the height and builds its Table view from the chart, so there is no table to pass. Plots are 160px at sm and 220px at md. At lg and full they start at 260px and grow with the card.null value breaks the line, so a day with no data never reads as a trend. Send null for that day rather than leaving it out.highlight for the story and palette for the set.takeaway, or by a generated sentence such as "Sold rose from 120 to 1,464 between 1 Oct and 29 Oct".Rows of plain values. Dates are ISO strings in venue wall time.
Field along the bottom: an ISO date or a number.
Field for the value.
Field that splits rows into series. Past 6, the smallest roll into Other.
Series that tell the story, drawn in the highlight. The rest are context.
Defaults to 'categorical', or the pair or trio set at 2 or 3 series.
Defaults to 'number'.
The headline sentence. It becomes the plot's accessible name.
Dated markers with labels of 20 characters at most.
Fills under a single series.
Plots the running total.
A shaded range, such as similar shows, with an optional dashed median.
Where the forecast starts. Values after it are dotted, in a faint cone.
Draws an end tick labelled with the target.
Marks today with a labelled dot.