# Data

import visits from "../../../../../examples/deck-data/charts/visits.json?raw";

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.

<ExampleHeader folder="deck-data" demo="data" file="slides.md" level="Advanced" features={["::chart", ":value", "Ready charts", "Maps", "Light and dark"]} />

## The demo

<StoryEmbed slug="presentation/data" />

## 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

<SourceFile deck="presentation/data" title="examples/deck-data/slides.md" language="md" />

## Ready chart

<SourceFile code={visits} title="examples/deck-data/charts/visits.json" language="json" />
