(→Andamenti regionali) |
(→Andamenti regionali) |
||
Riga 23: | Riga 23: | ||
<script> | <script> | ||
− | + | 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 120: | Riga 120: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1 |
} | } | ||
}; | }; | ||
Riga 133: | Riga 133: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1 |
} | } | ||
}; | }; | ||
Riga 146: | Riga 146: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'triangle-down' | symbol: 'triangle-down' | ||
} | } | ||
Riga 160: | Riga 160: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'triangle-left' | symbol: 'triangle-left' | ||
} | } | ||
Riga 174: | Riga 174: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'triangle-right' | symbol: 'triangle-right' | ||
} | } | ||
Riga 188: | Riga 188: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'pentagon' | symbol: 'pentagon' | ||
} | } | ||
Riga 201: | Riga 201: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'triangle-up' | symbol: 'triangle-up' | ||
Riga 215: | Riga 215: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'star' | symbol: 'star' | ||
Riga 229: | Riga 229: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'diamond' | symbol: 'diamond' | ||
} | } | ||
Riga 243: | Riga 243: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'square' | symbol: 'square' | ||
} | } | ||
Riga 256: | Riga 256: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'cross' | symbol: 'cross' | ||
} | } | ||
Riga 269: | Riga 269: | ||
marker: { | marker: { | ||
size: 6, | size: 6, | ||
− | opacity: | + | opacity: 1, |
symbol: 'x' | symbol: 'x' | ||
Riga 318: | Riga 318: | ||
title: 'Andamento regionale ' + currTitle, | title: 'Andamento regionale ' + currTitle, | ||
height: 600, | height: 600, | ||
− | plot_bgcolor: "# | + | plot_bgcolor: "#000", |
//width: 800, | //width: 800, | ||
margin: { l: 40, r: 0}, | margin: { l: 40, r: 0}, | ||
Riga 329: | Riga 329: | ||
tickmode: "linear", // If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` | tickmode: "linear", // If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` | ||
tick0: '2020-02-24', | tick0: '2020-02-24', | ||
+ | gridcolor: '#555', | ||
dtick: 24 * 60 * 60 * 1000 | dtick: 24 * 60 * 60 * 1000 | ||
}, | }, | ||
yaxis: { | yaxis: { | ||
− | autorange: true | + | autorange: true, |
− | + | gridcolor: '#555', | |
//type: 'log', | //type: 'log', | ||
//fixedrange: true, | //fixedrange: true, |
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
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