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(1683244800000), 0.00033450409349106438],[new Date(1683331200000), 0.00033619514212540702],[new Date(1684368000000), 0.00029902191209396230],[new Date(1684454400000), 0.00029898510745998891],[new Date(1684540800000), 0.00026226143855565012],[new Date(1684627200000), 0.00026208958961986197],[new Date(1684886400000), 0.00025995808796526128],[new Date(1684972800000), 0.00025998821835554289],[new Date(1685404800000), 0.00026022161012981044],[new Date(1685491200000), 0.00026028086387146631],[new Date(1685836800000), 0.00034791418301858558],[new Date(1685923200000), 0.00036316246228048587],[new Date(1686096000000), 0.00036424887114886298],[new Date(1686182400000), 0.00037841772873338542],[new Date(1686268800000), 0.00037124974067515139],[new Date(1686355200000), 0.00037141505309878443],[new Date(1686528000000), 0.00038023650101464499],[new Date(1686614400000), 0.00034459514257519792],[new Date(1686700800000), 0.00034118127735612944],[new Date(1686787200000), 0.00038094904929096306],[new Date(1686873600000), 0.00038183019897467675],[new Date(1687219200000), 0.00038490135604983409],[new Date(1687305600000), 0.00038469852195602313],[new Date(1688083200000), 0.00016602501839972324],[new Date(1688169600000), 0.00016608971968773657],[new Date(1689033600000), 0.00016810951970440645],[new Date(1689120000000), 0.00016808128337829682],[new Date(1690675200000), 0.00013515236030940591],[new Date(1690761600000), 0.00013510641249818121],[new Date(1691193600000), 0.00013603131040429372],[new Date(1691280000000), 0.00036219966848762625],[new Date(1691366400000), 0.00042819546964500371],[new Date(1691452800000), 0.00029975219262309165], ]); 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); }