Riga 604: | Riga 604: | ||
currallMortiTi = []; | currallMortiTi = []; | ||
currallMortiOsp = []; | currallMortiOsp = []; | ||
+ | currNewMorti = []; | ||
//allDay = allDay.split(' ')[0]; | //allDay = allDay.split(' ')[0]; | ||
Riga 628: | Riga 629: | ||
currallMortiTi = []; | currallMortiTi = []; | ||
currallMortiOsp = []; | currallMortiOsp = []; | ||
+ | currNewMorti = []; | ||
for (var i = 0 ; i < allRegionNames.length ; i++){ | for (var i = 0 ; i < allRegionNames.length ; i++){ | ||
Riga 645: | Riga 647: | ||
currallMortiTi.push(parseInt(allTi[i])+parseInt(allMorti[i])); | currallMortiTi.push(parseInt(allTi[i])+parseInt(allMorti[i])); | ||
currallMortiOsp.push(parseInt(allTo[i])+parseInt(allMorti[i])); | currallMortiOsp.push(parseInt(allTo[i])+parseInt(allMorti[i])); | ||
+ | currNewMorti = get_diff(currallMorti); | ||
} | } | ||
} | } | ||
Riga 874: | Riga 877: | ||
} | } | ||
}; | }; | ||
+ | |||
+ | var trace17 = { | ||
+ | x: currentYear, | ||
+ | y: currNewMorti, | ||
+ | mode: 'markers', | ||
+ | name: 'Incremento morti', | ||
+ | marker: { | ||
+ | size: 6, | ||
+ | opacity: 1, | ||
+ | symbol: 'cross' | ||
+ | } | ||
+ | }; | ||
var data = [trace8, | var data = [trace8, | ||
Riga 887: | Riga 902: | ||
trace6, | trace6, | ||
trace10, | trace10, | ||
− | trace13, trace14, trace15, trace16]; | + | trace13, trace14, trace15, trace16, trace17]; |
var updatemenus=[ | var updatemenus=[ |