@shahmeernasir/simple-donut-chart
v1.0.4
Published
Simple donut chart in JavaScript
Readme
Simple Donut Chart
A lightweight, customizable donut chart library for your JavaScript projects.
Table of contents
<body>
<div id="donut"></div>
</body>import { createDonutChart } from '@shahmeernasir/simple-donut-chart';
const data = [
{ value: 10, label: 'A' },
{ value: 25, label: 'B' },
{ value: 25, label: 'B' },
{ value: 40, label: 'C' }
];
const options = {
radius: 80,
strokeWidth: 16,
strokeLineCap: 'none',
colors: [],
showLegend: true,
animationDuration: 1000,
};
createDonutChart('#donut', data, options);
Installation
Installation is done using the
npm install command:
npm install @shahmeernasir/simple-donut-chartFeatures
- Simple
- Zero dependencies

