"use strict"; var statistics_chart = document.getElementById("myChart").getContext('2d'); var myChart = new Chart(statistics_chart, { type: 'line', data: { labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], datasets: [{ label: 'Statistics', data: [640, 387, 530, 302, 430, 270, 488], borderWidth: 5, borderColor: '#6777ef', backgroundColor: 'transparent', pointBackgroundColor: '#fff', pointBorderColor: '#6777ef', pointRadius: 4 }] }, options: { legend: { display: false }, scales: { yAxes: [{ gridLines: { display: false, drawBorder: false, }, ticks: { stepSize: 150 } }], xAxes: [{ gridLines: { color: '#fbfbfb', lineWidth: 2 } }] }, } }); $('#visitorMap').vectorMap( { map: 'world_en', backgroundColor: '#ffffff', borderColor: '#f2f2f2', borderOpacity: .8, borderWidth: 1, hoverColor: '#000', hoverOpacity: .8, color: '#ddd', normalizeFunction: 'linear', selectedRegions: false, showTooltip: true, pins: { id: '
', my: '
', th: '
', sy: '
', eg: '
', ae: '
', nz: '
', tl: '
', ng: '
', si: '
', pa: '
', au: '
', ca: '
', tr: '
', }, }); // weather getWeather(); setInterval(getWeather, 600000); function getWeather() { $.simpleWeather({ location: 'Bogor, Indonesia', unit: 'c', success: function(weather) { var html = ''; html += '
'; html += '
'; html += '
'; html += '

' + weather.temp + '°' + weather.units.temp + '

'; html += '
' + weather.currently + '
'; html += ''; html += '
'; html += '
'; $("#myWeather").html(html); }, error: function(error) { $("#myWeather").html('
'+error+'
'); } }); }