JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]" defer></script>
<style>
  .chart-container p {
    font-family: "Work Sans", sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0;
  }

</style>
<div class="chart-container" style="position: relative; height:auto; width:100%">
  <p>
    Destino de las exportaciones españolas de residuos plásticos
  </p>
  <p>
    <small>2019 - datos hasta noviembre</small>
  </p>
  <canvas id="bar_chart_7" width="350" height="250"></canvas>
</div>
<script>
  document.addEventListener("DOMContentLoaded", function(event) {
    var ctx = document.getElementById("bar_chart_7");
    var bar_chart_7 = new Chart(ctx, {
      type: 'horizontalBar',
      data: {
        labels: ["Hong Kong", "Alemania", "Malasia", "Portugal", "Francia", "Turquía", "Italia", "Indonesia"],
        datasets: [{
          label: '',
          data: [10403, 8937, 7603, 5895, 5504, 4942, 4591, 3342],
          backgroundColor: [
            'rgba(134, 139, 134, 0.85)',
            'rgba(91, 74, 89, 0.85)',
            'rgba(122, 189, 148, 0.85)',
            'rgba(195, 224, 166, 0.85)',
            'rgba(215, 213, 161, 0.85)',
            'rgba(218,241,250, 0.85)',
            'rgba(255, 225, 159, 0.85)',
            'rgba(253, 246, 178, 0.85)',
            'rgba(255, 160, 0, 0.85)',
            'rgba(255, 196, 167, 0.85)',
            'rgba(255, 121, 84, 1)'

          ]
        }]
      },
      options: {
        title: {
          display: false,
          text: 'Destino de las exportaciones españolas de residuos plásticos en 2017',
          fontSize: 16,
          fontFamily: '"Work Sans",sans-serif',
          fontColor: '#212529'
        },
        legend: {
          display: false,
          labels: {
            fontName: '"Work Sans",sans-serif',
            fontColor: '#212529',
            fontSize: 13
 ...