renaming columns

This commit is contained in:
frankknoll
2022-02-15 21:04:10 +01:00
parent f8b3b8915f
commit bcacc211f6
3 changed files with 11 additions and 11 deletions

View File

@@ -20,7 +20,7 @@
'Disabilities': 3,
'Life Threatening Illnesses': 4,
'Company': 5,
'Lethality (%)': 6
'Lethality': 6
};
$('#batchCodeTable').DataTable(
{
@@ -46,7 +46,7 @@
columnIndex['Disabilities'],
columnIndex['Life Threatening Illnesses'],
columnIndex['Company'],
columnIndex['Lethality (%)']
columnIndex['Lethality']
]
},
{
@@ -54,7 +54,7 @@
const lethality = parseFloat(data);
return !isNaN(lethality) ? lethality.toFixed(2) + " %" : '';
},
targets: [columnIndex['Lethality (%)']]
targets: [columnIndex['Lethality']]
}
]
});
@@ -87,7 +87,7 @@
<th>Disabilities</th>
<th>Life Threatening Illnesses</th>
<th>Company</th>
<th>Lethality (%)</th>
<th>Lethality</th>
</tr>
</thead>
</table>