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(1683590400000), 0.00027675852073973836],[new Date(1683676800000), 0.00027836270134448509],[new Date(1684800000000), 0.00027277189688887054],[new Date(1684886400000), 0.00026963405163691357],[new Date(1684972800000), 0.00017973651573594651],[new Date(1685059200000), 0.00020145402991562164],[new Date(1689206400000), 0.000096948757157859819413],[new Date(1689292800000), 0.00010037404060253617],[new Date(1693440000000), 0.000050417365074112407211],[new Date(1693526400000), 0.000049491763367626961771],[new Date(1694563200000), 0.00159488324481901300],[new Date(1694649600000), 0.00161487899059714800],[new Date(1694822400000), 0.00026568940160498240],[new Date(1694908800000), 0.00026566780824821526],[new Date(1695686400000), 0.000031818210769166371681],[new Date(1695772800000), 0.000032004963217325772419],[new Date(1709164800000), 0.00033393037995120253],[new Date(1709251200000), 0.00034590055472716641],[new Date(1709596800000), 0.00035439628253701371],[new Date(1709683200000), 0.00102591602784808155],[new Date(1709769600000), 0.00381130406294738625],[new Date(1709856000000), 0.00389304571035441260], ]); 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); }