Skip to content

Instantly share code, notes, and snippets.

@lennymd
Created November 21, 2020 18:11
Show Gist options
  • Save lennymd/2e18a3f7fd35fd42355ae875acdb18d8 to your computer and use it in GitHub Desktop.
Save lennymd/2e18a3f7fd35fd42355ae875acdb18d8 to your computer and use it in GitHub Desktop.
let outcomes_health;
async function get_values() {
let data = await d3.csv('https://raw.githubusercontent.com/lennymd/test_evidence_map/main/public/data/column_values.csv');
const cols = data.columns;
let values = {};
cols.forEach(col => (values[col] = d3.map(data, d => d[col]).keys()));
outcomes_health = values['health_outcomes'];
}
get_values();
console.log(outcomes_health);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment