Testing chart.js

Balken für Ideenmanagement

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>

<canvas id="myChart" width="400" height="400"></canvas>

<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="https://www.chartjs.org/dist/2.7.3/Chart.bundle.js"></script>

JavaScript

var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, {
    type: 'line',
    data: {
        labels: ['#16',
'#17',
'#118',
'#2183612',
'#34343',
'#43242423',
'#119',
'#120',
'#121',
'#122',
'#123',
'#124',
'#125',
'#126',
'#127',
'#128',
'#129',
'#130',
'#131',
'#132',
'#133',
'#134',
'#135',
'#136',
'#137',
'#138',
'#139'],
        datasets: [{
            label: 'Montos por facturas',
            data: [4000,
3000,
5000,
6200,
6200,
620,
4000,
2000.1,
2000.1,
2000.1,
2000.1,
1300.1,
2000.1,
1500,
3300,
2000.1,
1500,
2000.1,
1200,
2008.1,
1200,
2000.1,
700,
1000,
2000.1,
1200,
1599.98
],
            backgroundColor: [
                'rgba(255, 99, 132, 0.2)',
                'rgba(54, 162, 235, 0.2)',
                'rgba(255, 206, 86, 0.2)',
                'rgba(75, 192, 192, 0.2)',
                'rgba(153, 102, 255, 0.2)',
                'rgba(255, 159, 64, 0.2)'
            ],
            borderColor: [
                'rgba(255,99,132,1)',
                'rgba(54, 162, 235, 1)',
                'rgba(255, 206, 86, 1)',
                'rgba(75, 192, 192, 1)',
                'rgba(153, 102, 255, 1)',
                'rgba(255, 159, 64, 1)'
            ],
            borderWidth: 1
        }]
    },
    options: {
        scales: {
            yAxes: [{
                ticks: {
                    beginAtZero:true
                }
            }]
        }
    }
});