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.00079760630979499798],[new Date(1683590400000), 0.00079942256675168360],[new Date(1683676800000), 0.00079891509346599215],[new Date(1683763200000), 0.00078011011456114701],[new Date(1683849600000), 0.00077708021791973965],[new Date(1683936000000), 0.00077757128448084160],[new Date(1684022400000), 0.00077864887749046368],[new Date(1684108800000), 0.00078133695774853326],[new Date(1684195200000), 0.00077680053268188986],[new Date(1684281600000), 0.00077241560755045681],[new Date(1684368000000), 0.00078445147811656931],[new Date(1684454400000), 0.00078110313268522833],[new Date(1684540800000), 0.00081113207850523778],[new Date(1684627200000), 0.00081735543338803076],[new Date(1684713600000), 0.00077899452141064250],[new Date(1684800000000), 0.00075515044738996764],[new Date(1684886400000), 0.00070257503945398799],[new Date(1684972800000), 0.00068438164455346569],[new Date(1685059200000), 0.00071092206287239132],[new Date(1685145600000), 0.00076712597165338931],[new Date(1685232000000), 0.00078803605538411799],[new Date(1685318400000), 0.00081912146381992639],[new Date(1685404800000), 0.00081442022230409924], ]); 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); }