JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.min.js"></script>
<div style='display: flex; flex-direction: row'>
  <div style='flex: 5; border: 1px solid; min-width:0'>
    this chart only grows; try changing the width of the window
    <div class='position:relative'>
      <canvas id='chart'></canvas>
    </div>
  </div>
  <div style='flex: 2; border: 1px solid green'>
    intentionally blank
  </div>
</div>


this chart should respond well
<div class='position:relative'>
  <canvas id='chart2'></canvas>
</div>

JavaScript

const make = ({
  id,
  responsive = false
}) => {
  const barChartElement = document.getElementById(id);
  const barChart = new Chart(barChartElement, {
    type: 'horizontalBar',
    responsive,
    options: {
      legend: {
        display: false
      },
      scales: {
        yAxes: [{
          ticks: {
            beginAtZero: true,
          },
          barPercentage: 0.3
        }]
      },
      elements: {
        rectangle: {
          borderSkipped: 'left',
        }
      }
    },
    data: {
      legend: false,
      labels: [],
      datasets: [{
        data: [],
      }]
    }
  });

  setInterval(function() {
    var random = Array.from({
      length: 3
    }, () => Math.floor(Math.random() * 40));

    var sorted = random.sort(function(a, b) {
      return b - a;
    });

    barChart.data.labels = sorted;
    barChart.data.datasets[0].data = sorted;
    barChart.update();
  }, 2000);
}

make({
  id: 'chart'
})
make({
  id: 'chart2',
  responsive: true
})