Difference between revisions of "Covid-19 Progress in Turkey"


 
Line 321: Line 321:
 
<body>
 
<body>
 
<div id="chart_div_1"></div>
 
<div id="chart_div_1"></div>
 +
</body>
 +
</html>
 +
 +
 +
<html>
 +
  <head>
 +
    <!--Load the AJAX API-->
 +
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
 +
    <script type="text/javascript">
 +
 +
      google.charts.load('current', {'packages':['corechart']});
 +
      google.charts.setOnLoadCallback(drawChart);
 +
 +
      function drawChart() {
 +
        var data = google.visualization.arrayToDataTable([
 +
          ['Total cases', 'Daily cases'],
 +
//[1, 1],
 +
//[1, 0],
 +
//[5, 4],
 +
//[5, 0],
 +
//[6, 1],
 +
//[18, 12],
 +
//[47, 29],
 +
//[98, 51],
 +
[192, 94],
 +
[359, 167],
 +
[670, 311],
 +
[947, 277],
 +
[1236, 289],
 +
[1529, 293],
 +
[1872, 343],
 +
[2433, 561],
 +
[3629, 1196],
 +
[5698, 2069],
 +
[7402, 1704],
 +
[9217, 1815],
 +
[10827, 1410],
 +
[13531, 2904],
 +
[15679, 2148],
 +
[18135, 2456],
 +
[20921, 2786],
 +
[23934, 3013],
 +
[27069, 3135],
 +
[30217, 3148],
 +
[34109, 3892],
 +
[38226, 4117],
 +
[42282, 4056],
 +
[47029, 4747],
 +
[52167, 5138],
 +
[56956, 4789],
 +
[61049, 4093],
 +
[65111, 4062],
 +
[69392, 4281],
 +
[74193, 4801],
 +
[78546, 4353],
 +
[82329, 3783],
 +
[86306, 3977],
 +
[90980, 4674],
 +
[95591, 4611],
 +
[98674, 3083],
 +
[101790, 3116],
 +
[104912, 3122],
 +
[107773, 2861],
 +
[110130, 2357],
 +
[112261, 2131],
 +
[114653, 2392],
 +
[117589, 2936],
 +
[120204, 2615],
 +
[122392, 2188],
 +
[124375, 1983],
 +
[126045, 1670],
 +
[127659, 1614],
 +
[129491, 1832],
 +
[131744, 2253],
 +
[133721, 1977],
 +
[135569, 1848],
 +
[137115, 1546],
 +
[138657, 1542],
 +
[139771,1114],
 +
[141475,1704],
 +
[143114,1639],
 +
[144749,1635],
 +
[146457,1708],
 +
[148067,1610],
 +
[149435,1368],
 +
[150593,1158],
 +
[151615,1022],
 +
[152587,972],
 +
[153548,961],
 +
[154500,952],
 +
[155686,1186],
 +
[156827,1141],
 +
[157814,987],
 +
[158762,948],
 +
[159797,1035],
 +
[160979,1182],
 +
[162120,1141],
 +
[163103,983],
 +
[163942,839],
 +
[164769,827],
 +
[165555,786],
 +
[166422,867],
 +
[167410,988],
 +
[168340,930],
 +
[169218,878],
 +
[170132,914],
 +
[171121,989],
 +
[172114,993],
 +
[173036,922],
 +
[174023,987],
 +
[175218,1195],
 +
[176677,1459],
 +
[178239,1562],
 +
[179831,1592],
 +
[181298,1467],
 +
[182727,1429],
 +
[184031,1304],
 +
[185245,1214],
 +
[186493,1248],
 +
[187685,1192],
 +
[188897,1212],
 +
[190165,1268],
 +
[191657,1492],
 +
[193115,1458],
 +
  ]);
 +
 +
        var options = {
 +
          title: 'Total cases vs. Daily cases (log-log)',
 +
          fontName: 'Old Standard TT',
 +
          color: '#982F00',
 +
          series:{
 +
          0: {
 +
            color: '#982F00',
 +
                pointSize: 2,
 +
                },},
 +
          hAxis: {title: 'Total cases', scaleType: 'log'},
 +
          vAxis: {title: 'Daily cases', scaleType: 'log'},
 +
          legend: 'none',
 +
          'height':400,
 +
        };
 +
 +
        var chart = new google.visualization.ScatterChart(document.getElementById('chart_div_2'));
 +
 +
        chart.draw(data, options);
 +
      }
 +
    </script>
 +
  </head>
 +
 +
<body>
 +
<div id="chart_div_2"></div>
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 06:54, 13 December 2020