(2 versioni intermedie di uno stesso utente non sono mostrate) | |||
Riga 400: | Riga 400: | ||
}, | }, | ||
{ | { | ||
− | args: [{'yaxis.type':'log' | + | args: [{'yaxis.type':'log'}], |
− | |||
label:'SemiLog', | label:'SemiLog', | ||
method:'relayout' | method:'relayout' | ||
Riga 566: | Riga 565: | ||
<script> | <script> | ||
+ | function get_diff(vect){ | ||
+ | var vdiff = []; | ||
+ | vdiff.push(0); | ||
+ | for (var i=1;i<vect.length;i++){ | ||
+ | vdiff.push(vect[i]-vect[i-1]); | ||
+ | } | ||
+ | |||
+ | return vdiff; | ||
+ | } | ||
// ITA | // ITA | ||
Plotly.d3.csv('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-andamento-nazionale/dpc-covid19-ita-andamento-nazionale.csv', function(err, rows){ | Plotly.d3.csv('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-andamento-nazionale/dpc-covid19-ita-andamento-nazionale.csv', function(err, rows){ | ||
Riga 914: | Riga 922: | ||
}, | }, | ||
{ | { | ||
− | args: [{'yaxis.type':'log' | + | args: [{'yaxis.type':'log'}], |
− | |||
label:'SemiLog', | label:'SemiLog', | ||
method:'relayout' | method:'relayout' | ||
Riga 1 105: | Riga 1 112: | ||
}, | }, | ||
{ | { | ||
− | args: [{'yaxis.type':'log' | + | args: [{'yaxis.type':'log'}], |
− | |||
label:'SemiLog', | label:'SemiLog', | ||
method:'relayout' | method:'relayout' |