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(1683504000000), 0.00100613880274230452],[new Date(1683590400000), 0.00100535189475700598],[new Date(1683676800000), 0.00100431446821428882],[new Date(1683763200000), 0.00100425415440996722],[new Date(1683849600000), 0.00100420108627911708],[new Date(1683936000000), 0.00100652098538519708],[new Date(1684022400000), 0.00100564410833346667],[new Date(1684108800000), 0.00100365729498031771],[new Date(1684195200000), 0.00100358108556695722],[new Date(1684281600000), 0.00100318696935487222],[new Date(1684368000000), 0.00100329570523334931],[new Date(1684454400000), 0.00100321702981625472],[new Date(1684540800000), 0.00100415094855560069],[new Date(1684627200000), 0.00100340886202874757],[new Date(1684713600000), 0.00100314895716197632],[new Date(1684800000000), 0.00100377100740804002],[new Date(1684886400000), 0.00100316457995210403],[new Date(1684972800000), 0.00100300856049932438],[new Date(1685059200000), 0.00100308991763879625],[new Date(1685145600000), 0.00100315383480554778],[new Date(1685232000000), 0.00100266785155718431],[new Date(1685318400000), 0.00100270189474146000],[new Date(1685404800000), 0.00100345069087307340],[new Date(1685491200000), 0.00100412989319439264],[new Date(1685577600000), 0.00083917626381168366],[new Date(1685664000000), 0.00082617547741626238],[new Date(1709596800000), 0.00045585886734558046],[new Date(1709683200000), 0.00045287700454779191],[new Date(1710115200000), 0.00049170253651234775],[new Date(1710201600000), 0.00049340681457019881],[new Date(1710460800000), 0.00043943810929019645],[new Date(1710547200000), 0.00044424582432656000],[new Date(1710892800000), 0.00038654550930546487],[new Date(1710979200000), 0.00041155893375374783],[new Date(1711152000000), 0.00038271707516475295],[new Date(1711238400000), 0.00037883091299006032],[new Date(1711670400000), 0.00039319237726131511],[new Date(1711756800000), 0.00038974740121072264],[new Date(1711843200000), 0.00039118523679808506],[new Date(1712102400000), 0.00035560688239605720],[new Date(1712188800000), 0.00035576864516041389],[new Date(1713052800000), 0.00033078630091197924],[new Date(1713139200000), 0.00033804533520959930],[new Date(1713225600000), 0.00032668771917462717],[new Date(1713398400000), 0.00032363669283258530],[new Date(1713484800000), 0.00032178346869972697],[new Date(1714089600000), 0.00033065648824726257],[new Date(1714176000000), 0.00032825190894640205],[new Date(1714348800000), 0.00033514143050041341],[new Date(1714435200000), 0.00032223652325617478],[new Date(1714780800000), 0.00032438283215077824],[new Date(1714867200000), 0.00032335393600631446], ]); 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); }