Skip to content

Commit

Permalink
Update main.js for 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
samle1e authored Apr 25, 2024
1 parent 7056180 commit 5a5610c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disaggregated-federal-contracting-data/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function buttonAction (event) {
}

// this number needs to be updated.
fetchData('2022')
fetchData('2023')
.then(res => {
res.forEach(data => {
if (data.title.startsWith('Data Summary')) {
Expand Down Expand Up @@ -85,7 +85,7 @@ function buttonAction (event) {
};

const pie = document.getElementById('pie-chart');
pie.setAttribute('alt', 'Pie chart showing FY 2022 federal contracting by race and business size (see data summary below for details).');
pie.setAttribute('alt', 'Pie chart showing FY 2023 federal contracting by race and business size (see data summary below for details).');

// window.addEventListener('beforeprint', () => {
// pieChart.resize(600, 600);
Expand Down Expand Up @@ -220,4 +220,4 @@ function buttonAction (event) {
}
return words.join(' ');
}
})();
})();

0 comments on commit 5a5610c

Please sign in to comment.