DataVIZ SAG Day at CDC, Oct./07/2019
John Snow: A Legacy of Disease Detectives
Titanic: Machine Learning from Disaster
WCMS Data Maps
One picture can carry large volume of information
WCMS TP4 Features Gallery
(https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/index.html)
.....
g.selectAll('path')
.data(stateInView)
.enter()
.append('path')
.....
.style('fill', function (d) {
// ############## MAP COLORS ############## ADI
if (_mapType === 'mapChoice1' && d.properties._ADI && parseFloat(d.properties._ADI)) {
let adi = d.properties._ADI
const mapChoice1 = legend.mapChoice1;
if (adi < 107.1) { return mapChoice1.low.color }
if (adi >= 107.1 && adi < 111.9) { return mapChoice1.med.color }
if (adi >= 111.9) { return mapChoice1.high.color }
}
......
https://github.com/d3/d3/wiki/Gallery