Skip to main content
WireKit
Copy for LLM

Pie + Donut

ApexCharts uses the spelling donut (not doughnut — Chart.js convention). WireKit's adapter accepts both via the mapType() rename: <x-wirekit-chart type="doughnut"> is normalized to donut inside the adapter, so developer snippets work cross-adapter.

Basic Example — Traffic sources

Traffic-source breakdown (last 30 days)

Donut — Plan distribution

Active subscribers by plan tier

Monochrome variant

<x-wirekit-chart
    type="donut"
    :labels="['Q1', 'Q2', 'Q3', 'Q4']"
    :datasets="[['data' => [42, 58, 71, 89]]]"
    :options="[
        'theme' => ['monochrome' => ['enabled' => true, 'color' => 'var(--color-wk-accent)', 'shadeTo' => 'light']],
    ]"
/>

ApexCharts shades each slice from the supplied color towards lighter/darker tones — useful for "single brand color" dashboards where rainbow palettes feel out of place.

License note

ApexCharts is non-MIT — see the License section on the Chart overview page and apexcharts.com/license for the full terms.

See Also

Design Tokens

See ApexCharts adapter — Design Tokens for the color, typography, and grid tokens shared across every ApexCharts demo.