Runde Zellen
Kreisförmige Zellen mit Wertbeschriftungen.
Diagramm ohne Website-Rahmen öffnen ↗
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() Warten auf das Diagramm.
Open Data & agent view to read this chart through chart.describe().
Aus der laufenden Bibliothek über das optionale agent/describe -Modul gelesen. Text, Tabelle und JSON zeigen denselben Zustand. Ausschließlich Demonstrationsdaten.
$ 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. Speichern Sie zuerst eine JSON-Spezifikation und prüfen Sie vor dem Rendern die geladene Runtime und die unterstützten Module. Befehlsreferenz
Loading /gallery/heatmap/rounded/index.md …