</> ConvertAtlas Developer Tools
Bootstrap 5 · Intermediate

Chart.js Bar + Line

A combined bar-and-line chart of sales and profit, 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:420px;max-width:100%"><div class="card-body"><h6 class="fw-bold mb-2">Sales & profit</h6><canvas id="cjMix" height="180"></canvas></div></div>
new Chart(document.getElementById('cjMix'),{type:'bar',data:{labels:['Jan','Feb','Mar','Apr','May'],datasets:[{type:'line',label:'Profit',data:[12,19,15,25,22],borderColor:'#16a34a',borderWidth:3,tension:.4},{type:'bar',label:'Sales',data:[30,42,38,55,48],backgroundColor:'#0d6efd',borderRadius:6}]},options:{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.