stolsky / election-results-map

A simple application that visualizes election results and their background information in various ways.
GNU General Public License v3.0
0 stars 0 forks source link

data binding problem in d3 elements #8

Closed stolsky closed 2 years ago

stolsky commented 2 years ago

use cache with IDs of geo.json areas as workaround for the data binding problem with d3. it seems you can bind only one data set to an element in d3. solution:

const data_cache = {};
data_cache[area_id] = dataset;

area ids of

set during adjustment!