Refactors <td> elements to accommodate horizontal bar charts