JSFiddle - React, Tailwind, and code Playground
HTML
<div style='margin-right: 1em; margin-bottom: 1em'>
<table cellspacing=0 id='report'>
<caption></caption>
<tr>
<th>Region</th>
<th>1 CORPORATE IDENTITY- EXTERIOR</th>
<th>2 CORPORATE IDENTITY- INTERIOR</th>
<th>3 BUILDING EXTERIOR AND MAINTENANCE</th>
<th>4 INVENTORY DISPLAY/Client PARKING</th>
<th>5 SALES DEPARTMENT- NEW VEHICLES</th>
<th>6 SALES DEPARTMENT- PRE OWNED</th>
<th>7 SERVICE DEPARTMENT</th>
<th>8 CASHIER AND RETAIL PARTS</th>
<th>9 Client RESTROOMS</th>
<th>10 PROCESS ELEMENTS</th>
<th>11 Miscellaneous</th>
<th>Overall</th>
<th>Center Count</th>
</tr>
<tr class='data_row '>
<th>SO</th>
<td>75.9%</td>
<td>54.7%</td>
<td>63.0%</td>
<td>73.9%</td>
<td>71.5%</td>
<td>30.0%</td>
<td>83.6%</td>
<td>77.2%</td>
<td>90.0%</td>
<td>72.6%</td>
<td>32.1%</td>
<td>68.4%</td>
<th>60</th>
</tr>
<tr class='data_row '>
<th>WE</th>
<td>84.1%</td>
<td>70.8%</td>
<td>64.1%</td>
<td>82%</td>
<td>79.5%</td>
<td>39.3%</td>
<td>84.6%</td>
<td>78.7%</td>
<td>99.2%</td>
<td>75.4%</td>
<td>36.4%</td>
<td>74.5%</td>
<th>59</th>
</tr>
<tr class='data_row '>
<th>EA</th>
<td>77.8%</td>
<td>66.9%</td>
<td>73.0%</td>
<td>83.6%</td>
<td>81.6%</td>
<td>48.8%</td>
<td>86.1%</td>
...
CSS
table {
width: 20em;
}
th {
border-bottom: 2px solid #000;
padding: 0.5em 0 0.1em 0;
font-size: 1.2em;
}
td {
border-bottom: 2px solid #ccc;
padding: 0.5em 0 0.1em 0;
}
th:nth-child(even),
td:nth-child(even) {
text-align: center;
}
.vGood {
background-color: #0f0;
}
.good {
background-color: #0c0;
}
.avg {
background-color: #060;
}
.poor {
background-color: #c00;
}
.vPoor {
background-color: #f00;
}
JavaScript
$('tbody tr td').each(
function() {
var vGood = 30,
good = 25,
avg = 20,
poor = 15,
vPoor = 10,
score = $(this).text();
if (score >= vGood) {
$(this).addClass('vGood');
}
else if (score < vGood && score >= good) {
$(this).addClass('good');
}
else if (score <good && score >= avg) {
$(this).addClass('avg');
}
else if (score < avg&& score >= poor) {
$(this).addClass('poor');
}
else if (score < poor) {
$(this).addClass('vPoor');
}
});