Skip to content
Snippets Groups Projects
Commit 742d1b5f authored by adrmanz's avatar adrmanz
Browse files

Update main.js

parent 3de8a271
Branches
No related tags found
No related merge requests found
Pipeline #9382 passed
......@@ -223,12 +223,7 @@ function init3dmap(norm, coch, anio, visual, ccaa, ccaa_sel){
}
desf = desf + LADO*1.5;
}
// if (timer_on){
// if (norm == 'total'){
// if (coch == 'no' ){max=0.3}
// else{max = 0.005}
// }else {max = 0.02}
// }
TR3.pintar_barras(CCAA_loc, valores, LADO, FORMATOS, max);
return valores;
}
......@@ -307,14 +302,8 @@ function plot_line_chart(norm, coch, visual, ccaa, ccaa_sel){
dat[k] = dat[k]/car[k]
}
}
if (norm == 'total'){
if (norm == 'total' & coch='no'){
var ref = datos_ccaa['Total'][visual]
if (coch == 'si'){
var cart = coches_ccaa['Total']
for (var k=0; k < dat.length; k++){
ref[k] = ref[k]/cart[k]
}
}
for (var k=0; k < dat.length; k++){
dat[k] = dat[k]/ref[k]
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment