Marathon storyboard

Play a race story (start, halfway, finish); the marks regroup per frame, with transport, scrubber and captions.

Chart type
Unit unit
Tier
Free Core
Collection
Unit & pictogram
Render
Live, site theme
View .md Agent setup
LIVE/unit/marathon-storyboard33 of 33 in Unit

Configuration

Raw Standalone
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()