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(1683849600000), 0.13257258097401938894],[new Date(1683936000000), 0.13440176648630738167],[new Date(1684627200000), 0.13380666328749784102],[new Date(1684713600000), 0.13335538396591872299],[new Date(1687478400000), 0.11269031612953890724],[new Date(1687564800000), 0.11384292137334426605],[new Date(1691452800000), 0.07580617841653930948],[new Date(1691539200000), 0.07592882722495045756],[new Date(1695859200000), 0.09510942285574818765],[new Date(1695945600000), 0.09492807110943496505],[new Date(1698019200000), 0.09356164460379773695],[new Date(1698105600000), 0.10057100963805239389],[new Date(1698192000000), 0.10093133794338333994],[new Date(1701907200000), 0.11065575329626083701],[new Date(1701993600000), 0.09032955349889509189],[new Date(1702080000000), 0.05026581515283296673],[new Date(1703808000000), 0.08863315082189814464],[new Date(1703894400000), 0.08805685628616463528],[new Date(1706054400000), 0.04481076461377665455],[new Date(1706140800000), 0.04475510926958862796],[new Date(1706227200000), 0.04828004655770527232],[new Date(1706313600000), 0.04807048081559725819],[new Date(1707091200000), 0.04768477134417725904],[new Date(1707177600000), 0.04797183407232486435],[new Date(1710028800000), 0.07779116950820631984],[new Date(1710115200000), 0.07987206219319160328],[new Date(1710201600000), 0.08014876610116559272],[new Date(1710288000000), 0.08251679196655726125],[new Date(1710374400000), 0.08144472463789805333],[new Date(1710460800000), 0.07750475252749683488],[new Date(1710633600000), 0.07688027509450253624],[new Date(1710720000000), 0.07758555103959359002],[new Date(1711670400000), 0.07848684083125482072],[new Date(1711756800000), 0.07834393061840616207],[new Date(1711843200000), 0.08010695167551641388],[new Date(1711929600000), 0.07914482638268235443],[new Date(1712102400000), 0.07335835254337516609],[new Date(1712188800000), 0.07348951871220485200],[new Date(1714521600000), 0.06464946410388630000],[new Date(1714608000000), 0.06500635117094777407], ]); 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); }