map-and-chart.js
// Add event listeners to map layers and chart
Add event listeners to map layers and chart
Add event listeners to map layers and chart
function onEachFeature(feature, layer) {
    layer.on({
        mouseover: highlightFeature,
        mouseout: resetHighlight,
        click: selectData
    });
}
function onEachFeature ( feature , layer ) { layer . on ( { mouseover : highlightFeature , mouseout : resetHighlight , click : selectData } ) ; }
Add event listeners to map layers and chart
Add event listeners to map layers and chart