// Chart options var lotteryOptions = { scales: { y: { beginAtZero: true } } };
// Get the canvas context var ctx = document.getElementById('lotteryChart').getContext('2d');
// Create the bar chart var myChart = new Chart(ctx, { type: 'bar', data: lotteryData, options: lotteryOptions });