Skip to content

Instantly share code, notes, and snippets.

@PatriciaW43
PatriciaW43 / gist:fe81b673a90a3cd5f32b7aceca9559c0
Created November 4, 2017 18:02
Problem with d3.nest rollup
<meta charset="utf-8" /><script src="http://d3js.org/d3.v4.min.js"></script><script src="http://d3js.org/queue.v1.min.js"></script><script src="http://d3js.org/topojson.v1.min.js"></script>
<div id="demo">
<div id="data-div">&nbsp;</div>
<script>
var nested_data = [];
function findTally (nested_data, ward) {
for (var index = 0; index < nested_data.length;index++){
var row = nested_data[index];
console.log ("row.key -> " + row.key + " row.value -> " + row.value + " row.values -> " + row.values);
var wardin=row.key;