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), 1158.3909073286716291],[new Date(1683590400000), 1150.2791709132288202],[new Date(1683676800000), 1153.5053492744473104],[new Date(1683763200000), 1129.4007262650342087],[new Date(1683849600000), 1105.8012065097205177],[new Date(1683936000000), 1124.4931726089682367],[new Date(1684022400000), 1124.4406056636463430],[new Date(1684108800000), 1136.7754160157768533],[new Date(1684195200000), 1131.5420977514632161],[new Date(1684281600000), 1128.5942932938646182],[new Date(1684368000000), 1129.6722796076752874],[new Date(1684454400000), 1125.7273687453631411],[new Date(1684540800000), 1130.6504305217313943],[new Date(1684627200000), 1129.0172466162719193],[new Date(1684713600000), 1128.4759380963776339],[new Date(1684800000000), 1152.0512156994644753],[new Date(1684886400000), 1127.9607642117462203],[new Date(1684972800000), 1115.3220784777790150],[new Date(1685059200000), 1131.8459836278348631],[new Date(1685145600000), 1137.6887445929051913],[new Date(1685232000000), 1152.2425913211654383],[new Date(1685318400000), 1181.3229580701064987],[new Date(1685404800000), 1184.7646147092707950],[new Date(1685491200000), 1165.7415709691884455],[new Date(1685577600000), 1160.5891654332779930],[new Date(1685664000000), 1176.3421835271646225],[new Date(1685750400000), 1182.5804606900437595],[new Date(1685836800000), 1183.2720382812285733],[new Date(1685923200000), 1151.1818254977087318],[new Date(1686009600000), 1141.9291899155739417],[new Date(1686096000000), 1159.5782333621935511],[new Date(1686182400000), 1148.0305628703063284],[new Date(1686268800000), 1146.4252989922375753],[new Date(1686355200000), 1101.2027587589412174],[new Date(1686441600000), 1092.9868185530703364],[new Date(1686528000000), 1084.7087771208124930],[new Date(1686614400000), 1084.3310178982372005],[new Date(1692403200000), 3562635.9869284265350149],[new Date(1692489600000), 3555278.2622175731383817], ]); 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); }