KPI gauge grid
Eight gauges from one definition, sharing the same bands.
Open the chart without page chrome ↗
const options = {
chart: {
height: "auto",
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "gauge",
toolbar: {
show: false
}
},
series: [
{
name: "Score",
kpi: "Uptime",
data: [60]
},
{
name: "Score",
kpi: "NPS",
data: [55]
},
{
name: "Score",
kpi: "SLA",
data: [85]
},
{
name: "Score",
kpi: "Coverage",
data: [87]
},
{
name: "Score",
kpi: "Velocity",
data: [70]
},
{
name: "Score",
kpi: "Quality",
data: [57]
},
{
name: "Score",
kpi: "Budget",
data: [74]
},
{
name: "Score",
kpi: "Hiring",
data: [57]
}
],
labels: ["Score"],
plotOptions: {
radialBar: {
startAngle: -110,
endAngle: 110,
bands: [
{
from: 0,
to: 60,
color: "#fecaca"
},
{
from: 60,
to: 85,
color: "#fde68a"
},
{
from: 85,
to: 100,
color: "#bbf7d0"
}
],
dataLabels: {
name: {
show: false
}
}
}
},
trellis: {
by: "kpi",
columns: 4,
aspectRatio: 1.2,
legend: "none"
},
title: {
text: "KPI scores"
},
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 trellis from 'west-coast-charts/features/trellis'
WestCoastCharts.use(types).use(trellis)
const options = {
chart: {
height: "auto",
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "gauge",
toolbar: {
show: false
}
},
series: [
{
name: "Score",
kpi: "Uptime",
data: [60]
},
{
name: "Score",
kpi: "NPS",
data: [55]
},
{
name: "Score",
kpi: "SLA",
data: [85]
},
{
name: "Score",
kpi: "Coverage",
data: [87]
},
{
name: "Score",
kpi: "Velocity",
data: [70]
},
{
name: "Score",
kpi: "Quality",
data: [57]
},
{
name: "Score",
kpi: "Budget",
data: [74]
},
{
name: "Score",
kpi: "Hiring",
data: [57]
}
],
labels: ["Score"],
plotOptions: {
radialBar: {
startAngle: -110,
endAngle: 110,
bands: [
{
from: 0,
to: 60,
color: "#fecaca"
},
{
from: 60,
to: 85,
color: "#fde68a"
},
{
from: 85,
to: 100,
color: "#bbf7d0"
}
],
dataLabels: {
name: {
show: false
}
}
}
},
trellis: {
by: "kpi",
columns: 4,
aspectRatio: 1.2,
legend: "none"
},
title: {
text: "KPI scores"
},
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 trellis-kpi-gauge-grid.json --out trellis-kpi-gauge-grid.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/trellis/kpi-gauge-grid/index.md …