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(1683417600000), 0.00048911612326063944],[new Date(1683504000000), 0.00045707153215370229],[new Date(1683590400000), 0.00047235625604952126],[new Date(1683676800000), 0.00043704422449106653],[new Date(1683763200000), 0.00038745410613181049],[new Date(1683849600000), 0.00035337891906863931],[new Date(1683936000000), 0.00034570300866794313],[new Date(1684022400000), 0.00034906605501948458],[new Date(1684108800000), 0.00033769660130638618],[new Date(1684195200000), 0.00033903120836733806],[new Date(1684281600000), 0.00034672490929063354],[new Date(1684368000000), 0.00033005523310253340],[new Date(1684454400000), 0.00033632404208699472],[new Date(1684540800000), 0.00033662120825848729],[new Date(1684627200000), 0.00035073979863582049],[new Date(1684713600000), 0.00034681814897483465],[new Date(1684800000000), 0.00031985943311837417],[new Date(1684886400000), 0.00030734822585852704], ]); 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); }