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(1683158400000), 0.00026650298379061333],[new Date(1683244800000), 0.00026056155492117132],[new Date(1683331200000), 0.00030270554123166307],[new Date(1683417600000), 0.00046191917243545431],[new Date(1683504000000), 0.00037000051974422384],[new Date(1683590400000), 0.00021663579267893315],[new Date(1683676800000), 0.00017598683639506049],[new Date(1683763200000), 0.00011475380024980201],[new Date(1683849600000), 0.000073542870607460902778],[new Date(1683936000000), 0.000077326038378439513889],[new Date(1684022400000), 0.000070881590936819583333],[new Date(1684108800000), 0.000065968896661714722222],[new Date(1684195200000), 0.000033308078696623680556],[new Date(1684281600000), 0.000026932504503737837838], ]); 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); }