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(1683331200000), 0.000021371471725735231317],[new Date(1683504000000), 0.000037606206997547878788],[new Date(1683590400000), 0.000036973863891551007644],[new Date(1683676800000), 0.000033339393170603487429],[new Date(1683849600000), 0.000033348470445372751323],[new Date(1683936000000), 0.000034858987352774722222],[new Date(1684022400000), 0.000036007985131872628305],[new Date(1684368000000), 0.000020803027368245191194],[new Date(1684454400000), 0.000020797824779883333333],[new Date(1684540800000), 0.000020072085574703741497],[new Date(1684627200000), 0.000020002024122488716624],[new Date(1684886400000), 0.000016625343854998181818], ]); 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); }