Skip to content

Data

Every chart of ::chart in a 16:9 slide, drawn as static SVG at build time from CSV files and ready chart JSONs: lines, stacked areas, bars, lying bars, dots, a heatmap, a scatter plot, small multiples, key figures (:::kpi and :value) and two GeoJSON maps (choropleth and points), in light and dark mode.

Advanced::chart:valueReady chartsMapsLight and dark
pnpm --filter recit-example-deck-data dev
Open the demo

Source: examples/deck-data/slides.md

The demo

Click, tap or use ← →. 13 slides, 00:24 to presentOpen fullscreen

Try it

  1. Add series="Lorem" to ::chart{data=visits} on slide 2: the chart, its legend and its data table keep that series alone.
  2. Press T: every chart switches between its light and dark tokens without redrawing.
  3. Export to PDF: pnpm --filter recit-example-deck-data export.

Source code

examples/deck-data/slides.md
--- title: Data Deck author: Lorem Ipsum Team description: "Every chart of ::chart in a 16:9 slide: lines, areas, bars, dots, a heatmap, a scatter plot, small multiples, key figures and two maps." lang: en data: sales: ./data/sales.csv visits: { chart: ./charts/visits.json } stock: { chart: ./charts/stock.json } regions: { chart: ./charts/regions.json } ranking: { chart: ./charts/ranking.json } spread: { chart: ./charts/spread.json } week: { chart: ./charts/week.json } places: { chart: ./charts/places.json } sites: { chart: ./charts/sites.json } figures: { chart: ./charts/figures.json } areas: { chart: ./charts/areas.json } spots: { chart: ./charts/spots.json } --- --- { "layout": "cover", "id": "cover" } # Lorem ipsum in charts ## Dolor sit amet, one chart per slide --- id=line # Line ::chart{data=visits} --- id=area # Stacked area ::chart{data=stock} --- id=bar # Bars ::chart{data=regions} --- id=lying-bars # Lying bars ::chart{data=ranking} --- id=dot # Dots ::chart{data=spread} --- id=heatmap # Heatmap ::chart{data=week} --- id=scatter # Scatter ::chart{data=places} --- id=facet # Small multiples ::chart{data=sites} --- id=kpi-four # Four key figures ::chart{data=figures} --- id=kpi-two # Two key figures :::kpi{cols=2} - :value{data=sales field=revenue agg=sum format=compact} Revenue First quarter, two regions - :value{data=sales field=orders agg=sum} Orders ::: ::source[Lorem ipsum dataset, [dolor sit amet](https://example.com)] :::howto{caption="Lorem ipsum dolor sit amet, 2026."} Consectetur adipiscing elit: sed do eiusmod tempor incididunt. ::: :::limits{visible=2} - Lorem ipsum dolor sit amet. - Consectetur adipiscing elit. - Sed do eiusmod tempor incididunt. ::: --- id=choropleth # Choropleth ::chart{data=areas} --- id=points # Points ::chart{data=spots}

Ready chart

examples/deck-data/charts/visits.json
{ "$schema": "https://recit.dev/schema/v1/chart.json", "type": "line", "title": "Lorem visits by month", "subtitle": "Dolor sit amet, index 100 = average month", "source": "Lorem dataset, 2026", "x": [ "2026-01", "2026-02", "2026-03", "2026-04", "2026-05", "2026-06", "2026-07", "2026-08", "2026-09", "2026-10", "2026-11", "2026-12" ], "xLabel": "Month", "yLabel": "Visits", "unit": "index", "series": [ { "name": "Lorem", "values": [120, 155, 159, 163, null, 148, 125, 111, 97, 89, 97, 111] }, { "name": "Ipsum", "values": [119, 117, 115, 110, 100, 85, 83, 79, 85, 92, 97, 110] } ], "marks": [ { "y": 100, "label": "Average" } ], "roles": { "Lorem": "alert", "Ipsum": "reference" } }