// Optionen des Diagramms var opcionesLoteria = { scales: { y: { beginAtZero: true } } };
// Den Kontext der Leinwand abrufen var ctx = document.getElementById('lotteryChart').getContext('2d');
// Balkendiagramm erstellen var myChart = new Chart(ctx, { type: 'bar', data: datosLoteria, options: opcionesLoteria });