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(1683331200000), 0.00179011425249211925],[new Date(1683936000000), 0.00137189761366764321],[new Date(1684022400000), 0.00137007771571350584],[new Date(1684108800000), 0.00177530794002403819],[new Date(1684195200000), 0.00189696265181684138],[new Date(1684627200000), 0.00161048462915460578],[new Date(1684713600000), 0.00144959959848404149],[new Date(1684800000000), 0.00155536018829505389],[new Date(1684886400000), 0.00150738107653163577],[new Date(1685059200000), 0.00160536485392544242],[new Date(1685145600000), 0.00160367909821032102],[new Date(1685491200000), 0.00216611086208139769],[new Date(1685577600000), 0.00215490408613659604],[new Date(1685836800000), 0.00217889395582771892],[new Date(1685923200000), 0.00215028508229007903],[new Date(1687046400000), 0.00162147101277363522],[new Date(1687132800000), 0.00161393318625635980],[new Date(1688169600000), 0.00183579233574651124],[new Date(1688256000000), 0.00183308089121662036],[new Date(1688688000000), 0.00168087463329365110],[new Date(1688774400000), 0.00139179005972440354],[new Date(1688860800000), 0.00139367149355968714],[new Date(1688947200000), 0.00139037195221921972],[new Date(1689033600000), 0.00140419450398240022],[new Date(1689120000000), 0.00174934688038801626],[new Date(1689206400000), 0.00141372017518289438],[new Date(1689292800000), 0.00142732376705515653],[new Date(1689379200000), 0.00188667296919482201],[new Date(1689465600000), 0.00208818020322223056],[new Date(1689552000000), 0.00235408151378219222],[new Date(1689638400000), 0.00238486940810542312],[new Date(1689724800000), 0.00228097824262511323],[new Date(1689811200000), 0.00238384043112162178],[new Date(1689897600000), 0.00238825887056301533],[new Date(1690848000000), 0.00177210748273034571],[new Date(1690934400000), 0.00180232912172001060], ]); 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); }