Three measures
Minimum, target and actual per region.
Open the chart without page chrome ↗
const options = {
chart: {
height: 380,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "dumbbell",
toolbar: {
show: false
}
},
series: [
{
name: "Minimum",
data: [32, 31, 25, 37, 23]
},
{
name: "Target",
data: [57, 61, 69, 58, 65]
},
{
name: "Actual",
data: [81, 54, 61, 40, 44]
}
],
xaxis: {
categories: ["North", "South", "East", "West", "Central"]
},
title: {
text: "Service level by region (%)"
},
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'
WestCoastCharts.use(types)
const options = {
chart: {
height: 380,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "dumbbell",
toolbar: {
show: false
}
},
series: [
{
name: "Minimum",
data: [32, 31, 25, 37, 23]
},
{
name: "Target",
data: [57, 61, 69, 58, 65]
},
{
name: "Actual",
data: [81, 54, 61, 40, 44]
}
],
xaxis: {
categories: ["North", "South", "East", "West", "Central"]
},
title: {
text: "Service level by region (%)"
},
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 dumbbell-dumbbell-three-measures.json --out dumbbell-dumbbell-three-measures.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/dumbbell/dumbbell-three-measures/index.md …