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(1683158400000), 0.02118148725606416604],[new Date(1683244800000), 0.02162029610766094549],[new Date(1683331200000), 0.01978235242519379639],[new Date(1683417600000), 0.02033445166421547715],[new Date(1683504000000), 0.01948978743074569159],[new Date(1683590400000), 0.01817342986902640646],[new Date(1683676800000), 0.01745370317364114785],[new Date(1683763200000), 0.01757661281303501035],[new Date(1683849600000), 0.01608512647574856382],[new Date(1683936000000), 0.01555271963087573118],[new Date(1684022400000), 0.01513812217404296972],[new Date(1684108800000), 0.01480418255013969264],[new Date(1684195200000), 0.01482402771110544215],[new Date(1684281600000), 0.01690422477593285632],[new Date(1684368000000), 0.01840863700785748250],[new Date(1684454400000), 0.01698103364562422708],[new Date(1684540800000), 0.01705551094497080771],[new Date(1684627200000), 0.01648666852725418722],[new Date(1684713600000), 0.01700592997713271125],[new Date(1684800000000), 0.01698467110217871111],[new Date(1684886400000), 0.01689536217933389347],[new Date(1684972800000), 0.01700848809998764299],[new Date(1685059200000), 0.01734006951693933847],[new Date(1685145600000), 0.01693124378499454660],[new Date(1685232000000), 0.01744469925567169986],[new Date(1685318400000), 0.01803667438649177097],[new Date(1685404800000), 0.01814235711411092472],[new Date(1685491200000), 0.01811233622902915819],[new Date(1685577600000), 0.01812767775532222528],[new Date(1685664000000), 0.01861167245173471632],[new Date(1685750400000), 0.01859953992315688347],[new Date(1685836800000), 0.01867696600289827611],[new Date(1685923200000), 0.01822564986292243313],[new Date(1686009600000), 0.01715355849261162264],[new Date(1686096000000), 0.01716483219169670771],[new Date(1686182400000), 0.01604724630242667361],[new Date(1686268800000), 0.01643597523452495542],[new Date(1686355200000), 0.01535953610498160514],[new Date(1686441600000), 0.01578760589764309743],[new Date(1686528000000), 0.01562173106494847438],[new Date(1686614400000), 0.01592690597926541840],[new Date(1686700800000), 0.01522818337533970576],[new Date(1686787200000), 0.01474592787755086306],[new Date(1686873600000), 0.01383990504043650660],[new Date(1686960000000), 0.01436503234679495583],[new Date(1687046400000), 0.01428676195735811347],[new Date(1687132800000), 0.01357739813406591264],[new Date(1687219200000), 0.01452202437073507792],[new Date(1687305600000), 0.01394206291850121778], ]); 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); }