<% var headers = _.keys(data[0]) %> <% _.each(headers, function(h) { %> <% }) %> <% _.each(data, function(row) { %> <% var row_vals = [] %> <% var row_vals = _.values(row) %> <% row_vals.pop(); row_vals.shift() %> <% var min = _.min(row_vals), max = _.max(row_vals) %> <% table_color.domain([min, max]) %> <% _.each(row, function(v, k) { %> <% if (_.includes(['Total Responses', 'Country'], k)) { %> <% } else { %> <% } %> <% }) %> <% }) %>
<%= h %><%= (h == 'Total Responses') ? ' ' : '' %>
<%= v %> <%= _.round((v/row['Total Responses']) * 100, 2) %> %