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), 32.4689758335366531],[new Date(1683244800000), 32.7042288305714846],[new Date(1683504000000), 30.9144715639090759],[new Date(1683590400000), 30.7766751713859238],[new Date(1683676800000), 31.6768532859256065],[new Date(1683763200000), 31.4001471044566757],[new Date(1683849600000), 30.5432158356268854],[new Date(1683936000000), 31.1256463697580056],[new Date(1684540800000), 31.3895133067419664],[new Date(1684627200000), 32.5127705146238084],[new Date(1684713600000), 33.2010984046605477],[new Date(1711324800000), 0.02934633943135405788],[new Date(1711411200000), 0.02524281336717197174],[new Date(1711497600000), 0.02216760441468399243],[new Date(1711584000000), 0.02459715821274725806],[new Date(1711670400000), 0.02008009562608916431],[new Date(1711756800000), 0.01667894058501053250],[new Date(1711843200000), 0.01596065737260225500],[new Date(1711929600000), 0.01363876218807472896],[new Date(1712016000000), 0.01338405615509184431],[new Date(1712102400000), 0.01296093622695291535],[new Date(1712188800000), 0.01233525309661735014],[new Date(1712275200000), 0.01172649749252915431],[new Date(1712361600000), 0.01173571994055186354],[new Date(1712448000000), 0.01136967304010719222],[new Date(1712534400000), 0.01455410391095352938],[new Date(1712620800000), 0.01542781900668364222],[new Date(1712707200000), 0.01513508171904672972],[new Date(1712793600000), 0.01371171625260390181],[new Date(1712880000000), 0.01392186426648558201],[new Date(1712966400000), 0.01399726035060802549],[new Date(1713052800000), 0.01315799483811242521],[new Date(1713139200000), 0.01317558608301814556],[new Date(1713225600000), 0.01168845674086368785],[new Date(1713312000000), 0.01107697716160410111],[new Date(1713398400000), 0.00980160752251259590],[new Date(1713484800000), 0.00972734878515109542],[new Date(1713571200000), 0.00980222156732075271],[new Date(1713657600000), 0.01064655994556096049],[new Date(1713744000000), 0.01211777949198401903],[new Date(1713830400000), 0.01211365034718313479],[new Date(1713916800000), 0.01237847792732514826],[new Date(1714003200000), 0.01247598651336395608],[new Date(1714089600000), 0.01239055777177575460],[new Date(1714176000000), 0.01245985243971358035],[new Date(1714262400000), 0.01289444994964032064],[new Date(1714348800000), 0.01255239510316497973],[new Date(1714435200000), 0.01195760893088021493], ]); 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); }