Radial chart
A card with a radial chart built on the Chart component: share of visitors by browser.
Installation
Usage
Replace the JSON configuration inside the <figure> with your data (see the Chart component for every option) and update the title, description and footer text. The card's CSS only styles the footer; the chart itself comes from the Chart component (chart.css and chart.js).
Accessibility
- The figure caption describes the data; it captions the "Show data" table, which holds every value for screen reader and keyboard users.
- The card is a section named by its heading.
Dependencies
- Bootstrap 5.3+ CSS.
themes/tokens/tokens.css.- The
chartandcardcomponents.
Source
The exact files the CLI installs (chart-radial@1.0.0). View on GitHub · Report an issue
html
<section class="card bootcn-card bootcn-chart-card" aria-labelledby="chart-radial-title">
<header class="bootcn-card__header">
<h2 class="bootcn-card__title" id="chart-radial-title">Radial chart</h2>
<p class="bootcn-card__description">Share of visitors by browser.</p>
</header>
<div class="bootcn-card__content">
<figure class="bootcn-chart" data-bootcn-chart>
<figcaption class="visually-hidden">Visitors by browser, June 2026.</figcaption>
<script type="application/json">
{
"type": "radial",
"max": 300,
"categoryLabel": "Browser",
"categories": ["Chrome", "Safari", "Firefox", "Edge", "Other"],
"series": [
{
"name": "Visitors",
"data": [275, 200, 187, 173, 90]
}
]
}
</script>
</figure>
</div>
<footer class="bootcn-card__footer bootcn-chart-card__footer">
<p class="bootcn-chart-card__trend">Chrome leads with 30%</p>
<p class="bootcn-chart-card__note">June 2026</p>
</footer>
</section>css
.bootcn-chart-card__footer {
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
font-size: 0.875rem;
}
.bootcn-chart-card__trend {
margin: 0;
font-weight: 500;
}
.bootcn-chart-card__note {
margin: 0;
color: var(--bootcn-muted-foreground);
}
