Javascript – How can I make sure that my graph's y-axis always starts at zero, hiding any numbers that are negative from view?
var fireCtx = document.getElementById('fireNumberChart').getContext('2d'); var fireChart = new Chart(fireCtx, { type: 'line', data: { labels: [], // Add your labels here datasets: [{ label: 'Sensor Value', data: [], // Add your sensor data here backgroundColor: 'rgba(54, 162, 235, 0.2)', borderColor:…