This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> </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; |