From 5cf05bd4b6cb0fc5842a64bcf4f68152589f71d4 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Thu, 18 Jul 2024 16:14:25 -0400 Subject: [PATCH] Missing semicolons --- app/assets/javascripts/activityChart.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/activityChart.js b/app/assets/javascripts/activityChart.js index ce67881ba..fd9af8fd6 100644 --- a/app/assets/javascripts/activityChart.js +++ b/app/assets/javascripts/activityChart.js @@ -133,7 +133,7 @@ .duration(1000) .attr('y', d => y(d[1])) .attr('height', d => y(d[0]) - y(d[1])); - } + }; // Function to create an accessible table const createTable = function(tableId, chartType, labels, deliveredData, failedData) { @@ -177,7 +177,7 @@ table.appendChild(caption); table.appendChild(thead); table.append(tbody); - } + }; const fetchData = function(type) { var ctx = document.getElementById('weeklyChart'); @@ -218,7 +218,7 @@ socket.on('error', function(data) { console.log('Error:', data); }); - } + }; const handleDropdownChange = function(event) { const selectedValue = event.target.value; @@ -235,9 +235,9 @@ } // Update ARIA live region - const liveRegion = document.getElementById('aria-live-account'); + const liveRegion = document.getElementById('aria-live-account'); liveRegion.textContent = `Data updated for ${selectedText} - Last 7 Days`; - } + }; document.addEventListener('DOMContentLoaded', function() { // Initialize activityChart chart and table with service data by default