DoughnutChart

A highly customizable doughnut chart wrapper for Chart.js.

Basic Usage

By default, the `DoughnutChart` component renders a placeholder dataset showing device usage.

Device Usage

Custom Data

You can pass custom `data` and `options` to fully customize the doughnut chart.

Demographics

API Reference

Property
Description
Type
Default

class

Additional CSS classes to apply to the chart container. string -

title

The title of the chart displayed at the top. string -

cutout

The percentage of the chart that is cut out of the middle. string '70%'

data

A valid Chart.js data object. ChartData<'doughnut'> -

options

A valid Chart.js options object. ChartOptions<'doughnut'> -