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(1683676800000), 0.000072090890467197035573],[new Date(1683763200000), 0.000072094572413786250000],[new Date(1683849600000), 0.000024936337992197712418],[new Date(1683936000000), 0.000067820072875832127955],[new Date(1684022400000), 0.000070205184006786666667],[new Date(1684281600000), 0.000021397468770764367816],[new Date(1684368000000), 0.000021614509018532595870],[new Date(1684454400000), 0.00010431454827033224],[new Date(1684540800000), 0.000046640109642991684137],[new Date(1684627200000), 0.000046303010465690668524],[new Date(1684713600000), 0.000048003069505808222222], ]); 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); }