JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.bundle.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]" defer></script>
<div class="chart-container" style="position: relative; height:auto; width:100%">
    <canvas id="line_chart_2x" width="350" height="250"></canvas>
</div>
<script>
    document.addEventListener("DOMContentLoaded", function(event) {
        var ctx = document.getElementById("line_chart_2x");
        var line_chart_2 = new Chart(ctx, {
            type: 'line',
            data: {
                labels: ["2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019"],
                datasets: [{
                        label: 'Número de siniestros',
                        data: [9, 18, 16, 19, 33, 55, 50, 65],
                        borderColor: 'rgba(142, 229, 187, 1)',
                        backgroundColor: 'rgba(0,0,0,0)'
                    },
                    
                ]
            },
            options: {
                title: {
                    display: true,
                    text: 'Total de incendios en plantas de reciclaje aparecidos en medios',
                    fontSize: 16,
                    fontFamily: '"Work Sans",sans-serif',
                    fontColor: '#212529'
                },
                legend: {
                    display: true,
                    labels: {
                        fontName: '"Work Sans",sans-serif',
                        fontColor: '#212529',
                        fontSize: 13
                    }
                },
                layout: {
                    padding: {
                        bottom: 20
                    }
                },
                scales: {
                    yAxes: [{
                        ticks: {
                            beginAtZero: true,
                            max: 70
                            ,
                            fontFamily: '"Work...