Marathon-Storyboard

Spielen Sie die Geschichte eines Rennens ab (Start, Halbzeit, Ziel); die Markierungen ordnen sich je Einzelbild neu, mit Wiedergabesteuerung, Scrubber und Untertiteln.

Chart type
Einheit unit
Tier
Kostenloser Core
Collection
Unit & pictogram
Zeichnen
Live im Website-Design
.md ansehen Agenten einrichten
LIVE/unit/marathon-storyboard33 of 33 in Unit

Configuration

Original 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()