Skip to content

Commit

Permalink
arregla estilo del desplegable de empresas. closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
numeroteca committed Jun 20, 2017
1 parent 144268b commit bfed771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ <h2>Contratos menores | Ayuntamiento de Valencia 2015</h2>
<div class="col-md-3">
<h5>Proveedor</h5>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle btn-sm" type="button" data-toggle="dropdown">Selecciona proveedor<span class="caret"></span></button>
<ul id="legend" class="dropdown-menu">
<button class="btn btn-default dropdown-toggle btn-sm" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Selecciona proveedor<span class="caret"></span></button>
<ul id="legend" class="dropdown-menu" aria-labelledby="dropdownMenu1">
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion js/dataviz.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var temp;
d3.tsv("data/viplist_val2015.tsv", function(error, data) {//reads the viplist.tsv file
legend.selectAll('div')
.data(data)
.enter().append("li")
.enter().append("li").append("a")
.attr("class", function(d) { return "inactive";})
.text(function(d) { return (d.entidad == '-')? d.people + ' ' : d.people + " ("+ d.ncontratos +") ";})
.on('click',function(d) { //when click on name
Expand Down

0 comments on commit bfed771

Please sign in to comment.