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.05854233815128557553],[new Date(1683590400000), 0.05813123819636661734],[new Date(1683676800000), 0.11149682736364182051],[new Date(1683763200000), 0.10998225637838237646],[new Date(1683849600000), 0.10698693308688462919],[new Date(1684195200000), 0.08346396222485040903],[new Date(1684281600000), 0.08164698635382794859],[new Date(1684368000000), 0.06458728367818089277],[new Date(1684454400000), 0.05913465968842208367],[new Date(1684540800000), 0.06722047661330193912],[new Date(1686182400000), 0.10630730761888785322],[new Date(1686268800000), 0.05769141285579844524],[new Date(1686355200000), 0.04307707021289811084],[new Date(1686441600000), 0.04521661493762880962],[new Date(1686528000000), 0.04011279043370201787],[new Date(1686614400000), 0.04044537880387916226],[new Date(1686700800000), 0.04074140384890450919],[new Date(1688342400000), 0.07678957756684371712],[new Date(1688428800000), 0.07667380536549737395],[new Date(1689638400000), 0.08525384471756790696],[new Date(1689724800000), 0.08684003427840584375],[new Date(1689811200000), 0.08700365285606396526],[new Date(1689984000000), 0.07768737287648619900],[new Date(1690070400000), 0.08295920268235717354],[new Date(1690156800000), 0.08373781622258341818],[new Date(1690502400000), 0.06782868338210599792],[new Date(1690588800000), 0.06934813584031731429],[new Date(1690675200000), 0.07190420657110920924],[new Date(1690761600000), 0.07207524962622102322],[new Date(1690848000000), 0.07254403239453709832],[new Date(1690934400000), 0.07433353766302616649],[new Date(1691366400000), 0.07375902539143484204],[new Date(1691452800000), 0.08073173879578253326],[new Date(1691539200000), 0.07787164201443034099],[new Date(1691625600000), 0.07677459282655437933],[new Date(1691712000000), 0.05828781711859222917],[new Date(1691798400000), 0.05836975055016728506],[new Date(1691971200000), 0.07251939950398768530],[new Date(1692057600000), 0.07249026831214386588],[new Date(1692316800000), 0.06400842348340868710],[new Date(1692403200000), 0.06060689708194883875],[new Date(1692489600000), 0.05872151738585745000],[new Date(1692576000000), 0.05344559908671636946],[new Date(1692662400000), 0.05533188950228700329],[new Date(1692748800000), 0.05470872163548391031],[new Date(1692921600000), 0.05214571383665500579],[new Date(1693008000000), 0.05212496290388732773],[new Date(1693353600000), 0.04801400864394068719],[new Date(1693440000000), 0.03806398656445593227],[new Date(1693526400000), 0.03645540029491792357],[new Date(1694563200000), 0.06544782144044534945],[new Date(1694649600000), 0.06575010081061986577], ]); 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); }