(Disclaimer)
Riga 22: Riga 22:
 
<script>
 
<script>
  
    Plotly.d3.csv('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-regioni/dpc-covid19-ita-regioni.csv', function(err, rows){
+
        Plotly.d3.csv('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-regioni/dpc-covid19-ita-regioni.csv', function(err, rows){
  
 
         function unpack(rows, key) {
 
         function unpack(rows, key) {
Riga 113: Riga 113:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallRicoverati,
 
                 y: currallRicoverati,
 +
                legendgroup: 'group2',
 
                 name: 'Ricoverati con sintomi',
 
                 name: 'Ricoverati con sintomi',
 
                 mode: 'markers',
 
                 mode: 'markers',
Riga 125: Riga 126:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallTi,
 
                 y: currallTi,
 +
                legendgroup: 'group2',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Terapia Intensiva',
 
                 name: 'Terapia Intensiva',
Riga 137: Riga 139:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallTo,
 
                 y: currallTo,
 +
                legendgroup: 'group2',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Totale ospedalizzati',
 
                 name: 'Totale ospedalizzati',
Riga 149: Riga 152:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallIdom,
 
                 y: currallIdom,
 +
                legendgroup: 'group2',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Isolamento domiciliare',
 
                 name: 'Isolamento domiciliare',
Riga 161: Riga 165:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallAttPos,
 
                 y: currallAttPos,
 +
                legendgroup: 'group2',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Totale attualmente positivi',
 
                 name: 'Totale attualmente positivi',
Riga 173: Riga 178:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallNewPos,
 
                 y: currallNewPos,
 +
                legendgroup: 'group2',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Nuovi attualmente positivi',
 
                 name: 'Nuovi attualmente positivi',
Riga 182: Riga 188:
  
 
             var trace7 = {
 
             var trace7 = {
                visible: 'legendonly',
 
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallDimGuariti,
 
                 y: currallDimGuariti,
 +
                legendgroup: 'group',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Dimessi guariti',
 
                 name: 'Dimessi guariti',
Riga 196: Riga 202:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallMorti,
 
                 y: currallMorti,
 +
                legendgroup: 'group',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Deceduti',
 
                 name: 'Deceduti',
Riga 207: Riga 214:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallTotCasi,
 
                 y: currallTotCasi,
 +
                legendgroup: 'group',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Totale casi',
 
                 name: 'Totale casi',
Riga 219: Riga 227:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallTamponi,
 
                 y: currallTamponi,
 +
                legendgroup: 'group2',
 
                 mode: 'markers',
 
                 mode: 'markers',
 
                 name: 'Tamponi',
 
                 name: 'Tamponi',
Riga 230: Riga 239:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallMortiTi,
 
                 y: currallMortiTi,
 +
                legendgroup: 'group',
 
                 mode: 'markers',
 
                 mode: 'markers',
                 name: 'Morti+Terapia Intensiva',
+
                 name: 'Deceduti+Terapia Intensiva',
 
                 marker: {
 
                 marker: {
 
                     size: 10,
 
                     size: 10,
Riga 241: Riga 251:
 
                 x: currentYear,
 
                 x: currentYear,
 
                 y: currallMortiOsp,
 
                 y: currallMortiOsp,
 +
                legendgroup: 'group',
 
                 mode: 'markers',
 
                 mode: 'markers',
                 name: 'Morti+Ospedalizzati',
+
                 name: 'Deceduti+Terapia Intensiva+Ricoverati',
 
                 marker: {
 
                 marker: {
 
                     size: 10,
 
                     size: 10,
Riga 249: Riga 260:
 
             };
 
             };
  
             var data = [trace1,  
+
             var data = [trace8,
 +
                        trace7,
 +
                        trace9,
 +
                        trace11,
 +
                        trace12,
 +
                        trace1,  
 
                         trace2,  
 
                         trace2,  
 
                         trace3,  
 
                         trace3,  
 
                         trace4,  
 
                         trace4,  
                         trace5,  
+
                         trace5,
                         trace6,
+
                         trace6,
                        trace7,
+
                         trace10];
                        trace8,
 
                        trace9,  
 
                         trace10,
 
                    trace11,
 
                trace12];
 
  
 
             var updatemenus=[
 
             var updatemenus=[
Riga 304: Riga 315:
 
                 //height: 400,
 
                 //height: 400,
 
                 //width: 800,
 
                 //width: 800,
 +
                margin: { l: 40, r: 0},
 
                 updatemenus: updatemenus,
 
                 updatemenus: updatemenus,
 
                 //annotations: annotations,
 
                 //annotations: annotations,
 
                 showlegend: true,
 
                 showlegend: true,
                 //legend: {"orientation": "h"},
+
                 legend: { orientation: "h" ,
 +
                        x: 0,
 +
                        y: -0.5},
 
                 yaxis: {
 
                 yaxis: {
 
                     autorange: true
 
                     autorange: true

Revisione 17:52, 14 Mar 2020

COVID19 - Monitoraggio ed Analisi della situazione italiana

Andamenti regionali

Regione:

Disclaimer

Dati forniti dal Ministero della Salute, elaborazione e gestione dati a cura del Dipartimento della Protezione Civile: https://github.com/pcm-dpc/COVID-19

Rielaborazione a cura del Control of Dynamic System Lab, Politecnico di Bari

COVID19 - Monitoraggio ed Analisi della situazione italiana[edit]

Andamenti regionali[edit]

Regione:

Disclaimer[edit]

Dati forniti dal Ministero della Salute, elaborazione e gestione dati a cura del Dipartimento della Protezione Civile: https://github.com/pcm-dpc/COVID-19

Rielaborazione a cura del Control of Dynamic System Lab, Politecnico di Bari