India’s Total Export Value
<% var table_data = [data[3][0]['commodity_group_data'], data[3][0]['commodity_data'], data[3][0]['region_data'], data[3][0]['country_data']] %> <% var region_id = parse_url().searchKey.region_id || '', country_id = parse_url().searchKey.country_id || '', commodity_id = parse_url().searchKey.commodity_id || '', commodity_group_id = parse_url().searchKey.commodity_group_id || '', view = parse_url().searchKey.view || 'pills-map-tab', start_date = moment(parse_url().searchKey.start_date, "YYYYMM").format("MMM, YY") || '', end_date = moment(parse_url().searchKey.end_date, "YYYYMM").format("MMM, YY") || '' let date_lbl ,country_lbl,comdty_lbl, comdty_grp_lbl, data_helper,filter_attr let region_lbl = "World" %> <% date_lbl = start_date +" - "+end_date if (region_id != ''){ region_lbl = _.filter(table_data[2], function (d) { return d.region_id == region_id })[0].region_name || '' } if (country_id != ''){ country_lbl = toTitleCase(_.filter(table_data[3], function (d) { return d.country_id == country_id })[0].country_name) || '' } if (commodity_id != ''){ comdty_lbl = toTitleCase(_.filter(table_data[1], function (d) { return d.commodity_id == commodity_id })[0].commodity) || '' } if (commodity_group_id != ''){ comdty_grp_lbl = _.filter(table_data[0], function (d) { return d.commodity_group_id == commodity_group_id })[0].commodity_group || '' // comdty_grp_lbl = head_dic[comdty_grp_lbl] } %>
<% //default labels var region_section = `200 countries/territories` var commodity_section = `across 31 commodities` if (region_id != ''){ // when region is selected region_section = `${table_data[3].length} countries/ territories in ${region_lbl} group ` } if (country_id != ''){ //When country selected // combination of commodity_group selection region_section = `${country_lbl}` commodity_section = `across ${table_data[1].length} commodities ` } if (commodity_group_id != ''){ //commodity_group selection if(region_id == ''){ region_section = `${table_data[3].length} countries/ territories` } commodity_section = `${ region_id != '' ? 'of goods':''} ${ country_id != '' ? 'in':'for'} ${comdty_grp_lbl} commodity group` } if (commodity_id != ''){ //commodity selected if(region_id == ''){ region_section = `${table_data[3].length} countries/ territories` } commodity_section = `for ${comdty_lbl}` } var disclaimer = `India's exports to ${region_section} ${commodity_section}` %>

<%- disclaimer %>

Group description and number of countries/territories