<% Object.keys(map_data[0]).forEach(function(key, idx){ %> <% if(idx == 0) {%> <% } else if(!(idx == 1 && options["district_view"][0] == "1")) {%> <% if(key.startsWith('points')){ %> <% let contributing = map_data[0][key].contributing %> <% _.each(Object.keys(contributing), function(k,i){ %> <% }) %> <%} else {%> <% temp.ind = key %> <% } %> <% } %> <% }) %> <% if(options['district_view'][0] == '0') { %> <% map_data = _.filter(map_data, function(d){ return d.state.value != 'India'}) %> <% } %> <% _.each(map_data, function(list_item){ %> <% delete list_item.state_id %> <% temp = url.searchKey %> <% temp.tab = 'rankings' %> <% temp.district_view=1 %> <% temp.state_id = options["district_view"][0] == "1" ? list_item["district_name"].id : list_item["state"].id %> <% url_string = Object.keys(temp).map(key => key + '=' + temp[key]).join('&') %> <% _.each(Object.keys(list_item), function(k,i){ %> <% if(i == 0){ %> <% let state_name = list_item[k].value %> <% } else if(i == 1 && options["district_view"][0] == "0"){ %> <% row_data_value = list_item[k].value %> <% row_data_color = list_item[k].color %> <% } else if(i != 1) { %> <% row_data_value = list_item[k].value %> <% row_data_color = list_item[k].color %> <% let contributing = list_item[k].contributing %> <% _.each(Object.keys(contributing), function(ck,ci){ %> <% }) %> <% } %> <% }) %> <% }) %>
<%= mat_view_name[key] %> sorting
<% temp = url.searchKey %> <% temp.tab = 'rankings' %> <% if(key == 'score'){ %> <% temp.ind = 'corrected_total_points' %> <%} else {%> <% temp.ind = key }%> <% temp.state_id = 'IN' %> <% temp.district_view = 0 %> <% url_string = Object.keys(temp).map(key => key + '=' + temp[key]).join('&') %> <% if(options['district_view'][0] == 0) { %> <%= mat_view_name[key] %> <% title = _.filter(tooltip_data, function(d){ return d['id']==idx}) %> <% } else { %> <%= mat_view_name[key] %> <% title = _.filter(tooltip_data, function(d){ return d['id']==idx}) %> <% } %> info sorting
<% if(key.startsWith('points')){ %> icon expand <% } %>
<%= mat_view_name[k] %> icon-nosort
<%= toCamelCase(list_item[k].value) %>
Map Viewarrow_forward
<%- row_data_value %>
<% if(row_data_value != 0) { %> <%- row_data_value %> <% } else { %> Data NA <% } %>
<%= contributing[ck].score == 0 ? 'Data NA' : format_inr(contributing[ck].score) %>