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(1688688000000), 0.00121177403329660703],[new Date(1688774400000), 0.00121066224639833887],[new Date(1691884800000), 0.00117327272417644730],[new Date(1691971200000), 0.00117540325371271141],[new Date(1697673600000), 0.00201014772127291084],[new Date(1697760000000), 0.00206045623380088321],[new Date(1697846400000), 0.00207634965952016639],[new Date(1698796800000), 0.00175720705399287323],[new Date(1698883200000), 0.00176173930076142700],[new Date(1701907200000), 0.00216431199594281071],[new Date(1701993600000), 0.00217654450675602590],[new Date(1702339200000), 0.00206274313206763662],[new Date(1702425600000), 0.00206529909029628684],[new Date(1704067200000), 0.00217598977161230182],[new Date(1704153600000), 0.00226911960891965823],[new Date(1704672000000), 0.00190957928022389951],[new Date(1704758400000), 0.00187033184455690719],[new Date(1710028800000), 0.00208528660297501503],[new Date(1710115200000), 0.00205620579442411524],[new Date(1710806400000), 0.00128106872772036187],[new Date(1710892800000), 0.00125779866384126993],[new Date(1710979200000), 0.00131065253944920049],[new Date(1711065600000), 0.00129894332035417814],[new Date(1711756800000), 0.00140135300567452385],[new Date(1711843200000), 0.00140444749834759566],[new Date(1713830400000), 0.00133080062319505955],[new Date(1713916800000), 0.00132759074148622311],[new Date(1714003200000), 0.00128379254706127609],[new Date(1714089600000), 0.00128775223510767509],[new Date(1714348800000), 0.00127343166734611765],[new Date(1714435200000), 0.00139775851050940764],[new Date(1714521600000), 0.00175443252519736635], ]); 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); }