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(1683590400000), 0.00015542561300390823],[new Date(1683676800000), 0.00015526843002319157],[new Date(1684108800000), 0.00015516587738955856],[new Date(1684195200000), 0.00015515640236533724],[new Date(1684886400000), 0.00015509822107238547],[new Date(1684972800000), 0.00015509107445007615],[new Date(1685059200000), 0.00015510574726930228],[new Date(1685145600000), 0.00015511620165269539],[new Date(1685232000000), 0.000096792002619430214724],[new Date(1685318400000), 0.000042281578839569059233],[new Date(1685404800000), 0.000062448705443896454768],[new Date(1685491200000), 0.00011122407779167424],[new Date(1685577600000), 0.00014999780141527297],[new Date(1685664000000), 0.00019998678088987922],[new Date(1685750400000), 0.00019938548609543715],[new Date(1685836800000), 0.00019966327871862511],[new Date(1685923200000), 0.00019380623035986608],[new Date(1686009600000), 0.00019923715138046154],[new Date(1686268800000), 0.00019903621409711803],[new Date(1686355200000), 0.000088264235728652125436],[new Date(1686441600000), 0.000080253147543768367347],[new Date(1686700800000), 0.00013074760485230716],[new Date(1686787200000), 0.000092646324822859442509],[new Date(1686873600000), 0.000046638961010023793103],[new Date(1687478400000), 0.000046693998003145515695],[new Date(1687564800000), 0.000046708742949067673716],[new Date(1687651200000), 0.000046701261877303636364],[new Date(1687737600000), 0.000046671316168114811321],[new Date(1687910400000), 0.000019365204821829764706],[new Date(1687996800000), 0.000015167113345001886792],[new Date(1688083200000), 0.000025001257599877500000],[new Date(1689811200000), 0.000046549220769755246523],[new Date(1689897600000), 0.000027580880464783356643],[new Date(1689984000000), 0.000009508735589990313390], ]); 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); }