Created
February 27, 2018 04:42
-
-
Save juliobguedes/d72fed4cffe67a0dde679a94fe2a44b0 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
#!/bin/bash | |
# a expressão js que decide os fills baseados em uma escala | |
# EXP_ESCALA='z = d3.scaleSequential(d3.interpolateViridis).domain([0, 100]), | |
# d.features.forEach(f => f.properties.fill = z(f.properties["Percentual Aprendizado Adequado (%)"])), | |
# d' | |
EXP_ESCALA='z = d3.scaleThreshold().domain([0, 0.7, 0.14, 0.21, 0.28, 0.35]).range(d3.schemeReds[5]), | |
d.features.forEach(f => f.properties.fill = z(f.properties["Crescimento"])), | |
d' | |
ndjson-map -r d3 -r d3=d3-scale-chromatic \ | |
"$EXP_ESCALA" \ | |
< geo4-municipios-e-aprendizado-simplificado.json \ | |
| ndjson-split 'd.features' \ | |
| geo2svg -n --stroke none -w 1000 -h 600 \ | |
> aprendizagem-na-pb-choropleth.svg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment