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(1691020800000), 0.83100370670581590135],[new Date(1691107200000), 0.65168862095059160681],[new Date(1691193600000), 0.64171414941736230000],[new Date(1691280000000), 0.64217633150049135685],[new Date(1691366400000), 0.64593193866015519580],[new Date(1694649600000), 0.55221646313146566648],[new Date(1694736000000), 0.43864590247602360000],[new Date(1700179200000), 0.49756440288029589030],[new Date(1700265600000), 0.49822626081675590000],[new Date(1703894400000), 0.94727057757023251706],[new Date(1703980800000), 0.94504398965699020000],[new Date(1704844800000), 1.1781057682414620],[new Date(1704931200000), 1.1816695747715910],[new Date(1707523200000), 0.47861984719285620000],[new Date(1707609600000), 0.47861984719285620000],[new Date(1707782400000), 1.0755610519233357],[new Date(1707868800000), 1.0700790878768668],[new Date(1708646400000), 1.1746688116967245],[new Date(1708732800000), 1.1750674595286661],[new Date(1708992000000), 1.1731450609430914],[new Date(1709078400000), 1.1744103606053347],[new Date(1709769600000), 0.50120085995041290000],[new Date(1709856000000), 0.49949699929266919642],[new Date(1710374400000), 0.90450717216557510000],[new Date(1710460800000), 0.89994014272639362047],[new Date(1711584000000), 0.48721536551604530883],[new Date(1711670400000), 0.48709975718356947686],[new Date(1713139200000), 0.88477454681089440000],[new Date(1713225600000), 0.88260841073287552980],[new Date(1713484800000), 0.48084778566171400216],[new Date(1713571200000), 0.48066467054057616386], ]); 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); }