Analytics Bar Card
A traffic analytics card with a CSS bar chart and range selector.
Requires Bootstrap 5. 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><div class="card border-0 shadow-sm" style="max-width:320px">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center mb-2"><h6 class="fw-bold mb-0">Traffic</h6><select class="form-select form-select-sm" style="width:90px"><option>7 days</option></select></div>
<div class="d-flex align-items-end gap-1" style="height:80px">
<div class="bg-primary rounded-top flex-fill" style="height:40%"></div><div class="bg-primary rounded-top flex-fill" style="height:65%"></div><div class="bg-primary rounded-top flex-fill" style="height:50%"></div><div class="bg-primary rounded-top flex-fill" style="height:85%"></div><div class="bg-primary rounded-top flex-fill" style="height:70%"></div><div class="bg-primary rounded-top flex-fill" style="height:95%"></div><div class="bg-primary rounded-top flex-fill" style="height:60%"></div>
</div>
<div class="d-flex justify-content-between text-secondary mt-1" style="font-size:.7rem"><span>Mon</span><span>Sun</span></div>
</div>
</div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.