Vertical Bar two datasets

Chart.js

by akmiecik

HTML

<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
 <div>
    <canvas id="canvas" height="100"></canvas>
  </div>

JavaScript

window.onload = function() {
      var ctx = document.getElementById('canvas').getContext('2d');
      window.myBar = new Chart(ctx, {
        type: 'bar',
        data: {
          labels: ["Q0", "Q1", "Q2", "Q3", "Q4"],
          datasets: [{
            label: 'estimate',
            data: [[2, 7], [2, 10], [1, 3], [1, 4], [4, 8]],
            backgroundColor: 'lightblue',
            borderRadius: 10,
          }]
 },
 
 
        options: {
          responsive: true,
          legend: {
            position: 'top',
          },
          title: {
            display: true,
            text: 'Estimate Histoy'
          }
        }
      });
    };