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(1684454400000), 0.000002849172652458480565],[new Date(1684540800000), 0.000002822704801026319444],[new Date(1684627200000), 0.000002843835608195000000],[new Date(1691193600000), 0.000018388488803903703704],[new Date(1691280000000), 0.000018346390204782972583],[new Date(1709337600000), 0.000002462879032927457627],[new Date(1709424000000), 0.000002468269596617083333],[new Date(1709510400000), 0.000002366303833572248062],[new Date(1709596800000), 0.000002359505255186403086],[new Date(1709942400000), 0.000002487604044135779817],[new Date(1710028800000), 0.000002469637609732942708],[new Date(1710115200000), 0.000002482906683031960050],[new Date(1710460800000), 0.000002338433664397209985],[new Date(1710547200000), 0.000002371066146671844660],[new Date(1711238400000), 0.000002049234258213736264],[new Date(1711324800000), 0.000002065161988914367816],[new Date(1712275200000), 0.000001909993387900000000],[new Date(1712361600000), 0.000001919715529503760446],[new Date(1712534400000), 0.000002099218400429333333],[new Date(1712620800000), 0.000002067135583941768579],[new Date(1712966400000), 0.000001826679254139263804],[new Date(1713052800000), 0.000001788543164924791667], ]); 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); }