Commit b5309ae5 authored by Okhin's avatar Okhin

FIX #20, fecthing the dataset by iso2 instead of id

parent 65df7239
......@@ -12,7 +12,7 @@ $(document).ready(function() {
.domain([minValue, maxValue])
.range(['#EFEFEF', '#02386F']);
data.forEach(function(item) {
var iso = item.id,
var iso = item.iso2,
value = item.w;
dataset[iso] = { numberOfCases: value, fillColor: paletteScale(value)};
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment