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.00512426797041827618],[new Date(1683331200000), 0.00380106050849905010],[new Date(1683417600000), 0.00435735439777699802],[new Date(1683504000000), 0.00250599421051710382],[new Date(1683590400000), 0.00249258061403932282],[new Date(1683849600000), 0.00238644654990603279],[new Date(1683936000000), 0.00241922787051492411],[new Date(1686268800000), 0.00344380236576708631],[new Date(1686355200000), 0.00336584350244488525],[new Date(1687132800000), 0.00347719464425786264],[new Date(1687219200000), 0.00351607584965566820],[new Date(1691884800000), 0.00264502108565822066],[new Date(1691971200000), 0.00264478919289706576],[new Date(1692057600000), 0.00264659058334215455],[new Date(1692144000000), 0.00232402990515037334],[new Date(1692230400000), 0.00228799414797598894],[new Date(1694476800000), 0.00181849009805592427],[new Date(1694563200000), 0.00182607786531894693],[new Date(1694908800000), 0.00212308924142740941],[new Date(1694995200000), 0.00214398586351937084],[new Date(1697932800000), 0.00209604771547666327],[new Date(1700092800000), 0.00252982380331939247],[new Date(1700179200000), 0.00254802457936249036],[new Date(1701129600000), 0.00226407787992099008],[new Date(1701216000000), 0.00280867380251247049],[new Date(1701302400000), 0.00303188278693440226],[new Date(1701388800000), 0.00231818801594475294],[new Date(1701475200000), 0.00232656301750347297],[new Date(1701907200000), 0.00303090582755541447],[new Date(1701993600000), 0.00304923016984702514],[new Date(1707868800000), 0.00309982469799338010],[new Date(1707955200000), 0.00312986212360418567],[new Date(1708905600000), 0.00270446117481942031],[new Date(1708992000000), 0.00281242970313832040],[new Date(1709337600000), 0.00371815287840657527],[new Date(1709424000000), 0.00371834546247382242],[new Date(1710115200000), 0.00360236597106642402],[new Date(1710201600000), 0.00360225974802702829],[new Date(1710374400000), 0.00359270458820170029],[new Date(1710460800000), 0.00347742572014266037],[new Date(1710633600000), 0.00338643774147296465],[new Date(1710720000000), 0.00338987878878708548],[new Date(1710806400000), 0.00326290398007266131],[new Date(1712016000000), 0.00396008328699440383],[new Date(1712102400000), 0.00394328492193381434],[new Date(1712534400000), 0.00430284644424412188],[new Date(1712620800000), 0.00422225128922939352], ]); 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); }