(→COVID19 - Monitoraggio ed Analisi della situazione italiana) |
(→COVID19 - Monitoraggio ed Analisi della situazione italiana) |
||
Riga 41: | Riga 41: | ||
getCountryData(chosenCountry); | getCountryData(chosenCountry); | ||
− | var trace1 = { | + | var trace1 = {x: currentYear, y: currentGdp,mode: 'lines+markers', marker: {size: 12, opacity: 0.5 } }; |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
var data = [trace1]; | var data = [trace1]; | ||
− | var layout = { | + | var layout = { title:'Line and Scatter Plot', height: 400,width: 480}; |
− | |||
− | |||
− | |||
− | |||
Plotly.newPlot('myDiv', data, layout); | Plotly.newPlot('myDiv', data, layout); |