This commit is contained in:
2026-07-06 16:38:24 +07:00
parent 5d2c055912
commit 8182a8d4d5
5 changed files with 52 additions and 73 deletions

View File

@@ -563,11 +563,11 @@ function renderProgramTrend(rows = []) {
}),
color: '#d21919'
color: '#ef4444'
},
{
label: 'COVID-19 %',
label: 'SARS-CoV-2 %',
data: labels.map(label => {
@@ -843,12 +843,10 @@ function renderAFITrend(
|
*/
const donutTotal =
totalCases.reduce(
(a, b) => a + b,
0
);
const donutTotal = rows.reduce(
(sum, row) => sum + Number(row.total_positive || 0),
0
);
if (Charts.charts[canvasId]) {
@@ -946,6 +944,11 @@ function renderSentinel(rows = []) {
}
function renderSubtypeChart(rows = []) {
rows.forEach(row => {
if (row.subtype === 'B/VIC') {
row.subtype = 'B/Vic';
}
});
Charts.buildDistributionChart(
'subtypeChart',