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.000025032458520594732704],[new Date(1683417600000), 0.000011066300481468688671],[new Date(1683504000000), 0.000020165965223781599124],[new Date(1683590400000), 0.000025056123386428630994],[new Date(1683676800000), 0.000025027203929269255663],[new Date(1684886400000), 0.000011999399823344554455],[new Date(1684972800000), 0.000011998966910181226627],[new Date(1685318400000), 0.000024991753076231553398],[new Date(1685404800000), 0.000024988366961187804878],[new Date(1687478400000), 0.000013007233960533499171],[new Date(1687564800000), 0.000019270283818550034990],[new Date(1687651200000), 0.000021023659787590683230],[new Date(1688515200000), 0.000014007708426174369748],[new Date(1688601600000), 0.000014006674386629750000],[new Date(1688860800000), 0.000014015177590390769231],[new Date(1688947200000), 0.000014009123257301681287],[new Date(1689120000000), 0.000019011945580976593521],[new Date(1689206400000), 0.000019016585972225260960],[new Date(1690243200000), 0.000021012051752422872928],[new Date(1690329600000), 0.000021007878539502808989],[new Date(1690761600000), 0.000017983836321910292249],[new Date(1690848000000), 0.000021001384888751237890], ]); 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); }