google.charts.load('current', {packages: ['corechart', 'line']}); var charts = [drawMarketPrice]; charts.map(google.charts.setOnLoadCallback); function drawMarketPrice() { var data = new google.visualization.DataTable(); data.addColumn('date', 'X'); data.addColumn('number', 'USD'); data.addRows([ [new Date(1687219200000), 0.00307235590250389558],[new Date(1687305600000), 0.00321749648020100076],[new Date(1687392000000), 0.00331545928958341224],[new Date(1687478400000), 0.00337172980764564118],[new Date(1687564800000), 0.00347990379814137063],[new Date(1687651200000), 0.00368556438702523192],[new Date(1690329600000), 0.00293410091424712163],[new Date(1690416000000), 0.00294334251253963808],[new Date(1691366400000), 0.00261536875384066870],[new Date(1691452800000), 0.00262560707856791901],[new Date(1692748800000), 0.00264327546890102990],[new Date(1692835200000), 0.00264459342210783172],[new Date(1696809600000), 0.00248261230694178250],[new Date(1696896000000), 0.00248462137734285668],[new Date(1698105600000), 0.00304651599444104008],[new Date(1698192000000), 0.00307534729389111130],[new Date(1707868800000), 0.00309683113642653525],[new Date(1707955200000), 0.00312606790103475000],[new Date(1709337600000), 0.00371813826401794109],[new Date(1709424000000), 0.00372642584462784245],[new Date(1710288000000), 0.00364571936368539411],[new Date(1710374400000), 0.00365164609036558484],[new Date(1710547200000), 0.00336278190651155611],[new Date(1710633600000), 0.00335375558532182868],[new Date(1710720000000), 0.00340437148134793038],[new Date(1710979200000), 0.00265871080240127263],[new Date(1711065600000), 0.00263631556070374439], ]); var options = { hAxis: { title: '', gridlines: {color: 'none'} }, vAxis: { title: 'Market Price (USD)', textPosition: 'none', }, legend: {position: 'none'}, chartArea: {'width': '100%', 'height': '80%'}, backgroundColor: { fill:'transparent' }, }; var chart = new google.visualization.LineChart(document.getElementById('market_price')); chart.draw(data, options); }