Chart.js Storage Doughnut
A doughnut chart of storage usage, via Chart.js.
Requires Bootstrap 5, Chart.js. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script><div class="card border-0 shadow-sm" style="width:320px;max-width:100%"><div class="card-body"><h6 class="fw-bold mb-2">Storage used</h6><canvas id="cjDough" height="200"></canvas></div></div>new Chart(document.getElementById('cjDough'),{type:'doughnut',data:{labels:['Docs','Media','Apps','Free'],datasets:[{data:[35,28,15,22],backgroundColor:['#0d6efd','#ff477e','#f59e0b','#e9ecef'],borderWidth:0}]},options:{cutout:'70%',plugins:{legend:{position:'bottom'}}}});Free to use.This component uses Bootstrap 5, Chart.js (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.