accessor = new Map([
[
"population",
{
col: "#4a90e2",
col2: "#ff6b6b",
max: d3.max(final.map((d) => +d.population)),
title: "Population"
}
],
[
"gdp",
{
col: "#f5a623",
col2: "#7ed321",
max: d3.max(final.map((d) => +d.gdp)),
title: "GDP - USD"
}
],
[
"gdppercapitappp",
{
col: "#50e3c2",
col2: "#b8a9c9",
max: d3.max(final.map((d) => +d.gdppercapitappp)),
title: "GDP per Capita - USD"
}
],
[
"populationgrowth",
{
col: "#008080",
col2: " #FFA07A",
max: d3.max(final.map((d) => +d.populationgrowth)),
title: "Population Growth %"
}
],
[
"gdpgrowth",
{
col: " #8E4585",
col2: "#FFD700",
max: d3.max(final.map((d) => +d.gdpgrowth)),
title: "GDP growth %"
}
]
])