Marathon storyboard
Play a race story (start, halfway, finish); the marks regroup per frame, with transport, scrubber and captions.
Open the chart without page chrome ↗
const options = {
chart: {
height: 440,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "unit",
toolbar: {
show: false
}
},
series: [400],
labels: ["Running"],
plotOptions: {
unit: {
transition: "flow",
clusterLabels: {
show: true
}
}
},
title: {
text: "Marathon: Start"
},
wcc: {
narrative: {
enabled: true,
frames: [
{
t: "Start",
label: "Start",
caption: "400 runners cross the start line.",
series: [400],
options: {
labels: ["Running"],
title: {
text: "Marathon: Start"
}
}
},
{
t: "Halfway",
label: "Halfway",
caption: "The field splits into a lead pack, the main field and walkers.",
series: [120, 230, 50],
options: {
labels: ["Lead pack", "Main field", "Walking"],
title: {
text: "Marathon: Halfway"
}
}
},
{
t: "Finish",
label: "Finish",
caption: "310 finish in time, 60 after the cut-off, 30 do not finish.",
series: [310, 60, 30],
options: {
labels: ["Finished", "Cut-off", "DNF"],
title: {
text: "Marathon: Finish"
}
}
}
],
frameDuration: 1600,
interpolate: false
}
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
import narrative from 'west-coast-charts/features/narrative'
WestCoastCharts.use(types).use(narrative)
const options = {
chart: {
height: 440,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "unit",
toolbar: {
show: false
}
},
series: [400],
labels: ["Running"],
plotOptions: {
unit: {
transition: "flow",
clusterLabels: {
show: true
}
}
},
title: {
text: "Marathon: Start"
},
wcc: {
narrative: {
enabled: true,
frames: [
{
t: "Start",
label: "Start",
caption: "400 runners cross the start line.",
series: [400],
options: {
labels: ["Running"],
title: {
text: "Marathon: Start"
}
}
},
{
t: "Halfway",
label: "Halfway",
caption: "The field splits into a lead pack, the main field and walkers.",
series: [120, 230, 50],
options: {
labels: ["Lead pack", "Main field", "Walking"],
title: {
text: "Marathon: Halfway"
}
}
},
{
t: "Finish",
label: "Finish",
caption: "310 finish in time, 60 after the cut-off, 30 do not finish.",
series: [310, 60, 30],
options: {
labels: ["Finished", "Cut-off", "DNF"],
title: {
text: "Marathon: Finish"
}
}
}
],
frameDuration: 1600,
interpolate: false
}
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render() Waiting for the chart.
Open Data & agent view to read this chart through chart.describe().
Read from the running library through its optional agent/describe module. Text, table and JSON share the same snapshot. Demo data only.
$ wcc chart export unit-marathon-storyboard.json --out unit-marathon-storyboard.svg --with-table Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm. Save a JSON spec first and check the loaded runtime and supported modules before rendering. Command reference
Loading /gallery/unit/marathon-storyboard/index.md …