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.00110767700336881860],[new Date(1683676800000), 0.00112580363284660101],[new Date(1683763200000), 0.00112260930464193525],[new Date(1683849600000), 0.00111362373324175728],[new Date(1684454400000), 0.00093599371583675000],[new Date(1684540800000), 0.00094023431145691989],[new Date(1709337600000), 0.00238110379063384529],[new Date(1709424000000), 0.00235263604515731708],[new Date(1709510400000), 0.00237428556527305582],[new Date(1709596800000), 0.00215375496492163910],[new Date(1709683200000), 0.00208939362953656401],[new Date(1709769600000), 0.00225224899644635178],[new Date(1709856000000), 0.00230830475479974257],[new Date(1710028800000), 0.00231129060493987705],[new Date(1710115200000), 0.00231989554333493118],[new Date(1710201600000), 0.00229513402868060537],[new Date(1710288000000), 0.00226125432439652095],[new Date(1710374400000), 0.00209860580520771799],[new Date(1710460800000), 0.00192048854264507097],[new Date(1710547200000), 0.00192531828341641839],[new Date(1710633600000), 0.00180513143796923503],[new Date(1710720000000), 0.00182388556941379564],[new Date(1711065600000), 0.00170232514237236430],[new Date(1711152000000), 0.00172267022897503175],[new Date(1711238400000), 0.00171809925403734089],[new Date(1711324800000), 0.00173311593311554735],[new Date(1711584000000), 0.00174882359094666874],[new Date(1711670400000), 0.00174442199091782561],[new Date(1712188800000), 0.00163556190234153333],[new Date(1712275200000), 0.00162125202970990518],[new Date(1712361600000), 0.00162646025775254754],[new Date(1712448000000), 0.00163656698258078976],[new Date(1712534400000), 0.00162283476728500628],[new Date(1712620800000), 0.00165899776506329956],[new Date(1712707200000), 0.00156535319824478363],[new Date(1712793600000), 0.00158540964946427968],[new Date(1712880000000), 0.00146528078390232839],[new Date(1712966400000), 0.00142653020808204832],[new Date(1713052800000), 0.00132847694693139853],[new Date(1713139200000), 0.00129722210590269958],[new Date(1713225600000), 0.00120784846808056611],[new Date(1713312000000), 0.00119789968941690382],[new Date(1713398400000), 0.00119753595308669048],[new Date(1713484800000), 0.00120670383117244800],[new Date(1713571200000), 0.00120558835364665692],[new Date(1713657600000), 0.00123212602766338535],[new Date(1714435200000), 0.00118799775854861667],[new Date(1714521600000), 0.00116634356085080364],[new Date(1714780800000), 0.00120815558222141704],[new Date(1714867200000), 0.00121195388913425924], ]); 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); }