Created
November 21, 2020 18:11
-
-
Save lennymd/2e18a3f7fd35fd42355ae875acdb18d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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