Skip to content

Commit

Permalink
only display contratos menores ZGZ 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
numeroteca committed Dec 12, 2019
1 parent aadff74 commit 7810302
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
centro descripEs descripEscompleto
bar Todos
Ayuntamiento Ayuntamiento
ZGZCultural Zaragoza Cultural
ZGZDeporte Zaragoza Deporte
Ecociudad Ecociudad
ZGZTurismo Zaragoza turismo
ZGZVivienda Zaragoza Vivienda
Educación y Bibliotecas Educación y Bibliotecas
Expo ZGZ @ Desarrollo Expo, S.A., en liquidación
ayuntamiento Ayuntamiento
dinamica Zaragoza Dinámica
cultural Zaragoza Cultural
deporte Zaragoza Deporte
ecociudad Ecociudad
turismo Zaragoza turismo
vivienda Zaragoza Vivienda
educacion Educación y Bibliotecas
mercazaragoza MercaZaragoza
expo ZGZ @ Desarrollo Expo, S.A., en liquidación
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
actividad centro dni quien Importe date tipo expediente
actividad centro dni quien importe date tipo expediente
MODIFICACION DE SOFTWARE GESTION ALMACEN VESTUARIO Ayuntamiento de Zaragoza A50231182 ALERCE INFORMATICA APLICADA S.A. 11116 24/12/2018 Servicios(Menor) 187196-18
OBRAS DE REP. Y ELIMINACION DE CHIMENEA EN ESCALERA DE LA ANTIGUA PORTERIA EN LA CARTUJA BAJA Ayuntamiento de Zaragoza B50869577 CONSTRUCCIONES AMADO TERRÉN, S.L 21495 21/12/2018 Obras(Menor) 182617-18
REMODELACION EDIFICIO ALCALDIA EN BARRIO TORRECILLA DE VALMADRID. ZARAGOZA.(Convenio DPZ 17-19) Ayuntamiento de Zaragoza B99485013 APB OBRAS Y CONTRUCCIONES, SL 22727 21/12/2018 Obras(Menor) 181619-18
Expand Down
2 changes: 1 addition & 1 deletion zaragoza/contratosmenores/2018/index_b.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h5>Descripci&oacute;n del contrato</h5>
</div>
<div class="row">
<div class="col-md-2" style="padding-bottom: 1.2em;" id="barrasactivas">
<span class="label label-default" style="font-size:1.4em;">56.968.160</span>
<span class="label label-default" style="font-size:1.4em;">4.866.226</span>
</div>
<div class="col-md-8">
<div class="progress">
Expand Down
14 changes: 7 additions & 7 deletions zaragoza/contratosmenores/2018/js/dataviz_b.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var margin = {top: 15, right: 20, bottom: 70, left: 65},
width = vis.node().clientWidth - margin.left - margin.right,
height = (isMobile ? 400 : 550) - margin.top - margin.bottom;

var topvalue = 90000,
var topvalue = 35000,
activeopacity = 0.8;

var ES = d3.locale(es_ES),
Expand Down Expand Up @@ -99,11 +99,11 @@ var barrasactivas = d3.select("#barrasactivas");
var randomselect = d3.select("#randomselect");
var totales = d3.select("#totales");

var totalImporte = 56968160 ; //Total of all contratos
var totalImporte = 4866226; //Total of all contratos
totales.append("div").attr("class","backgr").style("width","100%").style("height","20px"); //barra total
totales.append("div").attr("class","overlapped").style("position","relative").style("top","-20px").style("height","20px").style("background-color","#AAAAAA").style("width","0px"); //barra con importe de barras activas
//Barra horizontal de totales
totales.select("div.backgr").append("p").html("Total: " + "56.968.160€").style("text-align","right").style("margin-right","5px").style("font-size","11px");
totales.select("div.backgr").append("p").html("Total: " + "4.866.226€").style("text-align","right").style("margin-right","5px").style("font-size","11px");
var totalsDomain = d3.scale.linear().domain([0, totalImporte]).range([0, totales.select("div.backgr").style("width")]);

//Class filters
Expand All @@ -112,7 +112,7 @@ var barrasActivasSelected;
var temp;

// Legend de lista de empresas
d3.tsv("data/viplistZGZCmenores2018rev3.tsv", function(error, data) {//reads the viplist.tsv file
d3.tsv("data/viplistZGZCmenores2018rev4.tsv", function(error, data) {//reads the viplist.tsv file
legendcentros.selectAll('div')
.data(data)
.enter().append("div")
Expand Down Expand Up @@ -182,7 +182,7 @@ d3.tsv("data/viplistZGZCmenores2018rev3.tsv", function(error, data) {//reads the
}); //end read viplist.tsv file

//Legend de cosas
d3.tsv("data/thinglistZGZCmenores2018.tsv", function(error, data) {//reads the thinglist.tsv file
d3.tsv("data/thinglistZGZCmenores2018rev4.tsv", function(error, data) {//reads the thinglist.tsv file
legendcosas.selectAll('div')
.data(data)
.enter().append("div")
Expand Down Expand Up @@ -230,7 +230,7 @@ d3.tsv("data/thinglistZGZCmenores2018.tsv", function(error, data) {//reads the t
}); //end read thinglist.tsv file

//Legend de centros presupuestarios
d3.tsv("data/centroslistZGZCmenores2018.tsv", function(error, data) {//reads the centrolist.tsv file
d3.tsv("data/centroslistZGZCmenores2018rev4.tsv", function(error, data) {//reads the centrolist.tsv file
legend.selectAll('div')
.data(data)
.enter().append("li").append("a")
Expand Down Expand Up @@ -304,7 +304,7 @@ d3.tsv("data/centroslistZGZCmenores2018.tsv", function(error, data) {//reads the
filtros.selectAll('.filtro').html("Todos").style('opacity','0.3');

//Enters data.tsv and starts the graph-----------------------------------------
d3.tsv("data/dataZGZCmenores2018rev3.tsv", type, function(error, data) {//reads the data.tsv file
d3.tsv("data/dataZGZCmenores2018rev4.tsv", type, function(error, data) {//reads the data.tsv file
var parseDate = d3.time.format("%d/%m/%Y").parse;
data.forEach(function(d) {
d.date = parseDate(d.date);
Expand Down

0 comments on commit 7810302

Please sign in to comment.