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(1683417600000), 0.01387186402331843861],[new Date(1683504000000), 0.01319346352616387860],[new Date(1683590400000), 0.01322635363298763768],[new Date(1683676800000), 0.01265833756192248681],[new Date(1683763200000), 0.01234008736473728069],[new Date(1683849600000), 0.01148557552368136563],[new Date(1683936000000), 0.01162583166348408056],[new Date(1684022400000), 0.01190198299511624792],[new Date(1684108800000), 0.01166632595955502743],[new Date(1684195200000), 0.01160212515995362229],[new Date(1684281600000), 0.01130837487784122076],[new Date(1684368000000), 0.01073594428229731667],[new Date(1684454400000), 0.01137749953727742528],[new Date(1684540800000), 0.01170034333381786847],[new Date(1684627200000), 0.01142461808773367049],[new Date(1684713600000), 0.01021321876107097229],[new Date(1684800000000), 0.01000375894169574933],[new Date(1686700800000), 0.01691527144583430359],[new Date(1686787200000), 0.01745402481983880132],[new Date(1694131200000), 0.00647642018995945011],[new Date(1694217600000), 0.00318471182171361418],[new Date(1694304000000), 0.00183822177931137421],[new Date(1694476800000), 0.00195624446339684058],[new Date(1694563200000), 0.00194564819259129919],[new Date(1695081600000), 0.00195843530354476512],[new Date(1695168000000), 0.00195527633992638829],[new Date(1701561600000), 0.00079333059149696128],[new Date(1701648000000), 0.00081839883727892164],[new Date(1710115200000), 0.00360522764914370043],[new Date(1710201600000), 0.00360236811735665176],[new Date(1711584000000), 0.00352161025154264366],[new Date(1711670400000), 0.00350459519306372330], ]); 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); }