score:0

you can use floating bars for this:

var options = {
  type: 'bar',
  data: {
    labels: ["red", "blue", "yellow", "green", "purple", "orange"],
    datasets: [{
      label: '# of votes',
      data: [
        [2, 3],
        [1, 6],
        [4, 8],
        [6, 9],
        [1, 5],
        [0, 3]
      ],
      backgroundcolor: 'orange'
    }, ]
  },
  options: {}
}

var ctx = document.getelementbyid('chartjscontainer').getcontext('2d');
new chart(ctx, options);
<body>
  <canvas id="chartjscontainer" width="600" height="400"></canvas>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/3.6.0/chart.js"></script>
</body>


Related Query

More Query from same tag