</> ConvertAtlas Developer Tools
Bootstrap 5 · Intermediate

ApexCharts Multi-Line

A two-series smooth line chart comparing years, via ApexCharts.

Requires Bootstrap 5, ApexCharts. 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/apexcharts@3.49.1/dist/apexcharts.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">Multi-series trend</h6><div id="axLine"></div></div></div>
new ApexCharts(document.getElementById('axLine'),{chart:{type:'line',height:220,toolbar:{show:false}},series:[{name:'2025',data:[30,40,35,50,49,60]},{name:'2026',data:[20,35,40,45,55,70]}],xaxis:{categories:['Jan','Feb','Mar','Apr','May','Jun']},colors:['#94a3b8','#0d6efd'],stroke:{curve:'smooth',width:3},dataLabels:{enabled:false}}).render();
Free to use.This component uses Bootstrap 5, ApexCharts (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.