Basic slope
Satisfaction per product area, 2025 vs 2026.
Why it matters end labels relax so they never overlap; colour by direction; hover focus
Open the chart without page chrome ↗
const options = {
chart: {
height: 420,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "slope",
toolbar: {
show: false
}
},
series: [
{
name: "Atlas",
data: [47, 49]
},
{
name: "Beacon",
data: [49, 42]
},
{
name: "Cirrus",
data: [55, 56]
},
{
name: "Delta",
data: [52, 44]
},
{
name: "Ember",
data: [73, 79]
},
{
name: "Fjord",
data: [60, 49]
}
],
xaxis: {
categories: ["2025", "2026"]
},
plotOptions: {
slope: {
colorBy: "direction"
}
},
title: {
text: "Customer satisfaction score"
},
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: 420,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "slope",
toolbar: {
show: false
}
},
series: [
{
name: "Atlas",
data: [47, 49]
},
{
name: "Beacon",
data: [49, 42]
},
{
name: "Cirrus",
data: [55, 56]
},
{
name: "Delta",
data: [52, 44]
},
{
name: "Ember",
data: [73, 79]
},
{
name: "Fjord",
data: [60, 49]
}
],
xaxis: {
categories: ["2025", "2026"]
},
plotOptions: {
slope: {
colorBy: "direction"
}
},
title: {
text: "Customer satisfaction score"
},
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 slope-basic.json --out slope-basic.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/slope/basic/index.md …