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
d3.csv("./assets/encuestas-estados.csv", function(error, dataEstados) { | |
if (error) throw error; | |
let filtered = dataEstados.filter( e => e.estado === estado) | |
var div = d3.select("#graphEstados").append("div") | |
.attr("class", "tooltip") | |
.style("opacity", 0); | |
// Set the margins | |
var margin = {top: 60, right: 100, bottom: 20, left: 80}, |
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
drawPresident(){ | |
//div para los tooltips | |
var div = d3.select("#graph").append("div") | |
.attr("class", "tooltip") | |
.style("opacity", 0); | |