finalize export function
This commit is contained in:
@@ -114,7 +114,7 @@ function loadTrend(periodType, startYear, startWeek, endYear, endWeek) {
|
||||
|
||||
const datasets = [];
|
||||
|
||||
const allowedPrograms = ['SARI', 'ILI', 'LBM', 'AFI', 'NDS', 'SEQ'];
|
||||
const allowedPrograms = ['SARI', 'ILI', 'LBM', 'AFI', 'NDS'];
|
||||
|
||||
Object.keys(data).forEach(code => {
|
||||
|
||||
@@ -144,6 +144,7 @@ function loadTrend(periodType, startYear, startWeek, endYear, endWeek) {
|
||||
});
|
||||
|
||||
trendChart = new Chart(document.getElementById('trendChart'), {
|
||||
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: displayLabels,
|
||||
@@ -184,6 +185,7 @@ function loadTrend(periodType, startYear, startWeek, endYear, endWeek) {
|
||||
}
|
||||
}
|
||||
});
|
||||
charts['trendChart'] = trendChart;
|
||||
|
||||
});
|
||||
}
|
||||
@@ -266,6 +268,7 @@ function loadInfluenzaSubtypeDistribution(periodType, startYear, startWeek, endY
|
||||
},
|
||||
plugins: [ChartDataLabels]
|
||||
});
|
||||
charts['influenzaSubtypeDistribution'] = influenzaSubtypeChart;
|
||||
|
||||
});
|
||||
}
|
||||
@@ -346,6 +349,7 @@ function loadCovidDistributedByAgeGroup(periodType, startYear, startWeek, endYea
|
||||
}
|
||||
}
|
||||
});
|
||||
charts['covidDistributedByAgeGroup'] = covidDistributedByAgeChart;
|
||||
|
||||
});
|
||||
}
|
||||
@@ -443,6 +447,7 @@ function loadCovidLineageFrequency(periodType, startYear, startWeek, endYear, en
|
||||
}
|
||||
}
|
||||
});
|
||||
charts['covidLineageFrequency'] = covidLineageFrequencyChart;
|
||||
|
||||
// -------------------------
|
||||
// Custom right-side scrollable legend
|
||||
@@ -1059,7 +1064,7 @@ function getColorByPathogen(name) {
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
loadSummary();
|
||||
|
||||
|
||||
new DashboardFilter((startYear, startWeek, endYear, endWeek) => {
|
||||
|
||||
loadTrend('week', startYear, startWeek, endYear, endWeek);
|
||||
|
||||
Reference in New Issue
Block a user