Round cells
Circular cells with value labels.
Open the chart without page chrome ↗
const options = {
chart: {
height: 380,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "heatmap",
toolbar: {
show: false
}
},
series: [
{
name: "Q1",
data: [
{
x: "Platform",
y: 55
},
{
x: "Payments",
y: 40
},
{
x: "Search",
y: 63
},
{
x: "Mobile",
y: 81
},
{
x: "Data",
y: 42
},
{
x: "Growth",
y: 3
}
]
},
{
name: "Q2",
data: [
{
x: "Platform",
y: 50
},
{
x: "Payments",
y: 90
},
{
x: "Search",
y: 33
},
{
x: "Mobile",
y: 53
},
{
x: "Data",
y: 92
},
{
x: "Growth",
y: 63
}
]
},
{
name: "Q3",
data: [
{
x: "Platform",
y: 44
},
{
x: "Payments",
y: 57
},
{
x: "Search",
y: 51
},
{
x: "Mobile",
y: 30
},
{
x: "Data",
y: 29
},
{
x: "Growth",
y: 86
}
]
},
{
name: "Q4",
data: [
{
x: "Platform",
y: 50
},
{
x: "Payments",
y: 81
},
{
x: "Search",
y: 40
},
{
x: "Mobile",
y: 15
},
{
x: "Data",
y: 13
},
{
x: "Growth",
y: 80
}
]
}
],
plotOptions: {
heatmap: {
shape: "circle"
}
},
colors: ["#7c3aed"],
dataLabels: {
enabled: true
},
title: {
text: "Goal completion by team (%)"
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
const options = {
chart: {
height: 380,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "heatmap",
toolbar: {
show: false
}
},
series: [
{
name: "Q1",
data: [
{
x: "Platform",
y: 55
},
{
x: "Payments",
y: 40
},
{
x: "Search",
y: 63
},
{
x: "Mobile",
y: 81
},
{
x: "Data",
y: 42
},
{
x: "Growth",
y: 3
}
]
},
{
name: "Q2",
data: [
{
x: "Platform",
y: 50
},
{
x: "Payments",
y: 90
},
{
x: "Search",
y: 33
},
{
x: "Mobile",
y: 53
},
{
x: "Data",
y: 92
},
{
x: "Growth",
y: 63
}
]
},
{
name: "Q3",
data: [
{
x: "Platform",
y: 44
},
{
x: "Payments",
y: 57
},
{
x: "Search",
y: 51
},
{
x: "Mobile",
y: 30
},
{
x: "Data",
y: 29
},
{
x: "Growth",
y: 86
}
]
},
{
name: "Q4",
data: [
{
x: "Platform",
y: 50
},
{
x: "Payments",
y: 81
},
{
x: "Search",
y: 40
},
{
x: "Mobile",
y: 15
},
{
x: "Data",
y: 13
},
{
x: "Growth",
y: 80
}
]
}
],
plotOptions: {
heatmap: {
shape: "circle"
}
},
colors: ["#7c3aed"],
dataLabels: {
enabled: true
},
title: {
text: "Goal completion by team (%)"
},
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 heatmap-rounded.json --out heatmap-rounded.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/heatmap/rounded/index.md …