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(1683244800000), 0.00154612507425864823],[new Date(1683331200000), 0.00156269449066068756],[new Date(1683417600000), 0.00168083609319215410],[new Date(1683504000000), 0.00138016140164236789],[new Date(1683590400000), 0.00158507793838784121],[new Date(1683676800000), 0.00158319021586572486],[new Date(1683763200000), 0.00137169635268749354],[new Date(1683849600000), 0.00187220322515902374],[new Date(1683936000000), 0.00161390882695939181],[new Date(1684022400000), 0.00150248928521415657],[new Date(1684108800000), 0.00164225903233939798],[new Date(1684195200000), 0.00180658421758707900],[new Date(1684281600000), 0.00164459850770877972],[new Date(1684368000000), 0.00160536086848872347],[new Date(1684454400000), 0.00147964767998002144],[new Date(1684540800000), 0.00129618074340338292],[new Date(1684627200000), 0.00131156036293656317],[new Date(1684713600000), 0.00144166156370419354],[new Date(1684800000000), 0.00150024483774036125], ]); 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); }