Compare values across categories with vertical or horizontal bars, grouped or stacked, one series or many. Server-rendered, with a hidden data table for screen readers. Charts and motion are Stimulus controllers plus server-rendered SVG and HTML. No chart library, no external JavaScript beyond @hotwired/stimulus.
Looking for ready-made examples and dashboard cards? See the
Chart Gallery
.
One bar split into segments, with a legend. Single series. Pass legend: false to hide the legend.
Applications by status
Within 400 m, 76 total
Open14
Approved9
Closed53
Applications by status
Category
Value
Share
Open
14
14 of 76 · 18%
Approved
9
9 of 76 · 12%
Closed
53
53 of 76 · 70%
Stacked
<%=rui_chart(type: :stacked, title: "Applications by status", subtitle: "Within 400 m, 76 total",
data: @review_queue) %>
Ranked list: :lollipop (0.79.0+)
A rule and a dot per row, the value printed after it. Same data: rows as :hbar, so switching is one word. See Lollipop for sorting and hidden rows.
Steps: :funnel (0.80.0+)
Centred bars per step, sized as a share of the first step. Same data: rows as :hbar. See Funnel for the two modes.
Day grid: :calendar (0.81.0+)
One column per week, one row per weekday, each day coloured by its count. Takes days:, a hash of date to count. See Calendar.
Squares: :waffle (0.82.0+)
A grid of squares with a legend, for a share or a small count. Same data: rows as :hbar. See Waffle.
Two columns: :slope (0.83.0+)
Two columns compared row by row, each row a small two-point slope. Takes columns: and rows:. See Slope.
Keywords that don't apply (0.84.1+). A type-specific keyword passed to a type that never reads it (squares: on :hbar, week_start: on :bar) is ignored, and in development and test the chart logs one [RapidRailsUI] chart: line naming the keyword and the types that use it. The schema lists the same mapping: each type-specific param carries types: at /api/schema/components/chart.
Data rows
data: is an array of hashes with :label and :value. Rows with a missing label or value are skipped. Missing values in a series count as 0.
The tooltip shows a bold title (the category), then one line per series with a swatch and the value. Hover or focus a mark to see it. Escape hides it, and arrow keys move between visible marks.
show_share: true adds a share to each line. The base depends on the layout:
Stacked: the category's stack total, for example "31 of 76 · 41%".
Single series: the whole total.
Grouped: the category total. Share is off unless show_share: true is set.
Click or Enter on a mark dispatches rui-chart:select on the chart element. The event is cancelable. Use it to filter a table beside the chart. If you call preventDefault(), the mark's href is not followed.
Listen for rui-chart:select
element.addEventListener("rui-chart:select", (event) => {
const { series, label, value, index } = event.detail
// filter a table beside the chart; call event.preventDefault() to stop a link from being followed
})
References and Annotations
references: draws dashed, labelled reference lines. annotations: lists notes under the chart, attached to a category with at:.
responsive: :hbar shows a vertical bar chart with more than 6 categories as horizontal bars below 480 px. The hidden table and the API stay the same. Resize this window to see the switch.
type: :line and type: :area take series: with points:, as [x, y] pairs or { x:, y:, note: } hashes. Since 0.84.1 they also take the bar shapes: data: rows (label:, value:) or series: with values: plus categories:, so the same data switches between bar, hbar, line and area by changing type:.
projection: draws a dashed segment from the first series' last point to value at the to category.
band: draws a hatched band from low to high at the at category, with its label. The band stays inside the plot, and a long label wraps; at the right edge the label anchors to the plot's right edge.
annotations: pins a label to a category with a leader line.
A point's note: appears in its tooltip.
The axis starts at zero and covers the band and projection. Legend entries are plain labels, so lines do not toggle.
Fixed height, fluid width (0.77.0+). The chart is height: px tall (default 220) at any width, and height_sm: px below 480 px (default 0.75 × height:, at least 180, never taller than height:). The lines stretch to the card; axis labels, category labels, the band label, annotations, end labels and points are HTML at 12 px, so a full-width card does not blow the text up. The y-axis labels sit in a 48 px gutter left of the plot; end_labels: true adds a 6 rem gutter on the right.
Illustrative example. Stops by TTC route near Sheppard East, 127 in total. Slices under 3% are grouped into Other, with their combined count. Source: City of Toronto open data, TTC stops by route.
A tiny line (or variant: :column) for stat tiles and table cells: inline SVG, full width of its container, height: in px (default 24), no axes, no legend, tooltips off. mark_last: true (default) dots the last value. baseline: true draws a line at zero; a number draws it at that value. The aria-label reads "N values, latest X" and the hidden table lists every value.
Bins numeric values: into contiguous columns. bins: (default 8) makes equal-width bins from min to max; bin_edges: sets them exactly, and values outside the edges are dropped. Labels read "0 to 29" (integer edges; the last bin includes its top edge). The tooltip title is the range, the line is the count and its share. It renders through the bar path, so column hover, show_values:, timeline: and the update API apply.
crosshair: true on :line and :area. Moving the pointer over the plot snaps a vertical guide to the nearest x and shows one card: the category, then every series with its value. Arrow keys on a focused point move it. It replaces the per-point tooltips on that chart.
end_labels: true on :line and :area writes each series name at its last point, in the series colour, nudged apart when two lines end close together. The legend is off unless you pass legend: true.
type: :heatmap takes rows:, columns: and values: (a row-major array), or cells: as { row:, column:, value: } hashes. It renders an HTML grid: row labels left, column labels on top (thinned like an axis when crowded), one focusable cell per row and column.
Colour is series 1 at a strength from 8% (the minimum) to 100% (the maximum), so it themes through --rui-chart-1. Sequential scale only.
Zero is a real value and draws the lightest step. Only nil draws the track colour and reads "no data".
A scale bar shows min and max. The tooltip title is "row · column". The hidden table lists every cell.
rui-chart:update takes { series: [{ name: row, values: [...] }] }, with null for no data.
Reports by month and type
Jan
Feb
Mar
Apr
May
Jun
Pothole
Graffiti
Streetlight
012reports
Reports by month and type
Row
Jan
Feb
Mar
Apr
May
Jun
Pothole
4 reports
0 reports
9 reports
12 reports
7 reports
3 reports
Graffiti
no data
2 reports
1 reports
4 reports
6 reports
2 reports
Streetlight
3 reports
5 reports
2 reports
0 reports
1 reports
8 reports
Heatmap
<%=rui_chart(type: :heatmap, title: "Reports by month and type", unit: "reports",
rows: ["Pothole", "Graffiti", "Streetlight"], columns: %w[Jan Feb Mar Apr May Jun],
values: [[4, 0, 9, 12, 7, 3], [nil, 2, 1, 4, 6, 2], [3, 5, 2, 0, 1, 8]]) %><%# or one hash per cell %><%=rui_chart(type: :heatmap, rows: rows, columns: months,
cells: [{ row: "Pothole", column: "Jan", value: 4 }, { row: "Graffiti", column: "Feb", value: 2 }]) %>
Timeline Strip
type: :timeline_strip draws one row per item and a bar per status period on a shared date axis. rows: is [{ label:, segments: [{ from:, to:, group:, note: }], markers: [{ at:, label: }] }]. A period with no end (to: nil) is open: its bar runs to the domain end with a hatched last 8 px and reads "since Mar 4, 2019, 2,780 days" (days count to today). Closed periods read "May 20, 2015 to Jan 10, 2018, 966 days". Dates are Date, Time or strings ("2019-03-04" or anything Date.parse reads); "today" works anywhere a date does. Periods with no start, an end before the start, or entirely outside the domain are dropped.
domain:{ from:, to: }; an edge you leave out comes from the data (an open period extends it to today).
groups: maps a group name to a 0-based series colour index ("open" => 0 is --rui-chart-1) and sets the legend order; groups met in the data but not listed append after. A segment without group: is "Period". The legend shows when there is more than one group (legend: true forces it).
markers:[{ at:, label: }] draw a small diamond in the row, with the label and date in the tooltip.
sort::start (earliest first), :days (longest first), :label, or nil to keep your order. max_rows: keeps the first n after sorting, with no "Other" row.
Axis: a grid line at every January 1 inside the domain, year labels thinned like the other axes (label_every: overrides). Below 480 px the label sits above its bar.
Every period and marker is focusable; arrow keys move between them, hovering one dims the other rows. Tooltip: item, group and note, then the span line. The hidden table lists item, status, from, to (or "ongoing") and days.
Entry motion: bars grow from their start in row order, markers fade in after. Reduced motion: none.
rui-chart:update takes { rows: [{ label:, segments: [{ group:, to: }] }] }, segments matched by index; only groups and ends change (to: null reopens a period). The bar's end and colour transition, text and table are rewritten. Rows, starts and the domain are fixed by the server.
as_of: (Date, Time or "2026-10-13", default the real today) is the "today" the strip counts to: open periods' days and "since ..." text, the hidden table, the "today" keyword in domain: and the client-side update. Pass a report's build date to freeze a saved report; the HTML is then the same on every later render. An unreadable value raises ArgumentError in development and test; in production it logs [RapidRailsUI] chart: unreadable as_of, sets data-rui-error on the figure and counts to the real today. 0.74.2+. The demo below is pinned to October 13, 2026, so its numbers match this page.
type: :lollipop (0.79.0+) is a ranked list lighter than horizontal bars: per row a label, a thin rule from 0 to the value, a dot at the value and the value after it. It takes the same data: rows as :hbar (label:, value:, href:, tooltip:, note:, highlight:), so switching is one word. The longest value reaches the end of the row (y_max: sets a larger end). Below 480 px the label sits above its rule.
sort::desc, :asc, or nil to keep your order (default).
max_rows: keeps the first n rows. rest: :hide (default) drops the others; rest: :other groups them into an "Other n" row like :hbar. A named list ("top streets") should not show "Other" as if it were one more place.
rest_label: is your text under the list when rows are hidden; %{count} becomes the number hidden. Without it nothing is printed.
Each dot is a focusable mark (tooltip, arrow keys, rui-chart:select, a link with href:), with the hidden table for screen readers. highlight: dims the other rows.
Negative values clamp to 0. The update API is not supported on :lollipop yet (it logs and does nothing); re-render instead.
Entry motion: rules grow in and the dots fade in.
Homes named, top 6
Illustrative
File 17-052
2,315
File 19-114
1,240
File 22-301
860
File 24-090
640
File 21-008
410
File 15-207
180
2 more in the records
Homes named, top 6
Item
Value
Share
File 17-052
2,315
2,315 of 5,645 · 41%
File 19-114
1,240
1,240 of 5,645 · 22%
File 22-301
860
860 of 5,645 · 15%
File 24-090
640
640 of 5,645 · 11%
File 21-008
410
410 of 5,645 · 7%
File 15-207
180
180 of 5,645 · 3%
Lollipop
<%=rui_chart(type: :lollipop, title: "Homes named, top 6",
data: files.map { |f| { label: f.number, value: f.homes, href: file_path(f) } },
sort: :desc, max_rows: 6, rest_label: "%{count} more in the records") %>
Funnel
type: :funnel (0.80.0+) draws one centred bar per step, in your order, each sized as a share of the first step (the first is full width). Same data: rows as :hbar (label:, value:, href:, tooltip:, note:, highlight:). Below 480 px the label sits above its bar.
mode: :conversion (default) is for a true cohort: each step prints its count and "x% of <first>", and the drop from the previous step shows between rows. A step larger than the first clamps to full width and logs a warning in development.
mode: :stages is for stages that overlap or are not a subset of each other (a report can be closed without a reference number; re-reported is not a narrowing step). Bars still size against the first step for the eye, but only the count prints, with no percentages and no drop, in the hidden table too. Order is not assumed.
A step of 0 draws as a 2 px hairline with "0" printed; it is never dropped.
colors: :steps gives each step its own series colour (--rui-chart-1 onwards).
Each bar is a focusable mark (tooltip, arrow keys, rui-chart:select, a link with href:). Bars grow from their centre on entry. The update API is not supported on :funnel yet.
Conversion: a true cohort
Sign-up funnel
Illustrative, last 30 days
Visited
1,000
-60%
Signed up
400 · 40% of Visited
-75%
Paid
100 · 10% of Visited
Sign-up funnel
Step
Count
Share of first
Visited
1,000
100%
Signed up
400
40%
Paid
100
10%
Funnel, conversion
<%# A true cohort: each step is a subset of the one before %><%=rui_chart(type: :funnel, title: "Sign-up funnel",
data: [{ label: "Visited", value: 1000 }, { label: "Signed up", value: 400 }, { label: "Paid", value: 100 }]) %>
Stages: counts only
311 reports by stage
Stages overlap; counts only
Reported
240
Got a reference number
180
Closed
150
Re-reported
60
311 reports by stage
Stage
Count
Reported
240
Got a reference number
180
Closed
150
Re-reported
60
Funnel, stages
<%# Overlapping stages that are not a cohort: counts only %><%=rui_chart(type: :funnel, mode: :stages, colors: :steps, title: "311 reports by stage",
data: @report_stages) %>
Calendar
type: :calendar (0.81.0+) is a day grid like a contribution graph: one column per week, one row per weekday, each day coloured by its count on the first series colour. days: is a hash of Date (or Time, or a date string) to count.
Range: from: / to:. By default the 365 days ending on as_of: (or today). Pass as_of: for a saved report so the grid never moves; an unreadable as_of: raises in development and test. Days in range with no entry are 0; entries outside the range are dropped.
week_start::monday (default) or :sunday. Weekday labels show Mon, Wed and Fri; month labels sit above each month's first week.
0 is the empty track colour, not the lightest tint. The legend shows the empty cell with zero_label: (default "0" plus unit:), then the min to max ramp.
Phones: below 480 px the grid shows the last months: (default 2 since 0.83.0, so each day stays at least a 24 px tap target in a typical phone card; pass months: 1 in a narrower container) instead of the whole range, and the range line above the grid states each range. No horizontal scroll.
Each day is a focusable mark with "Tue Oct 13, 2026: 4 reports" as its label and tooltip. Left and Right arrows move a week, Up and Down a day, as the grid reads. Clicking dispatches rui-chart:select with { date, value, ... }; days are not links. The hidden table lists each month's total and busiest day. The update API is not supported yet.
The demo is pinned with as_of: "2026-10-14", so it shows the same year on every visit. The counts are illustrative.
Reports per day
Oct 15, 2025 to Oct 14, 2026Aug 15, 2026 to Oct 14, 2026
OctNovDecJanFebMarAprMayJunJulAugSepOctMonWedFri
AugSepOctMonWedFri
No reports19
Reports per day, Oct 15, 2025 to Oct 14, 2026
Month
Total
Busiest day
Oct 2025
57 reports
Oct 15 (6 reports)
Nov 2025
135 reports
Nov 5 (8 reports)
Dec 2025
154 reports
Dec 3 (8 reports)
Jan 2026
75 reports
Jan 7 (5 reports)
Feb 2026
105 reports
Feb 4 (7 reports)
Mar 2026
150 reports
Mar 4 (8 reports)
Apr 2026
75 reports
Apr 1 (5 reports)
May 2026
68 reports
May 6 (5 reports)
Jun 2026
116 reports
Jun 10 (7 reports)
Jul 2026
123 reports
Jul 1 (7 reports)
Aug 2026
173 reports
Aug 5 (9 reports)
Sep 2026
95 reports
Sep 2 (6 reports)
Oct 2026
37 reports
Oct 7 (6 reports)
Calendar
<%=rui_chart(type: :calendar, title: "Reports per day", unit: "reports",
days: reports.group(:reported_on).count, as_of: report.built_on,
week_start: :sunday, zero_label: "No reports") %>
Waffle
type: :waffle (0.82.0+) is a grid of squares in data order with a legend. Same data: rows as :hbar (label:, value:, href:, tooltip:).
squares: :percent (default): 100 squares, 1% each. Shares round by largest remainder, so the grid always holds exactly 100. The legend prints "18 · 45%".
squares: :count: one square per item, for small totals where 1% squares would claim a precision the data does not have. The legend prints counts only and notes "One square for each report". Above 200 it shows percent squares and logs a note in development.
max_items: (default 8) and group_small: (default true): the rest, and in percent mode anything under one square, group into "Other" (axis colour). group_small: false keeps every item.
The squares are hidden from screen readers; each legend row is a focusable mark (tooltip, arrow keys, rui-chart:select, a link with href:) and hovering or focusing one dims the other items' squares. The hidden table lists each item's count (and share in percent mode).
From 480 px the legend sits beside the grid, below it on phones. Squares fade in on entry. The update API is not supported yet.
<%# Small totals: one square for each report, counts only %><%=rui_chart(type: :waffle, squares: :count, unit: "reports", data: issue_counts, max_items: 8) %>
Slope
type: :slope (0.83.0+) compares two columns row by row. The column names sit once in a header; each row shows its label, the left value, a small two-point slope, the right value and the change.
Each row is on its own scale by default, so rows in different units never share an axis. shared_axis: true puts every row on one scale (only for rows in the same unit).
Per row: value_format: and unit: (else the chart's), change::percent (relative, default), :points (difference, for rows that are percentages) or :none; href:, note:. change: on the chart sets the default for every row. Equal values read "no change".
tone: :neutral (default) colours by column: the left dot --rui-chart-1, the right dot --rui-chart-2, the line in the axis colour, so nothing reads as better or worse. tone: :direction colours the line by up or down. tone: :good uses each row's good: :higher | :lower.
Each row's slope is a focusable mark whose label reads "Open share: This area 34%, Toronto 21%, 13 points lower". The hidden table lists both columns and the change.
Layout: from 480 px the label column takes the spare width (at least 9rem) and every row keeps a 64 px change slot, so columns line up even on rows with change: :none (0.83.3+). Below 480 px the label sits above its row, the change gets its own line, and long values cut with an ellipsis, full value in the tooltip (0.83.1+).
timeline: adds a play/pause button, a scrubber (arrow keys step it) and the current category, as a chip apart from the button, under the caption. Since 0.77.0 the button shows a play or pause icon with "Play"/"Pause" (swapped by aria-pressed), button: :outline by default or :solid in the first series colour, with hover and focus rings; label: is its accessible name and tooltip. It works on :bar (vertical), :line and :area, with the categories in order. The server renders the full chart, so nothing moves without JavaScript.
Play reveals categories one by one at step_ms (default 600): columns grow in at their slot, the line extends to the next point, and the projection and band appear on the last step.
The axis is fixed to the final domain, so nothing rescales mid-play. autoplay: true starts on view.
The chart dispatches rui-chart:timeline with { index, label, playing }.
Reduced motion: the controls work, steps jump with no tween, and autoplay is ignored.
Not on :hbar, :stacked, :donut or :pie.
Population with projection and band
Sheppard East population
Press play
050,000100,000150,000
If every open or approvedapplication is built
201120162021If built
Census
Sheppard East population
Category
Census
2011
81,614
2016
86,038
2021
89,040
If built
0
Timeline on a line chart
<%=rui_chart(type: :line, timeline: { label: "Play 2011 to If built", step_ms: 600 },
series: [{ name: "Census", points: [["2011", 81614], ["2016", 86038], ["2021", 89040]] }],
projection: { from: "2021", to: "If built", value: 108258 },
band: { at: "If built", low: 104525, high: 112761, label: "If every open or approved application is built" },
value_format: :number) %>
captions: is your text, one per category (nil allowed) or a hash keyed by category label. It shows under the controls for the current step; final: replaces the last one at the end. The gem never writes a caption itself.
readout: shows a number that counts up on each step over 0.8 × step_ms (reduced motion jumps). mode: :cumulative (default) sums from the first category through the current step, :step sums at the step, :value shows one series' value at the step (at a category the series has no point for, the projection value when the projection starts from that series, else its last real point; 0.74.1+). series: "name" picks a series (default: every series summed), label: adds a caption after the number. Formatted with value_format:. readout: true is the cumulative default with no label.
Applications by year
Press play
76 applications within 400 m, 2008 to 2026
0246810
1220295564438681433
2008201120142017202020232026
Applications by year
Category
Open
Approved
Closed
2008
0
0
1
2009
0
0
2
2010
0
0
2
2011
0
0
0
2012
0
0
2
2013
0
0
9
2014
0
0
5
2015
0
1
4
2016
0
0
6
2017
0
0
4
2018
0
0
4
2019
0
1
2
2020
2
1
5
2021
2
1
3
2022
4
3
1
2023
0
0
1
2024
2
0
2
2025
1
2
0
2026
3
0
0
Captions and readout
<%=rui_chart(type: :bar, layout: :stacked, categories: @years, series: @series_by_status,
timeline: { label: "Play 2008 to 2026",
captions: { "2013" =>"2013: the busiest year, nine applications closed",
"2022" =>"2022: four still open, three approved" },
final: "76 applications within 400 m, 2008 to 2026",
readout: { mode: :cumulative, label: "applications filed" } }) %><%# one series' value at each step %><%=rui_chart(type: :bar, categories: @years, series: @series_by_status,
timeline: { readout: { series: "Open", mode: :value, label: "open" } }) %>
Update From the App
Dispatch rui-chart:update on the chart element to swap its data without re-rendering HTML, for example from a filter control. Marks tween to the new values over 400 ms, and tooltips, aria-labels, value labels, stack totals, legend values and the hidden table are rewritten. rui-chart:updated fires when the motion ends.
Categories can shrink (their bars, rows, totals and hover areas hide) but cannot grow past what the server rendered, and axis labels keep their server text.
Built-in formats (:number, :percent, :currency, :compact) are re-applied. A lambda value_format: cannot run in the browser, so an update formats as :number.
The domain grows if the new values need it and never shrinks. Line and area morph only when the category count is unchanged.
A playing timeline is paused first. A chart not yet scrolled into view settles its entry motion instantly before the update.
The two buttons above use a small docs-side Stimulus controller that dispatches the event. In your app, wire the dispatch to whatever drives the filter.
Entry Motion
animate: true (the default; :enter is an alias) plays once when the chart first scrolls into view: bars grow from the axis, lines draw in, areas fade up after the line, donut and pie slices reveal in order, and the projection and band fade in last. animate: false turns it off. Reduced motion shows the final state.
Multi-series column charts use full-height column areas: hover anywhere in a column to see its whole tooltip, with every series. Stacked columns show their total above each stack. With show_share: true, each line also shows its share of that column. Both the column tooltip and the totals hide while a legend item is toggled off, since they describe every series.
Text, muted text, tracks, tooltips and the title font are CSS variables. The chart has no dark: classes, so a subtree themed by its own colour settings works. Every fallback is a light-dark() pair and follows the element's color-scheme, so a color-scheme: dark subtree gets dark chrome with no variables set.
Example data. Illustrative example built from aggregate figures only, 76 applications within 400 m. Sources: City of Toronto open data, including building applications, population from the 2011, 2016 and 2021 Census, and the TTC and collisions data as used in the Sheppard East dashboard. No resident reports, street addresses or Neighbourhood care data are shown.
Population, census and projection
Sheppard East population
Census and projection
050,000100,000150,000
If every open or approvedapplication is built
201120162021If built
Census
Sheppard East population
Category
Census
2011
81,614
2016
86,038
2021
89,040
If built
0
Status share
Applications by status
Open14
Approved9
Closed53
Applications by status
Category
Value
Share
Open
14
14 of 76 · 18%
Approved
9
9 of 76 · 12%
Closed
53
53 of 76 · 70%
Status donut
Open14(18.4%)
Approved9(11.8%)
Closed53(69.7%)
Chart data
Category
Value
Open
14 (18.4%)
Approved
9 (11.8%)
Closed
53 (69.7%)
Sheppard East: Applications by Year
Illustrative example. Applications within 400 m by year and current status, 76 in total. Years with no applications are zero.
This chart has 19 categories. Vertical bar and line charts show at most 8 category labels: every nth, always the first and last. Every mark keeps its full label in its tooltip, aria-label and the hidden table. label_every: n sets the step yourself, and 1 shows all. Horizontal bars list every row.
Edge Cases
Zero values
A zero draws a zero-height mark that is still focusable.
01234
MonTueWed
Chart data
Category
Value
Mon
0
Tue
4
Wed
0
All values zero
Shows a zero baseline, no marks, and the note "All values are zero."
00.20.40.60.81
MonTue
Chart data
Category
Value
Mon
0
Tue
0
All values are zero.
Long labels
Long category labels truncate. The full text is in the tooltip and the aria-label.
Street lighting repair and maintenance request
64
Pothole on a residential side street
41
Noise complaint
18
020406080
Chart data
Category
Value
Street lighting repair and maintenance request
64
Pothole on a residential side street
41
Noise complaint
18
One category, many series
Works. The bars share the category slot.
050100150
Week 14
Chart data
Category
Walk
Bike
Bus
Car
Week 14
120
80
150
60
No-JS and Accessibility
Without JavaScript the chart still renders, prints, and shows every value in the hidden table. Legend toggles and tooltips need JavaScript.
Every mark is focusable and has an aria-label such as "2022, Cyclist: 2 collisions".
A visually hidden table holds every series. The 100% bar has one too, with label, value and share.