Multiple series
Three car models compared.
Open the chart without page chrome ↗
const options = {
chart: {
height: 400,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "radar",
toolbar: {
show: false
}
},
series: [
{
name: "Model S2",
data: [80, 57, 57, 61, 43, 94]
},
{
name: "Model T5",
data: [85, 84, 92, 57, 73, 76]
},
{
name: "Model X9",
data: [75, 49, 90, 69, 82, 84]
}
],
xaxis: {
categories: ["Range", "Comfort", "Speed", "Safety", "Price", "Cargo"]
},
stroke: {
width: 2
},
fill: {
opacity: 0.12
},
markers: {
size: 3
},
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: 400,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "radar",
toolbar: {
show: false
}
},
series: [
{
name: "Model S2",
data: [80, 57, 57, 61, 43, 94]
},
{
name: "Model T5",
data: [85, 84, 92, 57, 73, 76]
},
{
name: "Model X9",
data: [75, 49, 90, 69, 82, 84]
}
],
xaxis: {
categories: ["Range", "Comfort", "Speed", "Safety", "Price", "Cargo"]
},
stroke: {
width: 2
},
fill: {
opacity: 0.12
},
markers: {
size: 3
},
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 radar-radar-multiple-series.json --out radar-radar-multiple-series.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/radar/radar-multiple-series/index.md …