function checkIfFormIsFullyFilled() { console.log('button clicked'); if (startDate.value !== '' && startTime.value !== '' && endDate.value !== '' && endTime.value !== '' && count.value !== '' && interval.value !== '') { getValuesAndPlotChart(); } else { warning.style.display = 'block'; } }