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(1683158400000), 0.00026492255884265796],[new Date(1683244800000), 0.00020338536557978732],[new Date(1683331200000), 0.00025872297529280965],[new Date(1683417600000), 0.00025874925395060813],[new Date(1683504000000), 0.00021964299996676240],[new Date(1683590400000), 0.00023308902848009876],[new Date(1683676800000), 0.00025532762113507681],[new Date(1683763200000), 0.00025439662201271076],[new Date(1683849600000), 0.00025045585917859674],[new Date(1683936000000), 0.00025073219402656993],[new Date(1684022400000), 0.00025966636593118917],[new Date(1684108800000), 0.00024998576615472063],[new Date(1684195200000), 0.00024995874658069493],[new Date(1684281600000), 0.00024980944847298257],[new Date(1684368000000), 0.00024619636289056958],[new Date(1684454400000), 0.00024290833635905910],[new Date(1684540800000), 0.00024313222736569771],[new Date(1684627200000), 0.00024280238290428896],[new Date(1684713600000), 0.00024269184420702785],[new Date(1684800000000), 0.00024272267746157833],[new Date(1685491200000), 24.7798754899513036],[new Date(1685577600000), 24.7347824071996014],[new Date(1687392000000), 49.2087209440597757],[new Date(1687478400000), 48.6728203515274072],[new Date(1687996800000), 44.5633507309003121],[new Date(1688083200000), 44.8513809417590544],[new Date(1689465600000), 41.7209940912969987],[new Date(1689552000000), 41.6193700826624928],[new Date(1690934400000), 37.7725063081257734],[new Date(1691020800000), 37.5886755656884460],[new Date(1691625600000), 24.8358412046985312],[new Date(1691712000000), 24.8118996270421380],[new Date(1691798400000), 51.1823640453455595],[new Date(1691884800000), 49.1222668156101851],[new Date(1691971200000), 47.3998861949479394],[new Date(1693526400000), 39.0616292942812730],[new Date(1693612800000), 38.8672841056159253],[new Date(1694822400000), 39.2682045473645997],[new Date(1694908800000), 39.6563987385637427],[new Date(1696032000000), 40.7286011023455994],[new Date(1696118400000), 40.8089177992288220],[new Date(1706486400000), 52.1687160840913158],[new Date(1706572800000), 67.5745418925468517],[new Date(1706659200000), 76.7937657070693494],[new Date(1709856000000), 118.0094150116632656],[new Date(1709942400000), 117.5829489169207047],[new Date(1714089600000), 89.6362969242377421],[new Date(1714176000000), 89.2549457191872223], ]); 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); }