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(1683504000000), 0.00200831823121382568],[new Date(1683590400000), 0.00300596101347945734],[new Date(1683676800000), 0.00300363214499338861],[new Date(1683763200000), 0.00300414943393457835],[new Date(1688601600000), 0.00200097342960496543],[new Date(1688688000000), 0.00162171690499008070],[new Date(1688774400000), 0.00173944500262728193],[new Date(1688860800000), 0.00200257672316828356],[new Date(1688947200000), 0.00200094678033760802],[new Date(1689033600000), 0.00200094283168312822], ]); 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); }