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(1698796800000), 0.00034773926748448138],[new Date(1698883200000), 0.00035407890251074140],[new Date(1699574400000), 0.00037268234521102202],[new Date(1699660800000), 0.00037121354056823049],[new Date(1701648000000), 0.00041700477448192483],[new Date(1701734400000), 0.00041785079277945271],[new Date(1701820800000), 0.00043805432630671933],[new Date(1701907200000), 0.00043576621196958618],[new Date(1701993600000), 0.00043395072516391260],[new Date(1707696000000), 0.00049896969617172000],[new Date(1707782400000), 0.00049720602834180822],[new Date(1710201600000), 0.00071134843500198839],[new Date(1710288000000), 0.00072617947313691903],[new Date(1710633600000), 0.00067638599003361243],[new Date(1710720000000), 0.00067735109282621124],[new Date(1710806400000), 0.00064646282257332575],[new Date(1712102400000), 0.00066138224730547434],[new Date(1712188800000), 0.00065894365162800341],[new Date(1712880000000), 0.00067084356804936840],[new Date(1712966400000), 0.00067376805655934700],[new Date(1713052800000), 0.00064534220458782664],[new Date(1713139200000), 0.00065755017139902847],[new Date(1714348800000), 0.00063156807911004207],[new Date(1714435200000), 0.00062466096744104732], ]); 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); }