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(1683417600000), 0.00322112012958425743],[new Date(1683504000000), 0.00309449296715855177],[new Date(1683590400000), 0.00306872361482118894],[new Date(1683676800000), 0.00310716980253759694],[new Date(1683763200000), 0.00305269154783756840],[new Date(1683849600000), 0.00297016097890528375],[new Date(1683936000000), 0.00301400654572894632],[new Date(1684022400000), 0.00301680392313575451],[new Date(1684108800000), 0.00305950319183280826],[new Date(1684195200000), 0.00303432025843983285],[new Date(1684281600000), 0.00302675831435660951],[new Date(1684368000000), 0.00303968168296074646],[new Date(1684454400000), 0.00301328051719600792],[new Date(1684540800000), 0.00302350949460317646],[new Date(1684627200000), 0.00302474994751042868],[new Date(1684713600000), 0.00299801628654927264],[new Date(1684800000000), 0.00302857517926494367], ]); 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); }