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.09863761319578727708],[new Date(1683504000000), 0.10425859330203419527],[new Date(1683590400000), 0.10796430932515197790],[new Date(1683676800000), 0.10818285517793086667],[new Date(1683763200000), 0.10770718289877297736],[new Date(1683849600000), 0.11447156750764772424],[new Date(1683936000000), 0.11828520077566854951],[new Date(1684022400000), 0.11828579352092657514],[new Date(1684108800000), 0.11874486932461131875],[new Date(1684195200000), 0.11857572854677744431],[new Date(1684281600000), 0.11877279743714544542],[new Date(1684368000000), 0.11898496606207779021],[new Date(1684454400000), 0.11958632448191318993],[new Date(1684540800000), 0.11983040095270832736],[new Date(1684627200000), 0.11983008841466057847],[new Date(1684713600000), 0.12059990942470720174],[new Date(1684800000000), 0.06914195200238438778],[new Date(1684886400000), 0.06066280274511407778],[new Date(1684972800000), 0.11018639231126059764],[new Date(1685059200000), 0.11480507982104135160],[new Date(1685145600000), 0.11500419364832880000],[new Date(1685232000000), 0.11500420743696924014],[new Date(1685318400000), 0.11413217585976748069],[new Date(1685404800000), 0.11440437067246202493],[new Date(1685491200000), 0.11413084894663786375],[new Date(1685577600000), 0.11429786098952451417],[new Date(1685664000000), 0.11483792919151905556], ]); 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); }